Class StatusMessage
java.lang.Object
com.azure.resourcemanager.resources.models.StatusMessage
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StatusMessage>
public final class StatusMessage
extends Object
implements com.azure.json.JsonSerializable<StatusMessage>
Operation status message object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementErrorerror()Get the error property: The error reported by the operation.static StatusMessagefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StatusMessage from the JsonReader.status()Get the status property: Status of the deployment operation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withError(com.azure.core.management.exception.ManagementError error) Set the error property: The error reported by the operation.withStatus(String status) Set the status property: Status of the deployment 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
-
StatusMessage
public StatusMessage()Creates an instance of StatusMessage class.
-
-
Method Details
-
status
Get the status property: Status of the deployment operation.- Returns:
- the status value.
-
withStatus
Set the status property: Status of the deployment operation.- Parameters:
status- the status value to set.- Returns:
- the StatusMessage object itself.
-
error
public com.azure.core.management.exception.ManagementError error()Get the error property: The error reported by the operation.- Returns:
- the error value.
-
withError
Set the error property: The error reported by the operation.- Parameters:
error- the error value to set.- Returns:
- the StatusMessage 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<StatusMessage>- Throws:
IOException
-
fromJson
Reads an instance of StatusMessage from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StatusMessage 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 StatusMessage.
-