DevBoxAction Class

  • java.lang.Object
    • com.azure.developer.devcenter.models.DevBoxAction

Implements

public final class DevBoxAction
implements JsonSerializable<DevBoxAction>

An action which will take place on a Dev Box.

Method Summary

Modifier and Type Method and Description
static DevBoxAction fromJson(JsonReader jsonReader)

Reads an instance of DevBoxAction from the JsonReader.

DevBoxActionType getActionType()

Get the actionType property: The action that will be taken.

String getName()

Get the name property: The name of the action.

DevBoxNextAction getNextAction()

Get the nextAction property: Details about the next run of this action.

String getSourceId()

Get the sourceId property: The id of the resource which triggered this action.

OffsetDateTime getSuspendedUntil()

Get the suspendedUntil property: The earliest time that the action could occur (UTC), in RFC3339 format.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DevBoxAction fromJson(JsonReader jsonReader)

Reads an instance of DevBoxAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getActionType

public DevBoxActionType getActionType()

Get the actionType property: The action that will be taken.

Returns:

the actionType value.

getName

public String getName()

Get the name property: The name of the action.

Returns:

the name value.

getNextAction

public DevBoxNextAction getNextAction()

Get the nextAction property: Details about the next run of this action.

Returns:

the nextAction value.

getSourceId

public String getSourceId()

Get the sourceId property: The id of the resource which triggered this action.

Returns:

the sourceId value.

getSuspendedUntil

public OffsetDateTime getSuspendedUntil()

Get the suspendedUntil property: The earliest time that the action could occur (UTC), in RFC3339 format.

Returns:

the suspendedUntil value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to