Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthDevicePerformance
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.UserExperienceAnalyticsBatteryHealthDevicePerformance
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsBatteryHealthDevicePerformance extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics battery health device performance entity contains device level battery information.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthDevicePerformance.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerbatteryAgeInDaysprotected IntegerdeviceBatteryHealthScoreprotected StringdeviceIdprotected StringdeviceNameprotected IntegerestimatedRuntimeInMinutesprotected UserExperienceAnalyticsHealthStatehealthStatusprotected Stringmanufacturerprotected IntegermaxCapacityPercentageprotected Stringmodel-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthDevicePerformance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthDevicePerformance.BuilderbuilderUserExperienceAnalyticsBatteryHealthDevicePerformance()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getBatteryAgeInDays()“Estimated battery age.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Integer>getDeviceBatteryHealthScore()“A weighted average of a device’s maximum capacity score and runtime estimate score.Optional<String>getDeviceId()“The unique identifier of the device, Intune DeviceID.”Optional<String>getDeviceName()“Device friendly name.”Optional<Integer>getEstimatedRuntimeInMinutes()“The estimated runtime of the device when the battery is fully charged.Optional<UserExperienceAnalyticsHealthState>getHealthStatus()“The overall battery health status of the device.”Optional<String>getManufacturer()“The manufacturer name of the device.”Optional<Integer>getMaxCapacityPercentage()“Ratio of current capacity and design capacity of the battery with the lowest capacity.Optional<String>getModel()“The model name of the device.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthDevicePerformancepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthDevicePerformanceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthDevicePerformancewithBatteryAgeInDays(Integer batteryAgeInDays)Returns an immutable copy ofthiswith just thebatteryAgeInDaysfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithDeviceBatteryHealthScore(Integer deviceBatteryHealthScore)Returns an immutable copy ofthiswith just thedeviceBatteryHealthScorefield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithEstimatedRuntimeInMinutes(Integer estimatedRuntimeInMinutes)Returns an immutable copy ofthiswith just theestimatedRuntimeInMinutesfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithHealthStatus(UserExperienceAnalyticsHealthState healthStatus)Returns an immutable copy ofthiswith just thehealthStatusfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithManufacturer(String manufacturer)Returns an immutable copy ofthiswith just themanufacturerfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithMaxCapacityPercentage(Integer maxCapacityPercentage)Returns an immutable copy ofthiswith just themaxCapacityPercentagefield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithModel(String model)Returns an immutable copy ofthiswith just themodelfield changed.UserExperienceAnalyticsBatteryHealthDevicePerformancewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
batteryAgeInDays
protected Integer batteryAgeInDays
-
deviceBatteryHealthScore
protected Integer deviceBatteryHealthScore
-
deviceId
protected String deviceId
-
deviceName
protected String deviceName
-
estimatedRuntimeInMinutes
protected Integer estimatedRuntimeInMinutes
-
healthStatus
protected UserExperienceAnalyticsHealthState healthStatus
-
manufacturer
protected String manufacturer
-
maxCapacityPercentage
protected Integer maxCapacityPercentage
-
model
protected String model
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsBatteryHealthDevicePerformance
public static UserExperienceAnalyticsBatteryHealthDevicePerformance.Builder builderUserExperienceAnalyticsBatteryHealthDevicePerformance()
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
-
getBatteryAgeInDays
public Optional<Integer> getBatteryAgeInDays()
“Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647”- Returns:
- property batteryAgeInDays
-
withBatteryAgeInDays
public UserExperienceAnalyticsBatteryHealthDevicePerformance withBatteryAgeInDays(Integer batteryAgeInDays)
Returns an immutable copy ofthiswith just thebatteryAgeInDaysfield 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.“Estimated battery age. Unit in days. Valid values -2147483648 to 2147483647”
- Parameters:
batteryAgeInDays- new value ofbatteryAgeInDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebatteryAgeInDaysfield changed
-
getDeviceBatteryHealthScore
public Optional<Integer> getDeviceBatteryHealthScore()
“A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647”- Returns:
- property deviceBatteryHealthScore
-
withDeviceBatteryHealthScore
public UserExperienceAnalyticsBatteryHealthDevicePerformance withDeviceBatteryHealthScore(Integer deviceBatteryHealthScore)
Returns an immutable copy ofthiswith just thedeviceBatteryHealthScorefield 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.“A weighted average of a device’s maximum capacity score and runtime estimate score. Values range from 0-100. Valid values -2147483648 to 2147483647”
- Parameters:
deviceBatteryHealthScore- new value ofdeviceBatteryHealthScorefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceBatteryHealthScorefield changed
-
getDeviceId
public Optional<String> getDeviceId()
“The unique identifier of the device, Intune DeviceID.”- Returns:
- property deviceId
-
withDeviceId
public UserExperienceAnalyticsBatteryHealthDevicePerformance 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.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getDeviceName
public Optional<String> getDeviceName()
“Device friendly name.”- Returns:
- property deviceName
-
withDeviceName
public UserExperienceAnalyticsBatteryHealthDevicePerformance withDeviceName(String deviceName)
Returns an immutable copy ofthiswith just thedeviceNamefield 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.“Device friendly name.”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getEstimatedRuntimeInMinutes
public Optional<Integer> getEstimatedRuntimeInMinutes()
“The estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647”- Returns:
- property estimatedRuntimeInMinutes
-
withEstimatedRuntimeInMinutes
public UserExperienceAnalyticsBatteryHealthDevicePerformance withEstimatedRuntimeInMinutes(Integer estimatedRuntimeInMinutes)
Returns an immutable copy ofthiswith just theestimatedRuntimeInMinutesfield 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 estimated runtime of the device when the battery is fully charged. Unit in minutes. Valid values -2147483648 to 2147483647”
- Parameters:
estimatedRuntimeInMinutes- new value ofestimatedRuntimeInMinutesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theestimatedRuntimeInMinutesfield changed
-
getHealthStatus
public Optional<UserExperienceAnalyticsHealthState> getHealthStatus()
“The overall battery health status of the device.”- Returns:
- property healthStatus
-
withHealthStatus
public UserExperienceAnalyticsBatteryHealthDevicePerformance withHealthStatus(UserExperienceAnalyticsHealthState healthStatus)
Returns an immutable copy ofthiswith just thehealthStatusfield 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 overall battery health status of the device.”
- Parameters:
healthStatus- new value ofhealthStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thehealthStatusfield changed
-
getManufacturer
public Optional<String> getManufacturer()
“The manufacturer name of the device.”- Returns:
- property manufacturer
-
withManufacturer
public UserExperienceAnalyticsBatteryHealthDevicePerformance withManufacturer(String manufacturer)
Returns an immutable copy ofthiswith just themanufacturerfield 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 manufacturer name of the device.”
- Parameters:
manufacturer- new value ofmanufacturerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanufacturerfield changed
-
getMaxCapacityPercentage
public Optional<Integer> getMaxCapacityPercentage()
“Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values - 2147483648 to 2147483647”- Returns:
- property maxCapacityPercentage
-
withMaxCapacityPercentage
public UserExperienceAnalyticsBatteryHealthDevicePerformance withMaxCapacityPercentage(Integer maxCapacityPercentage)
Returns an immutable copy ofthiswith just themaxCapacityPercentagefield 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.“Ratio of current capacity and design capacity of the battery with the lowest capacity. Unit in percentage and values range from 0-100. Valid values - 2147483648 to 2147483647”
- Parameters:
maxCapacityPercentage- new value ofmaxCapacityPercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaxCapacityPercentagefield changed
-
withModel
public UserExperienceAnalyticsBatteryHealthDevicePerformance withModel(String model)
Returns an immutable copy ofthiswith just themodelfield 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 model name of the device.”
- Parameters:
model- new value ofmodelfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodelfield changed
-
withUnmappedField
public UserExperienceAnalyticsBatteryHealthDevicePerformance 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 UserExperienceAnalyticsBatteryHealthDevicePerformance patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthDevicePerformance put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-