Class AzureAsyncOperationResult
- java.lang.Object
-
- com.microsoft.azure.management.network.AzureAsyncOperationResult
-
public class AzureAsyncOperationResult extends Object
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 Constructor Description AzureAsyncOperationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Errorerror()Get the error value.NetworkOperationStatusstatus()Get the status value.AzureAsyncOperationResultwithError(Error error)Set the error value.AzureAsyncOperationResultwithStatus(NetworkOperationStatus status)Set the status value.
-
-
-
Method Detail
-
status
public NetworkOperationStatus status()
Get the status value.- Returns:
- the status value
-
withStatus
public AzureAsyncOperationResult withStatus(NetworkOperationStatus status)
Set the status value.- Parameters:
status- the status value to set- Returns:
- the AzureAsyncOperationResult object itself.
-
error
public Error error()
Get the error value.- Returns:
- the error value
-
withError
public AzureAsyncOperationResult withError(Error error)
Set the error value.- Parameters:
error- the error value to set- Returns:
- the AzureAsyncOperationResult object itself.
-
-