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 Summary
Constructors Constructor Description OperationWorkerResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>
headers()
Get the headers property: HTTP headers associated with this operation.HttpStatusCode
statusCode()
Get the statusCode property: HTTP Status Code of the operation.void
validate()
Validates the instance.OperationWorkerResponse
withHeaders(Map<String,List<String>> headers)
Set the headers property: HTTP headers associated with this operation.OperationWorkerResponse
withStatusCode(HttpStatusCode statusCode)
Set the statusCode property: HTTP Status Code of the operation.
-
-
-
Method Detail
-
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.
-
-