Class UserExperienceAnalyticsBatteryHealthCapacityDetails

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

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

      • activeDevices

        protected Integer activeDevices
      • batteryCapacityFair

        protected Integer batteryCapacityFair
      • batteryCapacityGood

        protected Integer batteryCapacityGood
      • batteryCapacityPoor

        protected Integer batteryCapacityPoor
      • lastRefreshedDateTime

        protected OffsetDateTime lastRefreshedDateTime
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthCapacityDetails

        protected UserExperienceAnalyticsBatteryHealthCapacityDetails()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthCapacityDetails.Builder builderUserExperienceAnalyticsBatteryHealthCapacityDetails()
        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 UserExperienceAnalyticsBatteryHealthCapacityDetails 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
      • getBatteryCapacityFair

        public Optional<Integer> getBatteryCapacityFair()
        “Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647”
        Returns:
        property batteryCapacityFair
      • withBatteryCapacityFair

        public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityFair​(Integer batteryCapacityFair)
        Returns an immutable copy of this with just the batteryCapacityFair 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 battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getBatteryCapacityGood()
        “Number of devices whose battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647”
        Returns:
        property batteryCapacityGood
      • withBatteryCapacityGood

        public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityGood​(Integer batteryCapacityGood)
        Returns an immutable copy of this with just the batteryCapacityGood 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 battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getBatteryCapacityPoor()
        “Number of devices whose battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647”
        Returns:
        property batteryCapacityPoor
      • withBatteryCapacityPoor

        public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityPoor​(Integer batteryCapacityPoor)
        Returns an immutable copy of this with just the batteryCapacityPoor 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 battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647”

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

        public Optional<OffsetDateTime> getLastRefreshedDateTime()
        “Recorded date time of this capacity details instance.”
        Returns:
        property lastRefreshedDateTime
      • withLastRefreshedDateTime

        public UserExperienceAnalyticsBatteryHealthCapacityDetails withLastRefreshedDateTime​(OffsetDateTime lastRefreshedDateTime)
        Returns an immutable copy of this with just the lastRefreshedDateTime 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.

        “Recorded date time of this capacity details instance.”

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