Class OperationResultInfoBaseResourceInner
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse
-
- com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationResultInfoBaseResourceInner
-
public final class OperationResultInfoBaseResourceInner extends OperationWorkerResponse
Base class for operation result info.
-
-
Constructor Summary
Constructors Constructor Description OperationResultInfoBaseResourceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationResultInfoBase
operation()
Get the operation property: OperationResultInfoBaseResource operation.void
validate()
Validates the instance.OperationResultInfoBaseResourceInner
withHeaders(Map<String,List<String>> headers)
Set the headers property: HTTP headers associated with this operation.OperationResultInfoBaseResourceInner
withOperation(OperationResultInfoBase operation)
Set the operation property: OperationResultInfoBaseResource operation.OperationResultInfoBaseResourceInner
withStatusCode(HttpStatusCode statusCode)
Set the statusCode property: HTTP Status Code of the operation.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse
headers, statusCode
-
-
-
-
Method Detail
-
operation
public OperationResultInfoBase operation()
Get the operation property: OperationResultInfoBaseResource operation.- Returns:
- the operation value.
-
withOperation
public OperationResultInfoBaseResourceInner withOperation(OperationResultInfoBase operation)
Set the operation property: OperationResultInfoBaseResource operation.- Parameters:
operation
- the operation value to set.- Returns:
- the OperationResultInfoBaseResourceInner object itself.
-
withStatusCode
public OperationResultInfoBaseResourceInner withStatusCode(HttpStatusCode statusCode)
Set the statusCode property: HTTP Status Code of the operation.- Overrides:
withStatusCode
in classOperationWorkerResponse
- Parameters:
statusCode
- the statusCode value to set.- Returns:
- the OperationWorkerResponse object itself.
-
withHeaders
public OperationResultInfoBaseResourceInner withHeaders(Map<String,List<String>> headers)
Set the headers property: HTTP headers associated with this operation.- Overrides:
withHeaders
in classOperationWorkerResponse
- Parameters:
headers
- the headers value to set.- Returns:
- the OperationWorkerResponse object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classOperationWorkerResponse
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-