Class ArmAsyncOperationInner

java.lang.Object
com.azure.resourcemanager.agrifood.fluent.models.ArmAsyncOperationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ArmAsyncOperationInner>

public final class ArmAsyncOperationInner extends Object implements com.azure.json.JsonSerializable<ArmAsyncOperationInner>
Arm async operation class. Ref: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations.
  • Constructor Details

    • ArmAsyncOperationInner

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

    • status

      public String status()
      Get the status property: Status of the async operation.
      Returns:
      the status value.
    • withStatus

      public ArmAsyncOperationInner withStatus(String status)
      Set the status property: Status of the async operation.
      Parameters:
      status - the status value to set.
      Returns:
      the ArmAsyncOperationInner object itself.
    • error

      public ArmAsyncOperationError error()
      Get the error property: Arm async operation error class. Ref: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.
      Returns:
      the error value.
    • withError

      Set the error property: Arm async operation error class. Ref: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.
      Parameters:
      error - the error value to set.
      Returns:
      the ArmAsyncOperationInner object itself.
    • 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<ArmAsyncOperationInner>
      Throws:
      IOException
    • fromJson

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