OperationError Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. OperationError
- com.
public final class OperationError
Error details for the operation in case of a failure.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationError() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: The error code of the operation error. |
| String |
message()
Get the message property: The error message of the operation error. |
| void |
validate()
Validates the instance. |
|
Operation |
withCode(String code)
Set the code property: The error code of the operation error. |
|
Operation |
withMessage(String message)
Set the message property: The error message of the operation error. |
Methods inherited from java.lang.Object
Constructor Details
OperationError
public OperationError()
Creates an instance of OperationError class.
Method Details
code
public String code()
Get the code property: The error code of the operation error.
Returns:
message
public String message()
Get the message property: The error message of the operation error.
Returns:
validate
public void validate()
Validates the instance.
withCode
public OperationError withCode(String code)
Set the code property: The error code of the operation error.
Parameters:
Returns:
withMessage
public OperationError withMessage(String message)
Set the message property: The error message of the operation error.
Parameters:
Returns: