Package odata.msgraph.client.beta.entity
Class UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“The user experience analytics battery health runtime history entity contains the trend of runtime of a device over a period of 30 days”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected IntegerestimatedRuntimeInMinutesprotected StringruntimeDateTime-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory.BuilderbuilderUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDeviceId()“The unique identifier of the device, Intune DeviceID or SCCM device id.”Optional<Integer>getEstimatedRuntimeInMinutes()“The estimated runtime of the device when the battery is fully charged.Optional<String>getRuntimeDateTime()“The datetime for the instance of runtime history.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistorypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistoryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistorywithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistorywithEstimatedRuntimeInMinutes(Integer estimatedRuntimeInMinutes)Returns an immutable copy ofthiswith just theestimatedRuntimeInMinutesfield changed.UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistorywithRuntimeDateTime(String runtimeDateTime)Returns an immutable copy ofthiswith just theruntimeDateTimefield changed.UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistorywithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory
public static UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory.Builder builderUserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory()
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
-
getDeviceId
public Optional<String> getDeviceId()
“The unique identifier of the device, Intune DeviceID or SCCM device id.”- Returns:
- property deviceId
-
withDeviceId
public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory 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
-
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 UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory 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
-
getRuntimeDateTime
public Optional<String> getRuntimeDateTime()
“The datetime for the instance of runtime history.”- Returns:
- property runtimeDateTime
-
withRuntimeDateTime
public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory withRuntimeDateTime(String runtimeDateTime)
Returns an immutable copy ofthiswith just theruntimeDateTimefield 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 datetime for the instance of runtime history.”
- Parameters:
runtimeDateTime- new value ofruntimeDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theruntimeDateTimefield changed
-
withUnmappedField
public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory 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 UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public UserExperienceAnalyticsBatteryHealthDeviceRuntimeHistory put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-