Class ArmAsyncOperationInner
java.lang.Object
com.azure.resourcemanager.agrifood.fluent.models.ArmAsyncOperationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ArmAsyncOperationInner>
public final class ArmAsyncOperationInner
extends Object
implements com.azure.json.JsonSerializable<ArmAsyncOperationInner>
Arm async operation class.
Ref: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/async-operations.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ArmAsyncOperationInner class. -
Method Summary
Modifier and TypeMethodDescriptionerror()Get the error property: Arm async operation error class.static ArmAsyncOperationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ArmAsyncOperationInner from the JsonReader.status()Get the status property: Status of the async operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withError(ArmAsyncOperationError error) Set the error property: Arm async operation error class.withStatus(String status) Set the status property: Status of the async operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ArmAsyncOperationInner
public ArmAsyncOperationInner()Creates an instance of ArmAsyncOperationInner class.
-
-
Method Details
-
status
Get the status property: Status of the async operation.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the async operation.- Parameters:
status- the status value to set.- Returns:
- the ArmAsyncOperationInner object itself.
-
error
Get the error property: Arm async operation error class. Ref: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.- Returns:
- the error value.
-
withError
Set the error property: Arm async operation error class. Ref: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#azure-asyncoperation-resource-format.- Parameters:
error- the error value to set.- Returns:
- the ArmAsyncOperationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ArmAsyncOperationInner>- Throws:
IOException
-
fromJson
public static ArmAsyncOperationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ArmAsyncOperationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ArmAsyncOperationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ArmAsyncOperationInner.
-