Class UserExperienceAnalyticsBatteryHealthAppImpact

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

    public class UserExperienceAnalyticsBatteryHealthAppImpact
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The user experience analytics battery health app impact entity contains battery usage related information at an app level for the tenant.”
    • Field Detail

      • activeDevices

        protected Integer activeDevices
      • appDisplayName

        protected String appDisplayName
      • appName

        protected String appName
      • appPublisher

        protected String appPublisher
      • batteryUsagePercentage

        protected Double batteryUsagePercentage
      • isForegroundApp

        protected Boolean isForegroundApp
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthAppImpact

        protected UserExperienceAnalyticsBatteryHealthAppImpact()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthAppImpact.Builder builderUserExperienceAnalyticsBatteryHealthAppImpact()
        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 using that app over a 14-day period. Valid values - 2147483648 to 2147483647”
        Returns:
        property activeDevices
      • withActiveDevices

        public UserExperienceAnalyticsBatteryHealthAppImpact 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 using that app over a 14-day period. 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
      • getAppDisplayName

        public Optional<String> getAppDisplayName()
        “User friendly display name for the app. Eg: Outlook”
        Returns:
        property appDisplayName
      • withAppDisplayName

        public UserExperienceAnalyticsBatteryHealthAppImpact withAppDisplayName​(String appDisplayName)
        Returns an immutable copy of this with just the appDisplayName 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.

        “User friendly display name for the app. Eg: Outlook”

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

        public Optional<String> getAppName()
        “App name. Eg: oltk.exe”
        Returns:
        property appName
      • withAppName

        public UserExperienceAnalyticsBatteryHealthAppImpact withAppName​(String appName)
        Returns an immutable copy of this with just the appName 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.

        “App name. Eg: oltk.exe”

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

        public Optional<String> getAppPublisher()
        “App publisher. Eg: Microsoft Corporation”
        Returns:
        property appPublisher
      • withAppPublisher

        public UserExperienceAnalyticsBatteryHealthAppImpact withAppPublisher​(String appPublisher)
        Returns an immutable copy of this with just the appPublisher 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.

        “App publisher. Eg: Microsoft Corporation”

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

        public Optional<Double> getBatteryUsagePercentage()
        “The percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”
        Returns:
        property batteryUsagePercentage
      • withBatteryUsagePercentage

        public UserExperienceAnalyticsBatteryHealthAppImpact withBatteryUsagePercentage​(Double batteryUsagePercentage)
        Returns an immutable copy of this with just the batteryUsagePercentage 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 percent of total battery power used by this application when the device was not plugged into AC power, over 14 days computed across all devices in the tenant. Unit in percentage. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”

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

        public Optional<Boolean> getIsForegroundApp()
        “true if the user had active interaction with the app.”
        Returns:
        property isForegroundApp
      • withIsForegroundApp

        public UserExperienceAnalyticsBatteryHealthAppImpact withIsForegroundApp​(Boolean isForegroundApp)
        Returns an immutable copy of this with just the isForegroundApp 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.

        “true if the user had active interaction with the app.”

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