Class UserExperienceAnalyticsBatteryHealthRuntimeDetails

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

    public class UserExperienceAnalyticsBatteryHealthRuntimeDetails
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The user experience analytics battery health runtime entity contains count of devices broken down into 3 categories - devices with runtime > 5 hours, devices with runtime 3-5 hours and devices with runtime < 3 hours.This API provides the count of devices in these 3 categories.”
    • Field Detail

      • activeDevices

        protected Integer activeDevices
      • batteryRuntimeFair

        protected Integer batteryRuntimeFair
      • batteryRuntimeGood

        protected Integer batteryRuntimeGood
      • batteryRuntimePoor

        protected Integer batteryRuntimePoor
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthRuntimeDetails

        protected UserExperienceAnalyticsBatteryHealthRuntimeDetails()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthRuntimeDetails.Builder builderUserExperienceAnalyticsBatteryHealthRuntimeDetails()
        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
      • getActiveDevices

        public Optional<Integer> getActiveDevices()
        “Number of active devices within the tenant. Valid values -2147483648 to 2147483647”
        Returns:
        property activeDevices
      • withActiveDevices

        public UserExperienceAnalyticsBatteryHealthRuntimeDetails withActiveDevices​(Integer activeDevices)
        Returns an immutable copy of this with just the activeDevices 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.

        “Number of active devices within the tenant. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getBatteryRuntimeFair()
        “Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647”
        Returns:
        property batteryRuntimeFair
      • withBatteryRuntimeFair

        public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimeFair​(Integer batteryRuntimeFair)
        Returns an immutable copy of this with just the batteryRuntimeFair 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.

        “Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getBatteryRuntimeGood()
        “Number of devices whose active runtime is greater than 5 hours. Valid values - 2147483648 to 2147483647”
        Returns:
        property batteryRuntimeGood
      • withBatteryRuntimeGood

        public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimeGood​(Integer batteryRuntimeGood)
        Returns an immutable copy of this with just the batteryRuntimeGood 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.

        “Number of devices whose active runtime is greater than 5 hours. Valid values - 2147483648 to 2147483647”

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

        public Optional<Integer> getBatteryRuntimePoor()
        “Number of devices whose active runtime is lesser than 3 hours. Valid values - 2147483648 to 2147483647”
        Returns:
        property batteryRuntimePoor
      • withBatteryRuntimePoor

        public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimePoor​(Integer batteryRuntimePoor)
        Returns an immutable copy of this with just the batteryRuntimePoor 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.

        “Number of devices whose active runtime is lesser than 3 hours. Valid values - 2147483648 to 2147483647”

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