Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthRuntimeDetails
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.UserExperienceAnalyticsBatteryHealthRuntimeDetails
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsBatteryHealthRuntimeDetails extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics battery health runtime entity contains count of devices broken down into 3 categories - devices with runtime > 5 hours, devices with runtime 3-5 hours and devices with runtime < 3 hours.This API provides the count of devices in these 3 categories.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthRuntimeDetails.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegeractiveDevicesprotected IntegerbatteryRuntimeFairprotected IntegerbatteryRuntimeGoodprotected IntegerbatteryRuntimePoor-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthRuntimeDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthRuntimeDetails.BuilderbuilderUserExperienceAnalyticsBatteryHealthRuntimeDetails()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 within the tenant.Optional<Integer>getBatteryRuntimeFair()“Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours.Optional<Integer>getBatteryRuntimeGood()“Number of devices whose active runtime is greater than 5 hours.Optional<Integer>getBatteryRuntimePoor()“Number of devices whose active runtime is lesser than 3 hours.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthRuntimeDetailspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthRuntimeDetailsput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthRuntimeDetailswithActiveDevices(Integer activeDevices)Returns an immutable copy ofthiswith just theactiveDevicesfield changed.UserExperienceAnalyticsBatteryHealthRuntimeDetailswithBatteryRuntimeFair(Integer batteryRuntimeFair)Returns an immutable copy ofthiswith just thebatteryRuntimeFairfield changed.UserExperienceAnalyticsBatteryHealthRuntimeDetailswithBatteryRuntimeGood(Integer batteryRuntimeGood)Returns an immutable copy ofthiswith just thebatteryRuntimeGoodfield changed.UserExperienceAnalyticsBatteryHealthRuntimeDetailswithBatteryRuntimePoor(Integer batteryRuntimePoor)Returns an immutable copy ofthiswith just thebatteryRuntimePoorfield changed.UserExperienceAnalyticsBatteryHealthRuntimeDetailswithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsBatteryHealthRuntimeDetails
public static UserExperienceAnalyticsBatteryHealthRuntimeDetails.Builder builderUserExperienceAnalyticsBatteryHealthRuntimeDetails()
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 within the tenant. Valid values -2147483648 to 2147483647”- Returns:
- property activeDevices
-
withActiveDevices
public UserExperienceAnalyticsBatteryHealthRuntimeDetails 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 within the tenant. Valid values -2147483648 to 2147483647”
- Parameters:
activeDevices- new value ofactiveDevicesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactiveDevicesfield changed
-
getBatteryRuntimeFair
public Optional<Integer> getBatteryRuntimeFair()
“Number of devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647”- Returns:
- property batteryRuntimeFair
-
withBatteryRuntimeFair
public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimeFair(Integer batteryRuntimeFair)
Returns an immutable copy ofthiswith just thebatteryRuntimeFairfield 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 devices whose active runtime is greater than 3 hours but lesser than 5 hours. Valid values -2147483648 to 2147483647”
- Parameters:
batteryRuntimeFair- new value ofbatteryRuntimeFairfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryRuntimeFairfield changed
-
getBatteryRuntimeGood
public Optional<Integer> getBatteryRuntimeGood()
“Number of devices whose active runtime is greater than 5 hours. Valid values - 2147483648 to 2147483647”- Returns:
- property batteryRuntimeGood
-
withBatteryRuntimeGood
public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimeGood(Integer batteryRuntimeGood)
Returns an immutable copy ofthiswith just thebatteryRuntimeGoodfield 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 devices whose active runtime is greater than 5 hours. Valid values - 2147483648 to 2147483647”
- Parameters:
batteryRuntimeGood- new value ofbatteryRuntimeGoodfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryRuntimeGoodfield changed
-
getBatteryRuntimePoor
public Optional<Integer> getBatteryRuntimePoor()
“Number of devices whose active runtime is lesser than 3 hours. Valid values - 2147483648 to 2147483647”- Returns:
- property batteryRuntimePoor
-
withBatteryRuntimePoor
public UserExperienceAnalyticsBatteryHealthRuntimeDetails withBatteryRuntimePoor(Integer batteryRuntimePoor)
Returns an immutable copy ofthiswith just thebatteryRuntimePoorfield 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 devices whose active runtime is lesser than 3 hours. Valid values - 2147483648 to 2147483647”
- Parameters:
batteryRuntimePoor- new value ofbatteryRuntimePoorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryRuntimePoorfield changed
-
withUnmappedField
public UserExperienceAnalyticsBatteryHealthRuntimeDetails 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 UserExperienceAnalyticsBatteryHealthRuntimeDetails patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthRuntimeDetails put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-