Class AzureAsyncOperationResult
java.lang.Object
com.microsoft.azure.management.network.AzureAsyncOperationResult
The response body contains the status of the specified asynchronous
operation, indicating whether it has succeeded, is in progress, or has
failed. Note that this status is distinct from the HTTP status code returned
for the Get Operation Status operation itself. If the asynchronous operation
succeeded, the response body includes the HTTP status code for the
successful request. If the asynchronous operation failed, the response body
includes the HTTP status code for the failed request and error information
regarding the failure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get details of the error occurred during specified asynchronous operation.status()
Get status of the Azure async operation.Set details of the error occurred during specified asynchronous operation.withStatus
(NetworkOperationStatus status) Set status of the Azure async operation.
-
Constructor Details
-
AzureAsyncOperationResult
public AzureAsyncOperationResult()
-
-
Method Details
-
status
Get status of the Azure async operation. Possible values include: 'InProgress', 'Succeeded', 'Failed'.- Returns:
- the status value
-
withStatus
Set status of the Azure async operation. Possible values include: 'InProgress', 'Succeeded', 'Failed'.- Parameters:
status
- the status value to set- Returns:
- the AzureAsyncOperationResult object itself.
-
error
Get details of the error occurred during specified asynchronous operation.- Returns:
- the error value
-
withError
Set details of the error occurred during specified asynchronous operation.- Parameters:
error
- the error value to set- Returns:
- the AzureAsyncOperationResult object itself.
-