Compartilhar via


NameAvailabilityCheckResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.hdinsight.fluent.models.NameAvailabilityCheckResultInner

Implements

public final class NameAvailabilityCheckResultInner
implements JsonSerializable<NameAvailabilityCheckResultInner>

The response spec of checking name availability.

Constructor Summary

Constructor Description
NameAvailabilityCheckResultInner()

Creates an instance of NameAvailabilityCheckResultInner class.

Method Summary

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

Reads an instance of NameAvailabilityCheckResultInner from the JsonReader.

String message()

Get the message property: The related message.

Boolean nameAvailable()

Get the nameAvailable property: This indicates whether the name is available.

String reason()

Get the reason property: The reason of the result.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NameAvailabilityCheckResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: This indicates whether the name is available.

Methods inherited from java.lang.Object

Constructor Details

NameAvailabilityCheckResultInner

public NameAvailabilityCheckResultInner()

Creates an instance of NameAvailabilityCheckResultInner class.

Method Details

fromJson

public static NameAvailabilityCheckResultInner fromJson(JsonReader jsonReader)

Reads an instance of NameAvailabilityCheckResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NameAvailabilityCheckResultInner 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 NameAvailabilityCheckResultInner.

message

public String message()

Get the message property: The related message.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: This indicates whether the name is available.

Returns:

the nameAvailable value.

reason

public String reason()

Get the reason property: The reason of the result.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNameAvailable

public NameAvailabilityCheckResultInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: This indicates whether the name is available.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the NameAvailabilityCheckResultInner object itself.

Applies to