Class CustomDomainValidateResult
java.lang.Object
com.azure.resourcemanager.appplatform.models.CustomDomainValidateResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CustomDomainValidateResult>
public final class CustomDomainValidateResult
extends Object
implements com.azure.json.JsonSerializable<CustomDomainValidateResult>
Validation result for custom domain.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CustomDomainValidateResult class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomDomainValidateResultfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomDomainValidateResult from the JsonReader.isValid()Get the isValid property: Indicates if domain name is valid.message()Get the message property: Message of why domain name is invalid.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsValid(Boolean isValid) Set the isValid property: Indicates if domain name is valid.withMessage(String message) Set the message property: Message of why domain name is invalid.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CustomDomainValidateResult
public CustomDomainValidateResult()Creates an instance of CustomDomainValidateResult class.
-
-
Method Details
-
isValid
Get the isValid property: Indicates if domain name is valid.- Returns:
- the isValid value.
-
withIsValid
Set the isValid property: Indicates if domain name is valid.- Parameters:
isValid- the isValid value to set.- Returns:
- the CustomDomainValidateResult object itself.
-
message
Get the message property: Message of why domain name is invalid.- Returns:
- the message value.
-
withMessage
Set the message property: Message of why domain name is invalid.- Parameters:
message- the message value to set.- Returns:
- the CustomDomainValidateResult object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CustomDomainValidateResult>- Throws:
IOException
-
fromJson
public static CustomDomainValidateResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CustomDomainValidateResult from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CustomDomainValidateResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the CustomDomainValidateResult.
-