Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthAppImpact
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthAppImpact.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegeractiveDevicesprotected StringappDisplayNameprotected StringappNameprotected StringappPublisherprotected DoublebatteryUsagePercentageprotected BooleanisForegroundApp-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthAppImpact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthAppImpact.BuilderbuilderUserExperienceAnalyticsBatteryHealthAppImpact()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getActiveDevices()“Number of active devices for using that app over a 14-day period.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 computed across all devices in the tenant.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getIsForegroundApp()“true if the user had active interaction with the app.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthAppImpactpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthAppImpactput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthAppImpactwithActiveDevices(Integer activeDevices)Returns an immutable copy ofthiswith just theactiveDevicesfield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithAppDisplayName(String appDisplayName)Returns an immutable copy ofthiswith just theappDisplayNamefield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithAppName(String appName)Returns an immutable copy ofthiswith just theappNamefield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithAppPublisher(String appPublisher)Returns an immutable copy ofthiswith just theappPublisherfield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithBatteryUsagePercentage(Double batteryUsagePercentage)Returns an immutable copy ofthiswith just thebatteryUsagePercentagefield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithIsForegroundApp(Boolean isForegroundApp)Returns an immutable copy ofthiswith just theisForegroundAppfield changed.UserExperienceAnalyticsBatteryHealthAppImpactwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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:
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
-
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 ofthiswith just theactiveDevicesfield 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.“Number of active devices for using that app over a 14-day period. Valid values - 2147483648 to 2147483647”
- Parameters:
activeDevices- new value ofactiveDevicesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactiveDevicesfield 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 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 UserExperienceAnalyticsBatteryHealthAppImpact 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 UserExperienceAnalyticsBatteryHealthAppImpact 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 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 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 computed across all devices in the tenant. 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
-
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 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 UserExperienceAnalyticsBatteryHealthAppImpact 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 UserExperienceAnalyticsBatteryHealthAppImpact patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthAppImpact put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-