Class DevBoxAction
java.lang.Object
com.azure.developer.devcenter.models.DevBoxAction
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevBoxAction>
public final class DevBoxAction
extends Object
implements com.azure.json.JsonSerializable<DevBoxAction>
An action which will take place on a Dev Box.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DevBoxAction
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DevBoxAction from the JsonReader.Get the actionType property: The action that will be taken.getName()
Get the name property: The name of the action.Get the nextAction property: Details about the next run of this action.Get the sourceId property: The id of the resource which triggered this action.Get the suspendedUntil property: The earliest time that the action could occur (UTC), in RFC3339 format.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getName
Get the name property: The name of the action.- Returns:
- the name value.
-
getActionType
Get the actionType property: The action that will be taken.- Returns:
- the actionType value.
-
getSourceId
Get the sourceId property: The id of the resource which triggered this action.- Returns:
- the sourceId value.
-
getSuspendedUntil
Get the suspendedUntil property: The earliest time that the action could occur (UTC), in RFC3339 format.- Returns:
- the suspendedUntil value.
-
getNextAction
Get the nextAction property: Details about the next run of this action.- Returns:
- the nextAction value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DevBoxAction>
- Throws:
IOException
-
fromJson
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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the DevBoxAction.
-