Class OperationResultInner

java.lang.Object
com.azure.resourcemanager.devtestlabs.fluent.models.OperationResultInner

public final class OperationResultInner extends Object
An Operation Result.
  • Constructor Details

    • OperationResultInner

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

    • status

      public String status()
      Get the status property: The operation status.
      Returns:
      the status value.
    • withStatus

      public OperationResultInner withStatus(String status)
      Set the status property: The operation status.
      Parameters:
      status - the status value to set.
      Returns:
      the OperationResultInner object itself.
    • statusCode

      public HttpStatusCode statusCode()
      Get the statusCode property: The status code for the operation.
      Returns:
      the statusCode value.
    • withStatusCode

      public OperationResultInner withStatusCode(HttpStatusCode statusCode)
      Set the statusCode property: The status code for the operation.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the OperationResultInner object itself.
    • error

      public OperationError error()
      Get the error property: Error details for the operation in case of a failure.
      Returns:
      the error value.
    • withError

      public OperationResultInner withError(OperationError error)
      Set the error property: Error details for the operation in case of a failure.
      Parameters:
      error - the error value to set.
      Returns:
      the OperationResultInner object itself.
    • validate

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