Class ErrorError
- java.lang.Object
-
- com.azure.resourcemanager.authorization.models.ErrorError
-
public final class ErrorError extends Object
The ErrorError model.
-
-
Constructor Summary
Constructors Constructor Description ErrorError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
code()
Get the code property: Brief error code.String
message()
Get the message property: Longer message explaining the details of the error.void
validate()
Validates the instance.ErrorError
withCode(String code)
Set the code property: Brief error code.ErrorError
withMessage(String message)
Set the message property: Longer message explaining the details of the error.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Brief error code.- Returns:
- the code value.
-
withCode
public ErrorError withCode(String code)
Set the code property: Brief error code.- Parameters:
code
- the code value to set.- Returns:
- the ErrorError object itself.
-
message
public String message()
Get the message property: Longer message explaining the details of the error.- Returns:
- the message value.
-
withMessage
public ErrorError withMessage(String message)
Set the message property: Longer message explaining the details of the error.- Parameters:
message
- the message value to set.- Returns:
- the ErrorError object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-