Class ValidateResponseError
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.ValidateResponseError
-
public final class ValidateResponseError extends Object
Error details for when validation fails.
-
-
Constructor Summary
Constructors Constructor Description ValidateResponseError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()Get the code property: Validation error code.Stringmessage()Get the message property: Validation error message.voidvalidate()Validates the instance.ValidateResponseErrorwithCode(String code)Set the code property: Validation error code.ValidateResponseErrorwithMessage(String message)Set the message property: Validation error message.
-
-
-
Method Detail
-
code
public String code()
Get the code property: Validation error code.- Returns:
- the code value.
-
withCode
public ValidateResponseError withCode(String code)
Set the code property: Validation error code.- Parameters:
code- the code value to set.- Returns:
- the ValidateResponseError object itself.
-
message
public String message()
Get the message property: Validation error message.- Returns:
- the message value.
-
withMessage
public ValidateResponseError withMessage(String message)
Set the message property: Validation error message.- Parameters:
message- the message value to set.- Returns:
- the ValidateResponseError object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-