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 Details

    • getName

      public String getName()
      Get the name property: The name of the action.
      Returns:
      the name value.
    • getActionType

      public DevBoxActionType getActionType()
      Get the actionType property: The action that will be taken.
      Returns:
      the actionType 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.
    • getNextAction

      public DevBoxNextAction getNextAction()
      Get the nextAction property: Details about the next run of this action.
      Returns:
      the nextAction value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DevBoxAction>
      Throws:
      IOException
    • fromJson

      public static DevBoxAction fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.