Class UserExperienceAnalyticsBatteryHealthModelPerformance

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

    public class UserExperienceAnalyticsBatteryHealthModelPerformance
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The user experience analytics battery health model performance entity contains battery related information for all unique device models in their organization.”
    • Field Detail

      • activeDevices

        protected Integer activeDevices
      • averageBatteryAgeInDays

        protected Integer averageBatteryAgeInDays
      • averageEstimatedRuntimeInMinutes

        protected Integer averageEstimatedRuntimeInMinutes
      • averageMaxCapacityPercentage

        protected Integer averageMaxCapacityPercentage
      • manufacturer

        protected String manufacturer
      • model

        protected String model
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthModelPerformance

        protected UserExperienceAnalyticsBatteryHealthModelPerformance()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthModelPerformance.Builder builderUserExperienceAnalyticsBatteryHealthModelPerformance()
        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 for that model. Valid values -2147483648 to 2147483647”
        Returns:
        property activeDevices
      • withActiveDevices

        public UserExperienceAnalyticsBatteryHealthModelPerformance 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 for that model. 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
      • getAverageBatteryAgeInDays

        public Optional<Integer> getAverageBatteryAgeInDays()
        “The mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647”
        Returns:
        property averageBatteryAgeInDays
      • withAverageBatteryAgeInDays

        public UserExperienceAnalyticsBatteryHealthModelPerformance withAverageBatteryAgeInDays​(Integer averageBatteryAgeInDays)
        Returns an immutable copy of this with just the averageBatteryAgeInDays 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 mean of the battery age for all devices of a given model in a tenant. Unit in days. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getAverageEstimatedRuntimeInMinutes()
        “The mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647”
        Returns:
        property averageEstimatedRuntimeInMinutes
      • withAverageEstimatedRuntimeInMinutes

        public UserExperienceAnalyticsBatteryHealthModelPerformance withAverageEstimatedRuntimeInMinutes​(Integer averageEstimatedRuntimeInMinutes)
        Returns an immutable copy of this with just the averageEstimatedRuntimeInMinutes 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 mean of the estimated runtimes on full charge for all devices of a given model. Unit in minutes. Valid values -2147483648 to 2147483647”

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

        public Optional<Integer> getAverageMaxCapacityPercentage()
        “The mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647”
        Returns:
        property averageMaxCapacityPercentage
      • withAverageMaxCapacityPercentage

        public UserExperienceAnalyticsBatteryHealthModelPerformance withAverageMaxCapacityPercentage​(Integer averageMaxCapacityPercentage)
        Returns an immutable copy of this with just the averageMaxCapacityPercentage 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 mean of the maximum capacity for all devices of a given model. Maximum capacity measures the full charge vs. design capacity for a device’s batteries.. Valid values -2147483648 to 2147483647”

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

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

        public UserExperienceAnalyticsBatteryHealthModelPerformance 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.

        “Name of the device manufacturer.”

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

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

        public UserExperienceAnalyticsBatteryHealthModelPerformance 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 UserExperienceAnalyticsBatteryHealthModelPerformance 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 UserExperienceAnalyticsBatteryHealthModelPerformance 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