Class OperationWorkerResponse

java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse
Direct Known Subclasses:
OperationResultInfoBaseResourceInner

public class OperationWorkerResponse extends Object
This is the base class for operation result responses.
  • Constructor Details

    • OperationWorkerResponse

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

    • statusCode

      public HttpStatusCode statusCode()
      Get the statusCode property: HTTP Status Code of the operation.
      Returns:
      the statusCode value.
    • withStatusCode

      public OperationWorkerResponse withStatusCode(HttpStatusCode statusCode)
      Set the statusCode property: HTTP Status Code of the operation.
      Parameters:
      statusCode - the statusCode value to set.
      Returns:
      the OperationWorkerResponse object itself.
    • headers

      public Map<String,List<String>> headers()
      Get the headers property: HTTP headers associated with this operation.
      Returns:
      the headers value.
    • withHeaders

      public OperationWorkerResponse withHeaders(Map<String,List<String>> headers)
      Set the headers property: HTTP headers associated with this operation.
      Parameters:
      headers - the headers value to set.
      Returns:
      the OperationWorkerResponse object itself.
    • validate

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