public class DeviceInstallState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceInstallState.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
deviceId |
protected String |
deviceName |
protected String |
errorCode |
protected InstallState |
installState |
protected OffsetDateTime |
lastSyncDateTime |
protected String |
osDescription |
protected String |
osVersion |
protected String |
userName |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceInstallState() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceInstallState.Builder |
builderDeviceInstallState()
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.ChangedFields |
getChangedFields() |
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.internal.UnmappedFields |
getUnmappedFields() |
Optional<String> |
getUserName()
“Device User Name.”
|
String |
odataTypeName() |
DeviceInstallState |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceInstallState |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceInstallState |
withDeviceId(String deviceId)
Returns an immutable copy of
this with just the deviceId field
changed. |
DeviceInstallState |
withDeviceName(String deviceName)
Returns an immutable copy of
this with just the deviceName field
changed. |
DeviceInstallState |
withErrorCode(String errorCode)
Returns an immutable copy of
this with just the errorCode field
changed. |
DeviceInstallState |
withInstallState(InstallState installState)
Returns an immutable copy of
this with just the installState
field changed. |
DeviceInstallState |
withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
Returns an immutable copy of
this with just the lastSyncDateTime
field changed. |
DeviceInstallState |
withOsDescription(String osDescription)
Returns an immutable copy of
this with just the osDescription
field changed. |
DeviceInstallState |
withOsVersion(String osVersion)
Returns an immutable copy of
this with just the osVersion field
changed. |
DeviceInstallState |
withUserName(String userName)
Returns an immutable copy of
this with just the userName field
changed. |
protected String deviceName
protected String deviceId
protected OffsetDateTime lastSyncDateTime
protected InstallState installState
protected String errorCode
protected String osVersion
protected String osDescription
protected String userName
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceInstallState.Builder builderDeviceInstallState()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic DeviceInstallState withDeviceName(String deviceName)
this with just the deviceName field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Device name.”
deviceName - new value of deviceName field (as defined in service metadata)this with just the deviceName field changedpublic DeviceInstallState withDeviceId(String deviceId)
this with just the deviceId field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Device Id.”
deviceId - new value of deviceId field (as defined in service metadata)this with just the deviceId field changedpublic Optional<OffsetDateTime> getLastSyncDateTime()
public DeviceInstallState withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
this with just the lastSyncDateTime
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Last sync date and time.”
lastSyncDateTime - new value of lastSyncDateTime field (as defined in service metadata)this with just the lastSyncDateTime field changedpublic Optional<InstallState> getInstallState()
public DeviceInstallState withInstallState(InstallState installState)
this with just the installState
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The install state of the eBook.”
installState - new value of installState field (as defined in service metadata)this with just the installState field changedpublic Optional<String> getErrorCode()
public DeviceInstallState withErrorCode(String errorCode)
this with just the errorCode field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“The error code for install failures.”
errorCode - new value of errorCode field (as defined in service metadata)this with just the errorCode field changedpublic DeviceInstallState withOsVersion(String osVersion)
this with just the osVersion field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“OS Version.”
osVersion - new value of osVersion field (as defined in service metadata)this with just the osVersion field changedpublic Optional<String> getOsDescription()
public DeviceInstallState withOsDescription(String osDescription)
this with just the osDescription
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“OS Description.”
osDescription - new value of osDescription field (as defined in service metadata)this with just the osDescription field changedpublic DeviceInstallState withUserName(String userName)
this with just the userName field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Device User Name.”
userName - new value of userName field (as defined in service metadata)this with just the userName field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceInstallState patch()
this with changed fields reset.public DeviceInstallState put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.