Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthDeviceAppImpact
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthDeviceAppImpact.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringappDisplayNameprotected StringappNameprotected StringappPublisherprotected DoublebatteryUsagePercentageprotected StringdeviceIdprotected BooleanisForegroundApp-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthDeviceAppImpact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthDeviceAppImpact.BuilderbuilderUserExperienceAnalyticsBatteryHealthDeviceAppImpact()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAppDisplayName()“User friendly display name for the app.Optional<String>getAppName()“App name.Optional<String>getAppPublisher()“App publisher.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.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDeviceId()“The unique identifier of the device, Intune DeviceID or SCCM device id.”Optional<Boolean>getIsForegroundApp()“true if the user had active interaction with the app.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthDeviceAppImpactpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthDeviceAppImpactput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithAppDisplayName(String appDisplayName)Returns an immutable copy ofthiswith just theappDisplayNamefield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithAppName(String appName)Returns an immutable copy ofthiswith just theappNamefield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithAppPublisher(String appPublisher)Returns an immutable copy ofthiswith just theappPublisherfield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithBatteryUsagePercentage(Double batteryUsagePercentage)Returns an immutable copy ofthiswith just thebatteryUsagePercentagefield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithIsForegroundApp(Boolean isForegroundApp)Returns an immutable copy ofthiswith just theisForegroundAppfield changed.UserExperienceAnalyticsBatteryHealthDeviceAppImpactwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
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 ofthiswith just theappDisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofappDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappDisplayNamefield changed
-
withAppName
public UserExperienceAnalyticsBatteryHealthDeviceAppImpact withAppName(String appName)
Returns an immutable copy ofthiswith just theappNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“App name. Eg: oltk.exe”
- Parameters:
appName- new value ofappNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappNamefield changed
-
getAppPublisher
public Optional<String> getAppPublisher()
“App publisher. Eg: Microsoft Corporation”- Returns:
- property appPublisher
-
withAppPublisher
public UserExperienceAnalyticsBatteryHealthDeviceAppImpact withAppPublisher(String appPublisher)
Returns an immutable copy ofthiswith just theappPublisherfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“App publisher. Eg: Microsoft Corporation”
- Parameters:
appPublisher- new value ofappPublisherfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappPublisherfield 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 ofthiswith just thebatteryUsagePercentagefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofbatteryUsagePercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryUsagePercentagefield 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 ofthiswith just thedeviceIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield 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 ofthiswith just theisForegroundAppfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofisForegroundAppfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisForegroundAppfield changed
-
withUnmappedField
public UserExperienceAnalyticsBatteryHealthDeviceAppImpact withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public UserExperienceAnalyticsBatteryHealthDeviceAppImpact patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthDeviceAppImpact put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-