Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthCapacityDetails
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.UserExperienceAnalyticsBatteryHealthCapacityDetails
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsBatteryHealthCapacityDetails extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics battery health capacity entity contains count of devices broken down into 3 categories - devices with capacity > 80%, devices with capacity 50-80% and devices with capacity < 50 %.This API provides the count of devices in these 3 categories..”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthCapacityDetails.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegeractiveDevicesprotected IntegerbatteryCapacityFairprotected IntegerbatteryCapacityGoodprotected IntegerbatteryCapacityPoorprotected OffsetDateTimelastRefreshedDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthCapacityDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthCapacityDetails.BuilderbuilderUserExperienceAnalyticsBatteryHealthCapacityDetails()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>getBatteryCapacityFair()“Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%.Optional<Integer>getBatteryCapacityGood()“Number of devices whose battery maximum capacity is greater than 80%.Optional<Integer>getBatteryCapacityPoor()“Number of devices whose battery maximum capacity is lesser than 50%.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getLastRefreshedDateTime()“Recorded date time of this capacity details instance.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthCapacityDetailspatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthCapacityDetailsput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthCapacityDetailswithActiveDevices(Integer activeDevices)Returns an immutable copy ofthiswith just theactiveDevicesfield changed.UserExperienceAnalyticsBatteryHealthCapacityDetailswithBatteryCapacityFair(Integer batteryCapacityFair)Returns an immutable copy ofthiswith just thebatteryCapacityFairfield changed.UserExperienceAnalyticsBatteryHealthCapacityDetailswithBatteryCapacityGood(Integer batteryCapacityGood)Returns an immutable copy ofthiswith just thebatteryCapacityGoodfield changed.UserExperienceAnalyticsBatteryHealthCapacityDetailswithBatteryCapacityPoor(Integer batteryCapacityPoor)Returns an immutable copy ofthiswith just thebatteryCapacityPoorfield changed.UserExperienceAnalyticsBatteryHealthCapacityDetailswithLastRefreshedDateTime(OffsetDateTime lastRefreshedDateTime)Returns an immutable copy ofthiswith just thelastRefreshedDateTimefield changed.UserExperienceAnalyticsBatteryHealthCapacityDetailswithUnmappedField(String name, String value)
-
-
-
Field Detail
-
activeDevices
protected Integer activeDevices
-
batteryCapacityFair
protected Integer batteryCapacityFair
-
batteryCapacityGood
protected Integer batteryCapacityGood
-
batteryCapacityPoor
protected Integer batteryCapacityPoor
-
lastRefreshedDateTime
protected OffsetDateTime lastRefreshedDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsBatteryHealthCapacityDetails
public static UserExperienceAnalyticsBatteryHealthCapacityDetails.Builder builderUserExperienceAnalyticsBatteryHealthCapacityDetails()
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 UserExperienceAnalyticsBatteryHealthCapacityDetails 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
-
getBatteryCapacityFair
public Optional<Integer> getBatteryCapacityFair()
“Number of devices whose battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647”- Returns:
- property batteryCapacityFair
-
withBatteryCapacityFair
public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityFair(Integer batteryCapacityFair)
Returns an immutable copy ofthiswith just thebatteryCapacityFairfield 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 battery maximum capacity is greater than 50% but lesser than 80%. Valid values -2147483648 to 2147483647”
- Parameters:
batteryCapacityFair- new value ofbatteryCapacityFairfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryCapacityFairfield changed
-
getBatteryCapacityGood
public Optional<Integer> getBatteryCapacityGood()
“Number of devices whose battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647”- Returns:
- property batteryCapacityGood
-
withBatteryCapacityGood
public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityGood(Integer batteryCapacityGood)
Returns an immutable copy ofthiswith just thebatteryCapacityGoodfield 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 battery maximum capacity is greater than 80%. Valid values -2147483648 to 2147483647”
- Parameters:
batteryCapacityGood- new value ofbatteryCapacityGoodfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryCapacityGoodfield changed
-
getBatteryCapacityPoor
public Optional<Integer> getBatteryCapacityPoor()
“Number of devices whose battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647”- Returns:
- property batteryCapacityPoor
-
withBatteryCapacityPoor
public UserExperienceAnalyticsBatteryHealthCapacityDetails withBatteryCapacityPoor(Integer batteryCapacityPoor)
Returns an immutable copy ofthiswith just thebatteryCapacityPoorfield 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 battery maximum capacity is lesser than 50%. Valid values -2147483648 to 2147483647”
- Parameters:
batteryCapacityPoor- new value ofbatteryCapacityPoorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryCapacityPoorfield changed
-
getLastRefreshedDateTime
public Optional<OffsetDateTime> getLastRefreshedDateTime()
“Recorded date time of this capacity details instance.”- Returns:
- property lastRefreshedDateTime
-
withLastRefreshedDateTime
public UserExperienceAnalyticsBatteryHealthCapacityDetails withLastRefreshedDateTime(OffsetDateTime lastRefreshedDateTime)
Returns an immutable copy ofthiswith just thelastRefreshedDateTimefield 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.“Recorded date time of this capacity details instance.”
- Parameters:
lastRefreshedDateTime- new value oflastRefreshedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastRefreshedDateTimefield changed
-
withUnmappedField
public UserExperienceAnalyticsBatteryHealthCapacityDetails 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 UserExperienceAnalyticsBatteryHealthCapacityDetails patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthCapacityDetails put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-