Class OperationWorkerResponse
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse
- Direct Known Subclasses:
OperationResultInfoBaseResourceInner
This is the base class for operation result responses.
-
Constructor Summary
ConstructorDescriptionCreates an instance of OperationWorkerResponse class. -
Method Summary
Modifier and TypeMethodDescriptionheaders()
Get the headers property: HTTP headers associated with this operation.Get the statusCode property: HTTP Status Code of the operation.void
validate()
Validates the instance.withHeaders
(Map<String, List<String>> headers) Set the headers property: HTTP headers associated with this operation.withStatusCode
(HttpStatusCode statusCode) Set the statusCode property: HTTP Status Code of the operation.
-
Constructor Details
-
OperationWorkerResponse
public OperationWorkerResponse()Creates an instance of OperationWorkerResponse class.
-
-
Method Details
-
statusCode
Get the statusCode property: HTTP Status Code of the operation.- Returns:
- the statusCode value.
-
withStatusCode
Set the statusCode property: HTTP Status Code of the operation.- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the OperationWorkerResponse object itself.
-
headers
Get the headers property: HTTP headers associated with this operation.- Returns:
- the headers value.
-
withHeaders
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.
-