public class DeviceManagementScriptDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceManagementScriptDeviceState.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
errorCode |
protected String |
errorDescription |
protected OffsetDateTime |
lastStateUpdateDateTime |
protected String |
resultMessage |
protected RunState |
runState |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceManagementScriptDeviceState() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceManagementScriptDeviceState.Builder |
builderDeviceManagementScriptDeviceState()
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<Integer> |
getErrorCode()
“Error code corresponding to erroneous execution of the device management script.”
|
Optional<String> |
getErrorDescription()
“Error description corresponding to erroneous execution of the device management
script.”
|
Optional<OffsetDateTime> |
getLastStateUpdateDateTime()
“Latest time the device management script executes.”
|
ManagedDeviceRequest |
getManagedDevice()
“The managed devices that executes the device management script.”
|
Optional<String> |
getResultMessage()
“Details of execution output.”
|
Optional<RunState> |
getRunState()
“State of latest run of the device management script.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
DeviceManagementScriptDeviceState |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceManagementScriptDeviceState |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceManagementScriptDeviceState |
withErrorCode(Integer errorCode)
Returns an immutable copy of
this with just the errorCode field
changed. |
DeviceManagementScriptDeviceState |
withErrorDescription(String errorDescription)
Returns an immutable copy of
this with just the errorDescription
field changed. |
DeviceManagementScriptDeviceState |
withLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)
Returns an immutable copy of
this with just the lastStateUpdateDateTime field changed. |
DeviceManagementScriptDeviceState |
withResultMessage(String resultMessage)
Returns an immutable copy of
this with just the resultMessage
field changed. |
DeviceManagementScriptDeviceState |
withRunState(RunState runState)
Returns an immutable copy of
this with just the runState field
changed. |
protected RunState runState
protected String resultMessage
protected OffsetDateTime lastStateUpdateDateTime
protected Integer errorCode
protected String errorDescription
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceManagementScriptDeviceState.Builder builderDeviceManagementScriptDeviceState()
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 Optional<RunState> getRunState()
public DeviceManagementScriptDeviceState withRunState(RunState runState)
this with just the runState 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.
“State of latest run of the device management script.”
runState - new value of runState field (as defined in service metadata)this with just the runState field changedpublic Optional<String> getResultMessage()
public DeviceManagementScriptDeviceState withResultMessage(String resultMessage)
this with just the resultMessage
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.
“Details of execution output.”
resultMessage - new value of resultMessage field (as defined in service metadata)this with just the resultMessage field changedpublic Optional<OffsetDateTime> getLastStateUpdateDateTime()
public DeviceManagementScriptDeviceState withLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)
this with just the lastStateUpdateDateTime 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.
“Latest time the device management script executes.”
lastStateUpdateDateTime - new value of lastStateUpdateDateTime field (as defined in service metadata)this with just the lastStateUpdateDateTime field changedpublic Optional<Integer> getErrorCode()
public DeviceManagementScriptDeviceState withErrorCode(Integer 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.
“Error code corresponding to erroneous execution of the device management script.”
errorCode - new value of errorCode field (as defined in service metadata)this with just the errorCode field changedpublic Optional<String> getErrorDescription()
public DeviceManagementScriptDeviceState withErrorDescription(String errorDescription)
this with just the errorDescription
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.
“Error description corresponding to erroneous execution of the device management script.”
errorDescription - new value of errorDescription field (as defined in service metadata)this with just the errorDescription field changedpublic ManagedDeviceRequest getManagedDevice()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceManagementScriptDeviceState patch()
this with changed fields reset.public DeviceManagementScriptDeviceState put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.