Class StatusMessage
- java.lang.Object
-
- com.azure.resourcemanager.resources.models.StatusMessage
-
public final class StatusMessage extends Object
Operation status message object.
-
-
Constructor Summary
Constructors Constructor Description StatusMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.exception.ManagementErrorerror()Get the error property: Error Response The error reported by the operation.Stringstatus()Get the status property: Status of the deployment operation.voidvalidate()Validates the instance.StatusMessagewithError(com.azure.core.management.exception.ManagementError error)Set the error property: Error Response The error reported by the operation.StatusMessagewithStatus(String status)Set the status property: Status of the deployment operation.
-
-
-
Method Detail
-
status
public String status()
Get the status property: Status of the deployment operation.- Returns:
- the status value.
-
withStatus
public StatusMessage withStatus(String status)
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 Response The error reported by the operation.- Returns:
- the error value.
-
withError
public StatusMessage withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Error Response 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.
-
-