Class StatusMessage
java.lang.Object
com.azure.resourcemanager.resources.models.StatusMessage
Operation status message object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.management.exception.ManagementErrorerror()Get the error property: Error Responsestatus()Get the status property: Status of the deployment operation.voidvalidate()Validates the instance.withError(com.azure.core.management.exception.ManagementError error) Set the error property: Error ResponsewithStatus(String status) Set the status property: Status of the deployment operation.
-
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: Error ResponseThe error reported by the operation.
- Returns:
- the error value.
-
withError
Set the error property: Error ResponseThe 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.
-