ValidateResponseError Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ValidateResponseError
- com.
Implements
public final class ValidateResponseError
implements JsonSerializable<ValidateResponseError>
Error details for when validation fails.
Constructor Summary
Constructor | Description |
---|---|
ValidateResponseError() |
Creates an instance of Validate |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: Validation error code. |
static
Validate |
fromJson(JsonReader jsonReader)
Reads an instance of Validate |
String |
message()
Get the message property: Validation error message. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Validate |
withCode(String code)
Set the code property: Validation error code. |
Validate |
withMessage(String message)
Set the message property: Validation error message. |
Methods inherited from java.lang.Object
Constructor Details
ValidateResponseError
public ValidateResponseError()
Creates an instance of ValidateResponseError class.
Method Details
code
public String code()
Get the code property: Validation error code.
Returns:
fromJson
public static ValidateResponseError fromJson(JsonReader jsonReader)
Reads an instance of ValidateResponseError from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Validation error message.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public ValidateResponseError withCode(String code)
Set the code property: Validation error code.
Parameters:
Returns:
withMessage
public ValidateResponseError withMessage(String message)
Set the message property: Validation error message.
Parameters:
Returns:
Applies to
Azure SDK for Java