Class UserExperienceAnalyticsBatteryHealthDeviceAppImpact

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

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

      • appDisplayName

        protected String appDisplayName
      • appName

        protected String appName
      • appPublisher

        protected String appPublisher
      • batteryUsagePercentage

        protected Double batteryUsagePercentage
      • deviceId

        protected String deviceId
      • isForegroundApp

        protected Boolean isForegroundApp
    • Constructor Detail

      • UserExperienceAnalyticsBatteryHealthDeviceAppImpact

        protected UserExperienceAnalyticsBatteryHealthDeviceAppImpact()
    • Method Detail

      • odataTypeName

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

        public static UserExperienceAnalyticsBatteryHealthDeviceAppImpact.Builder builderUserExperienceAnalyticsBatteryHealthDeviceAppImpact()
        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
      • getAppDisplayName

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

        public UserExperienceAnalyticsBatteryHealthDeviceAppImpact 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 UserExperienceAnalyticsBatteryHealthDeviceAppImpact 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 UserExperienceAnalyticsBatteryHealthDeviceAppImpact 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. Unit in percentage. Valid values -1. 79769313486232E+308 to 1.79769313486232E+308”
        Returns:
        property batteryUsagePercentage
      • withBatteryUsagePercentage

        public UserExperienceAnalyticsBatteryHealthDeviceAppImpact 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. 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
      • getDeviceId

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

        public UserExperienceAnalyticsBatteryHealthDeviceAppImpact 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 or SCCM device id.”

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

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

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