Class AsyncOperationResultInner

java.lang.Object
com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner

public final class AsyncOperationResultInner extends Object
The status of an async operation.
  • Constructor Details

    • AsyncOperationResultInner

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

    • error

      public com.azure.core.management.exception.ManagementError error()
      Get the error property: The error object.
      Returns:
      the error value.
    • withError

      public AsyncOperationResultInner withError(com.azure.core.management.exception.ManagementError error)
      Set the error property: The error object.
      Parameters:
      error - the error value to set.
      Returns:
      the AsyncOperationResultInner object itself.
    • name

      public String name()
      Get the name property: Operation Id of the async operation.
      Returns:
      the name value.
    • withName

      public AsyncOperationResultInner withName(String name)
      Set the name property: Operation Id of the async operation.
      Parameters:
      name - the name value to set.
      Returns:
      the AsyncOperationResultInner object itself.
    • status

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

      public AsyncOperationResultInner withStatus(AsyncOperationStatus status)
      Set the status property: Operation status of the async operation.
      Parameters:
      status - the status value to set.
      Returns:
      the AsyncOperationResultInner object itself.
    • validate

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