Class DeploymentOperationProperties

java.lang.Object
com.azure.resourcemanager.resources.models.DeploymentOperationProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentOperationProperties>

public final class DeploymentOperationProperties extends Object implements com.azure.json.JsonSerializable<DeploymentOperationProperties>
Deployment operation properties.
  • Constructor Details

    • DeploymentOperationProperties

      public DeploymentOperationProperties()
      Creates an instance of DeploymentOperationProperties class.
  • Method Details

    • provisioningOperation

      public ProvisioningOperation provisioningOperation()
      Get the provisioningOperation property: The name of the current provisioning operation.
      Returns:
      the provisioningOperation value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The state of the provisioning.
      Returns:
      the provisioningState value.
    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: The date and time of the operation.
      Returns:
      the timestamp value.
    • duration

      public String duration()
      Get the duration property: The duration of the operation.
      Returns:
      the duration value.
    • serviceRequestId

      public String serviceRequestId()
      Get the serviceRequestId property: Deployment operation service request id.
      Returns:
      the serviceRequestId value.
    • statusCode

      public String statusCode()
      Get the statusCode property: Operation status code from the resource provider. This property may not be set if a response has not yet been received.
      Returns:
      the statusCode value.
    • statusMessage

      public StatusMessage statusMessage()
      Get the statusMessage property: Operation status message from the resource provider. This property is optional. It will only be provided if an error was received from the resource provider.
      Returns:
      the statusMessage value.
    • targetResource

      public TargetResource targetResource()
      Get the targetResource property: The target resource.
      Returns:
      the targetResource value.
    • request

      public HttpMessage request()
      Get the request property: The HTTP request message.
      Returns:
      the request value.
    • response

      public HttpMessage response()
      Get the response property: The HTTP response message.
      Returns:
      the response value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

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