Package odata.msgraph.client.beta.entity
Class DeviceManagementScriptDeviceState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementScriptDeviceState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementScriptDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for device run state of the device management script.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementScriptDeviceState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegererrorCodeprotected StringerrorDescriptionprotected OffsetDateTimelastStateUpdateDateTimeprotected StringresultMessageprotected RunStaterunState-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementScriptDeviceState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementScriptDeviceState.BuilderbuilderDeviceManagementScriptDeviceState()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<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.”ManagedDeviceRequestgetManagedDevice()“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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementScriptDeviceStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementScriptDeviceStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementScriptDeviceStatewithErrorCode(Integer errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.DeviceManagementScriptDeviceStatewithErrorDescription(String errorDescription)Returns an immutable copy ofthiswith just theerrorDescriptionfield changed.DeviceManagementScriptDeviceStatewithLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)Returns an immutable copy ofthiswith just thelastStateUpdateDateTimefield changed.DeviceManagementScriptDeviceStatewithResultMessage(String resultMessage)Returns an immutable copy ofthiswith just theresultMessagefield changed.DeviceManagementScriptDeviceStatewithRunState(RunState runState)Returns an immutable copy ofthiswith just therunStatefield changed.DeviceManagementScriptDeviceStatewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
errorCode
protected Integer errorCode
-
errorDescription
protected String errorDescription
-
lastStateUpdateDateTime
protected OffsetDateTime lastStateUpdateDateTime
-
resultMessage
protected String resultMessage
-
runState
protected RunState runState
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementScriptDeviceState
public static DeviceManagementScriptDeviceState.Builder builderDeviceManagementScriptDeviceState()
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
-
getErrorCode
public Optional<Integer> getErrorCode()
“Error code corresponding to erroneous execution of the device management script.”- Returns:
- property errorCode
-
withErrorCode
public DeviceManagementScriptDeviceState withErrorCode(Integer 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.“Error code corresponding to erroneous execution of the device management script.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getErrorDescription
public Optional<String> getErrorDescription()
“Error description corresponding to erroneous execution of the device management script.”- Returns:
- property errorDescription
-
withErrorDescription
public DeviceManagementScriptDeviceState withErrorDescription(String errorDescription)
Returns an immutable copy ofthiswith just theerrorDescriptionfield 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.“Error description corresponding to erroneous execution of the device management script.”
- Parameters:
errorDescription- new value oferrorDescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorDescriptionfield changed
-
getLastStateUpdateDateTime
public Optional<OffsetDateTime> getLastStateUpdateDateTime()
“Latest time the device management script executes.”- Returns:
- property lastStateUpdateDateTime
-
withLastStateUpdateDateTime
public DeviceManagementScriptDeviceState withLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)
Returns an immutable copy ofthiswith just thelastStateUpdateDateTimefield 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.“Latest time the device management script executes.”
- Parameters:
lastStateUpdateDateTime- new value oflastStateUpdateDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastStateUpdateDateTimefield changed
-
getResultMessage
public Optional<String> getResultMessage()
“Details of execution output.”- Returns:
- property resultMessage
-
withResultMessage
public DeviceManagementScriptDeviceState withResultMessage(String resultMessage)
Returns an immutable copy ofthiswith just theresultMessagefield 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.“Details of execution output.”
- Parameters:
resultMessage- new value ofresultMessagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresultMessagefield changed
-
getRunState
public Optional<RunState> getRunState()
“State of latest run of the device management script.”- Returns:
- property runState
-
withRunState
public DeviceManagementScriptDeviceState withRunState(RunState runState)
Returns an immutable copy ofthiswith just therunStatefield 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.“State of latest run of the device management script.”
- Parameters:
runState- new value ofrunStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunStatefield changed
-
withUnmappedField
public DeviceManagementScriptDeviceState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getManagedDevice
public ManagedDeviceRequest getManagedDevice()
“The managed devices that executes the device management script.”- Returns:
- navigational property managedDevice
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceManagementScriptDeviceState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementScriptDeviceState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-