Class OperationStatusError
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusError
-
public final class OperationStatusError extends Object
Error information associated with operation status call.
-
-
Constructor Summary
Constructors Constructor Description OperationStatusError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Get the code property: Error code of the operation failure.String
message()
Get the message property: Error message displayed if the operation failure.void
validate()
Validates the instance.OperationStatusError
withCode(String code)
Set the code property: Error code of the operation failure.OperationStatusError
withMessage(String message)
Set the message property: Error message displayed if the operation failure.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Error code of the operation failure.- Returns:
- the code value.
-
withCode
public OperationStatusError withCode(String code)
Set the code property: Error code of the operation failure.- Parameters:
code
- the code value to set.- Returns:
- the OperationStatusError object itself.
-
message
public String message()
Get the message property: Error message displayed if the operation failure.- Returns:
- the message value.
-
withMessage
public OperationStatusError withMessage(String message)
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.
-
-