com.microsoft.azure.management.network.AzureAsyncOperationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-network Show documentation
Show all versions of azure-mgmt-network Show documentation
This package contains Microsoft Azure Network Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 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.
*/
public class AzureAsyncOperationResult {
/**
* Status of the Azure async operation. Possible values are: 'InProgress',
* 'Succeeded', and 'Failed'. Possible values include: 'InProgress',
* 'Succeeded', 'Failed'.
*/
@JsonProperty(value = "status")
private NetworkOperationStatus status;
/**
* The error property.
*/
@JsonProperty(value = "error")
private Error error;
/**
* Get the status value.
*
* @return the status value
*/
public NetworkOperationStatus status() {
return this.status;
}
/**
* Set the status value.
*
* @param status the status value to set
* @return the AzureAsyncOperationResult object itself.
*/
public AzureAsyncOperationResult withStatus(NetworkOperationStatus status) {
this.status = status;
return this;
}
/**
* Get the error value.
*
* @return the error value
*/
public Error error() {
return this.error;
}
/**
* Set the error value.
*
* @param error the error value to set
* @return the AzureAsyncOperationResult object itself.
*/
public AzureAsyncOperationResult withError(Error error) {
this.error = error;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy