Package odata.msgraph.client.entity
Class DeviceInstallState
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceInstallState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceInstallState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for the installation state for a device.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceInstallState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdeviceIdprotected StringdeviceNameprotected StringerrorCodeprotected InstallStateinstallStateprotected OffsetDateTimelastSyncDateTimeprotected StringosDescriptionprotected StringosVersionprotected StringuserName-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceInstallState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceInstallState.BuilderbuilderDeviceInstallState()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()“Device Id.”Optional<String>getDeviceName()“Device name.”Optional<String>getErrorCode()“The error code for install failures.”Optional<InstallState>getInstallState()“The install state of the eBook.”Optional<OffsetDateTime>getLastSyncDateTime()“Last sync date and time.”Optional<String>getOsDescription()“OS Description.”Optional<String>getOsVersion()“OS Version.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserName()“Device User Name.”StringodataTypeName()DeviceInstallStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceInstallStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceInstallStatewithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.DeviceInstallStatewithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.DeviceInstallStatewithErrorCode(String errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.DeviceInstallStatewithInstallState(InstallState installState)Returns an immutable copy ofthiswith just theinstallStatefield changed.DeviceInstallStatewithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.DeviceInstallStatewithOsDescription(String osDescription)Returns an immutable copy ofthiswith just theosDescriptionfield changed.DeviceInstallStatewithOsVersion(String osVersion)Returns an immutable copy ofthiswith just theosVersionfield changed.DeviceInstallStatewithUnmappedField(String name, Object value)DeviceInstallStatewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.
-
-
-
Field Detail
-
deviceId
protected String deviceId
-
deviceName
protected String deviceName
-
errorCode
protected String errorCode
-
installState
protected InstallState installState
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
osDescription
protected String osDescription
-
osVersion
protected String osVersion
-
userName
protected String userName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceInstallState
public static DeviceInstallState.Builder builderDeviceInstallState()
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
-
withDeviceId
public DeviceInstallState 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.“Device Id.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
withDeviceName
public DeviceInstallState 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 name.”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getErrorCode
public Optional<String> getErrorCode()
“The error code for install failures.”- Returns:
- property errorCode
-
withErrorCode
public DeviceInstallState withErrorCode(String errorCode)
Returns an immutable copy ofthiswith just theerrorCodefield 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 error code for install failures.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getInstallState
public Optional<InstallState> getInstallState()
“The install state of the eBook.”- Returns:
- property installState
-
withInstallState
public DeviceInstallState withInstallState(InstallState installState)
Returns an immutable copy ofthiswith just theinstallStatefield 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 install state of the eBook.”
- Parameters:
installState- new value ofinstallStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstallStatefield changed
-
getLastSyncDateTime
public Optional<OffsetDateTime> getLastSyncDateTime()
“Last sync date and time.”- Returns:
- property lastSyncDateTime
-
withLastSyncDateTime
public DeviceInstallState withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
Returns an immutable copy ofthiswith just thelastSyncDateTimefield 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.“Last sync date and time.”
- Parameters:
lastSyncDateTime- new value oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield changed
-
getOsDescription
public Optional<String> getOsDescription()
“OS Description.”- Returns:
- property osDescription
-
withOsDescription
public DeviceInstallState withOsDescription(String osDescription)
Returns an immutable copy ofthiswith just theosDescriptionfield 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.“OS Description.”
- Parameters:
osDescription- new value ofosDescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosDescriptionfield changed
-
withOsVersion
public DeviceInstallState withOsVersion(String osVersion)
Returns an immutable copy ofthiswith just theosVersionfield 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.“OS Version.”
- Parameters:
osVersion- new value ofosVersionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theosVersionfield changed
-
withUserName
public DeviceInstallState withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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 User Name.”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
withUnmappedField
public DeviceInstallState withUnmappedField(String name, Object 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 DeviceInstallState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceInstallState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-