Class DevCenterOperationDetails

java.lang.Object
com.azure.developer.devcenter.models.DevCenterOperationDetails
All Implemented Interfaces:
com.azure.json.JsonSerializable<DevCenterOperationDetails>

public final class DevCenterOperationDetails extends Object implements com.azure.json.JsonSerializable<DevCenterOperationDetails>
The current status of an async operation.
  • Method Details

    • getId

      public String getId()
      Get the id property: Fully qualified ID for the operation status.
      Returns:
      the id value.
    • getName

      public String getName()
      Get the name property: The operation id name.
      Returns:
      the name value.
    • getStatus

      public DevCenterOperationStatus getStatus()
      Get the status property: Provisioning state of the resource.
      Returns:
      the status value.
    • getResourceId

      public String getResourceId()
      Get the resourceId property: The id of the resource.
      Returns:
      the resourceId value.
    • getStartTime

      public OffsetDateTime getStartTime()
      Get the startTime property: The start time of the operation, in RFC3339 format.
      Returns:
      the startTime value.
    • getEndTime

      public OffsetDateTime getEndTime()
      Get the endTime property: The end time of the operation, in RFC3339 format.
      Returns:
      the endTime value.
    • getPercentComplete

      public Double getPercentComplete()
      Get the percentComplete property: Percent of the operation that is complete.
      Returns:
      the percentComplete value.
    • getProperties

      public Object getProperties()
      Get the properties property: Custom operation properties, populated only for a successful operation.
      Returns:
      the properties value.
    • getError

      public com.azure.core.models.ResponseError getError()
      Get the error property: Operation Error message.
      Returns:
      the error value.
    • toJson

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

      public static DevCenterOperationDetails fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of DevCenterOperationDetails from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of DevCenterOperationDetails 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 DevCenterOperationDetails.