AzureAsyncOperationResult Class
- java.
lang. Object - com.
microsoft. azure. management. network. AzureAsyncOperationResult
- com.
public class 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
Constructor | Description | |
---|---|---|
AzureAsyncOperationResult() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
error()
Get details of the error occurred during specified asynchronous operation. |
Network |
status()
Get status of the Azure async operation. |
Azure |
withError(Error error)
Set details of the error occurred during specified asynchronous operation. |
Azure |
withStatus(NetworkOperationStatus status)
Set status of the Azure async operation. |
Methods inherited from java.lang.Object
Constructor Details
AzureAsyncOperationResult
public AzureAsyncOperationResult()
Method Details
error
public Error error()
Get details of the error occurred during specified asynchronous operation.
Returns:
status
public NetworkOperationStatus status()
Get status of the Azure async operation. Possible values include: 'InProgress', 'Succeeded', 'Failed'.
Returns:
withError
public AzureAsyncOperationResult withError(Error error)
Set details of the error occurred during specified asynchronous operation.
Parameters:
Returns:
withStatus
public AzureAsyncOperationResult withStatus(NetworkOperationStatus status)
Set status of the Azure async operation. Possible values include: 'InProgress', 'Succeeded', 'Failed'.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for