Class UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The user experience analytics battery health runtime history entity contains the trend of runtime of a device over a period of 30 days”
    • Field Detail

      • deviceId

        protected String deviceId
      • estimatedRuntimeInMinutes

        protected Integer estimatedRuntimeInMinutes
      • runtimeDateTime

        protected String runtimeDateTime
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory

        protected UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory

        public static UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory.Builder builderUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getDeviceId

        public Optional<String> getDeviceId()
        “The unique identifier of the device, Intune DeviceID or SCCM device id.”
        Returns:
        property deviceId
      • withDeviceId

        public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory withDeviceId​(String deviceId)
        Returns an immutable copy of this with just the deviceId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The unique identifier of the device, Intune DeviceID or SCCM device id.”

        Parameters:
        deviceId - new value of deviceId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceId field changed
      • getEstimatedRuntimeInMinutes

        public Optional<Integer> getEstimatedRuntimeInMinutes()
        “The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647”
        Returns:
        property estimatedRuntimeInMinutes
      • withEstimatedRuntimeInMinutes

        public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory withEstimatedRuntimeInMinutes​(Integer estimatedRuntimeInMinutes)
        Returns an immutable copy of this with just the estimatedRuntimeInMinutes field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647”

        Parameters:
        estimatedRuntimeInMinutes - new value of estimatedRuntimeInMinutes field (as defined in service metadata)
        Returns:
        immutable copy of this with just the estimatedRuntimeInMinutes field changed
      • getRuntimeDateTime

        public Optional<String> getRuntimeDateTime()
        “The datetime for the instance of runtime history.”
        Returns:
        property runtimeDateTime
      • withRuntimeDateTime

        public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory withRuntimeDateTime​(String runtimeDateTime)
        Returns an immutable copy of this with just the runtimeDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The datetime for the instance of runtime history.”

        Parameters:
        runtimeDateTime - new value of runtimeDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runtimeDateTime field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected