CustomDomainValidateResult Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.CustomDomainValidateResult

Implements

public final class CustomDomainValidateResult
implements JsonSerializable<CustomDomainValidateResult>

Validation result for custom domain.

Constructor Summary

Constructor Description
CustomDomainValidateResult()

Creates an instance of CustomDomainValidateResult class.

Method Summary

Modifier and Type Method and Description
static CustomDomainValidateResult fromJson(JsonReader jsonReader)

Reads an instance of CustomDomainValidateResult from the JsonReader.

Boolean isValid()

Get the isValid property: Indicates if domain name is valid.

String message()

Get the message property: Message of why domain name is invalid.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CustomDomainValidateResult withIsValid(Boolean isValid)

Set the isValid property: Indicates if domain name is valid.

CustomDomainValidateResult withMessage(String message)

Set the message property: Message of why domain name is invalid.

Methods inherited from java.lang.Object

Constructor Details

CustomDomainValidateResult

public CustomDomainValidateResult()

Creates an instance of CustomDomainValidateResult class.

Method Details

fromJson

public static CustomDomainValidateResult fromJson(JsonReader jsonReader)

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.

isValid

public Boolean isValid()

Get the isValid property: Indicates if domain name is valid.

Returns:

the isValid value.

message

public String message()

Get the message property: Message of why domain name is invalid.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsValid

public CustomDomainValidateResult withIsValid(Boolean isValid)

Set the isValid property: Indicates if domain name is valid.

Parameters:

isValid - the isValid value to set.

Returns:

the CustomDomainValidateResult object itself.

withMessage

public CustomDomainValidateResult withMessage(String message)

Set the message property: Message of why domain name is invalid.

Parameters:

message - the message value to set.

Returns:

the CustomDomainValidateResult object itself.

Applies to