Partager via


MicrosoftGraphDeviceActionResult Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDeviceActionResult

Implements

public final class MicrosoftGraphDeviceActionResult
implements JsonSerializable<MicrosoftGraphDeviceActionResult>

deviceActionResult Device action result.

Constructor Summary

Constructor Description
MicrosoftGraphDeviceActionResult()

Creates an instance of MicrosoftGraphDeviceActionResult class.

Method Summary

Modifier and Type Method and Description
String actionName()

Get the actionName property: Action name.

MicrosoftGraphActionState actionState()

Get the actionState property: actionState.

Map<String,Object> additionalProperties()

Get the additionalProperties property: Device action result.

static MicrosoftGraphDeviceActionResult fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceActionResult from the JsonReader.

OffsetDateTime lastUpdatedDateTime()

Get the lastUpdatedDateTime property: Time the action state was last updated.

OffsetDateTime startDateTime()

Get the startDateTime property: Time the action was initiated.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDeviceActionResult withActionName(String actionName)

Set the actionName property: Action name.

MicrosoftGraphDeviceActionResult withActionState(MicrosoftGraphActionState actionState)

Set the actionState property: actionState.

MicrosoftGraphDeviceActionResult withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Device action result.

MicrosoftGraphDeviceActionResult withLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)

Set the lastUpdatedDateTime property: Time the action state was last updated.

MicrosoftGraphDeviceActionResult withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Time the action was initiated.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDeviceActionResult

public MicrosoftGraphDeviceActionResult()

Creates an instance of MicrosoftGraphDeviceActionResult class.

Method Details

actionName

public String actionName()

Get the actionName property: Action name.

Returns:

the actionName value.

actionState

public MicrosoftGraphActionState actionState()

Get the actionState property: actionState.

Returns:

the actionState value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Device action result.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphDeviceActionResult fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceActionResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDeviceActionResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphDeviceActionResult.

lastUpdatedDateTime

public OffsetDateTime lastUpdatedDateTime()

Get the lastUpdatedDateTime property: Time the action state was last updated.

Returns:

the lastUpdatedDateTime value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: Time the action was initiated.

Returns:

the startDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withActionName

public MicrosoftGraphDeviceActionResult withActionName(String actionName)

Set the actionName property: Action name.

Parameters:

actionName - the actionName value to set.

Returns:

the MicrosoftGraphDeviceActionResult object itself.

withActionState

public MicrosoftGraphDeviceActionResult withActionState(MicrosoftGraphActionState actionState)

Set the actionState property: actionState.

Parameters:

actionState - the actionState value to set.

Returns:

the MicrosoftGraphDeviceActionResult object itself.

withAdditionalProperties

public MicrosoftGraphDeviceActionResult withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Device action result.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDeviceActionResult object itself.

withLastUpdatedDateTime

public MicrosoftGraphDeviceActionResult withLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)

Set the lastUpdatedDateTime property: Time the action state was last updated.

Parameters:

lastUpdatedDateTime - the lastUpdatedDateTime value to set.

Returns:

the MicrosoftGraphDeviceActionResult object itself.

withStartDateTime

public MicrosoftGraphDeviceActionResult withStartDateTime(OffsetDateTime startDateTime)

Set the startDateTime property: Time the action was initiated.

Parameters:

startDateTime - the startDateTime value to set.

Returns:

the MicrosoftGraphDeviceActionResult object itself.

Applies to