Class OperationStatusError
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusError
Error information associated with operation status call.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Error code of the operation failure.message()
Get the message property: Error message displayed if the operation failure.void
validate()
Validates the instance.Set the code property: Error code of the operation failure.withMessage
(String message) Set the message property: Error message displayed if the operation failure.
-
Constructor Details
-
OperationStatusError
public OperationStatusError()Creates an instance of OperationStatusError class.
-
-
Method Details
-
code
Get the code property: Error code of the operation failure.- Returns:
- the code value.
-
withCode
Set the code property: Error code of the operation failure.- Parameters:
code
- the code value to set.- Returns:
- the OperationStatusError object itself.
-
message
Get the message property: Error message displayed if the operation failure.- Returns:
- the message value.
-
withMessage
Set the message property: Error message displayed if the operation failure.- Parameters:
message
- the message value to set.- Returns:
- the OperationStatusError object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-