Class UserExperienceAnalyticsBatteryHealthDevicePerformance

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

    public class UserExperienceAnalyticsBatteryHealthDevicePerformance
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The user experience analytics battery health device performance entity contains device level battery information.”
    • Field Detail

      • batteryAgeInDays

        protected Integer batteryAgeInDays
      • deviceBatteryHealthScore

        protected Integer deviceBatteryHealthScore
      • deviceId

        protected String deviceId
      • deviceName

        protected String deviceName
      • estimatedRuntimeInMinutes

        protected Integer estimatedRuntimeInMinutes
      • manufacturer

        protected String manufacturer
      • maxCapacityPercentage

        protected Integer maxCapacityPercentage
      • model

        protected String model
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthDevicePerformance

        protected UserExperienceAnalyticsBatteryHealthDevicePerformance()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthDevicePerformance.Builder builderUserExperienceAnalyticsBatteryHealthDevicePerformance()
        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
      • getBatteryAgeInDays

        public Optional<Integer> getBatteryAgeInDays()
        “Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647”
        Returns:
        property batteryAgeInDays
      • withBatteryAgeInDays

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withBatteryAgeInDays​(Integer batteryAgeInDays)
        Returns an immutable copy of this with just the batteryAgeInDays 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.

        “Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getDeviceBatteryHealthScore()
        “A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647”
        Returns:
        property deviceBatteryHealthScore
      • withDeviceBatteryHealthScore

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withDeviceBatteryHealthScore​(Integer deviceBatteryHealthScore)
        Returns an immutable copy of this with just the deviceBatteryHealthScore 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.

        “A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647”

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

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

        public UserExperienceAnalyticsBatteryHealthDevicePerformance 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.”

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

        public Optional<String> getDeviceName()
        “Device friendly name.”
        Returns:
        property deviceName
      • withDeviceName

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withDeviceName​(String deviceName)
        Returns an immutable copy of this with just the deviceName 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.

        “Device friendly name.”

        Parameters:
        deviceName - new value of deviceName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceName 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 UserExperienceAnalyticsBatteryHealthDevicePerformance 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
      • withHealthStatus

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withHealthStatus​(UserExperienceAnalyticsHealthState healthStatus)
        Returns an immutable copy of this with just the healthStatus 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 overall battery health status of the device.”

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

        public Optional<String> getManufacturer()
        “The manufacturer name of the device.”
        Returns:
        property manufacturer
      • withManufacturer

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withManufacturer​(String manufacturer)
        Returns an immutable copy of this with just the manufacturer 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 manufacturer name of the device.”

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

        public Optional<Integer> getMaxCapacityPercentage()
        “Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values - 2147483648 to 2147483647”
        Returns:
        property maxCapacityPercentage
      • withMaxCapacityPercentage

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withMaxCapacityPercentage​(Integer maxCapacityPercentage)
        Returns an immutable copy of this with just the maxCapacityPercentage 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.

        “Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values - 2147483648 to 2147483647”

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

        public Optional<String> getModel()
        “The model name of the device.”
        Returns:
        property model
      • withModel

        public UserExperienceAnalyticsBatteryHealthDevicePerformance withModel​(String model)
        Returns an immutable copy of this with just the model 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 model name of the device.”

        Parameters:
        model - new value of model field (as defined in service metadata)
        Returns:
        immutable copy of this with just the model 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 UserExperienceAnalyticsBatteryHealthDevicePerformance 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 UserExperienceAnalyticsBatteryHealthDevicePerformance 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