StatusMessage Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. StatusMessage
- com.
Implements
public final class StatusMessage
implements JsonSerializable<StatusMessage>
Operation status message object.
Constructor Summary
Constructor | Description |
---|---|
StatusMessage() |
Creates an instance of Status |
Method Summary
Modifier and Type | Method and Description |
---|---|
Management |
error()
Get the error property: The error reported by the operation. |
static
Status |
fromJson(JsonReader jsonReader)
Reads an instance of Status |
String |
status()
Get the status property: Status of the deployment operation. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Status |
withError(ManagementError error)
Set the error property: The error reported by the operation. |
Status |
withStatus(String status)
Set the status property: Status of the deployment operation. |
Methods inherited from java.lang.Object
Constructor Details
StatusMessage
public StatusMessage()
Creates an instance of StatusMessage class.
Method Details
error
public ManagementError error()
Get the error property: The error reported by the operation.
Returns:
fromJson
public static StatusMessage fromJson(JsonReader jsonReader)
Reads an instance of StatusMessage from the JsonReader.
Parameters:
Returns:
Throws:
status
public String status()
Get the status property: Status of the deployment operation.
Returns:
toJson
validate
public void validate()
Validates the instance.
withError
public StatusMessage withError(ManagementError error)
Set the error property: The error reported by the operation.
Parameters:
Returns:
withStatus
public StatusMessage withStatus(String status)
Set the status property: Status of the deployment operation.
Parameters:
Returns:
Applies to
Azure SDK for Java