Package odata.msgraph.client.complex
Class DeviceActionResult
- java.lang.Object
-
- odata.msgraph.client.complex.DeviceActionResult
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeleteUserFromSharedAppleDeviceActionResult,LocateDeviceActionResult,RemoteLockActionResult,ResetPasscodeActionResult,RotateBitLockerKeysDeviceActionResult,WindowsDefenderScanActionResult
public class DeviceActionResult extends Object implements com.github.davidmoten.odata.client.ODataType
“Device action result”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceActionResult.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringactionNameprotected ActionStateactionStateprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected OffsetDateTimelastUpdatedDateTimeprotected StringodataTypeprotected OffsetDateTimestartDateTimeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceActionResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceActionResult.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getActionName()“Action name”Optional<ActionState>getActionState()“State of the action”Optional<OffsetDateTime>getLastUpdatedDateTime()“Time the action state was last updated”Optional<OffsetDateTime>getStartDateTime()“Time the action was initiated”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceActionResultwithActionName(String actionName)Returns an immutable copy ofthiswith just theactionNamefield changed.DeviceActionResultwithActionState(ActionState actionState)Returns an immutable copy ofthiswith just theactionStatefield changed.DeviceActionResultwithLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield changed.DeviceActionResultwithStartDateTime(OffsetDateTime startDateTime)Returns an immutable copy ofthiswith just thestartDateTimefield changed.DeviceActionResultwithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
actionName
protected String actionName
-
actionState
protected ActionState actionState
-
lastUpdatedDateTime
protected OffsetDateTime lastUpdatedDateTime
-
startDateTime
protected OffsetDateTime startDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withActionName
public DeviceActionResult withActionName(String actionName)
Returns an immutable copy ofthiswith just theactionNamefield 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.“Action name”
- Parameters:
actionName- new value ofactionNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionNamefield changed
-
getActionState
public Optional<ActionState> getActionState()
“State of the action”- Returns:
- property actionState
-
withActionState
public DeviceActionResult withActionState(ActionState actionState)
Returns an immutable copy ofthiswith just theactionStatefield 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 the action”
- Parameters:
actionState- new value ofactionStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionStatefield changed
-
getLastUpdatedDateTime
public Optional<OffsetDateTime> getLastUpdatedDateTime()
“Time the action state was last updated”- Returns:
- property lastUpdatedDateTime
-
withLastUpdatedDateTime
public DeviceActionResult withLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)
Returns an immutable copy ofthiswith just thelastUpdatedDateTimefield 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.“Time the action state was last updated”
- Parameters:
lastUpdatedDateTime- new value oflastUpdatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastUpdatedDateTimefield changed
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
“Time the action was initiated”- Returns:
- property startDateTime
-
withStartDateTime
public DeviceActionResult withStartDateTime(OffsetDateTime startDateTime)
Returns an immutable copy ofthiswith just thestartDateTimefield 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.“Time the action was initiated”
- Parameters:
startDateTime- new value ofstartDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDateTimefield changed
-
withUnmappedField
public DeviceActionResult withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static DeviceActionResult.Builder builder()
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
-
-