NameAvailabilityInfoInner Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.fluent.models.NameAvailabilityInfoInner

Implements

public final class NameAvailabilityInfoInner
implements JsonSerializable<NameAvailabilityInfoInner>

Description of name availability.

Method Summary

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

Reads an instance of NameAvailabilityInfoInner from the JsonReader.

String message()

Get the message property: message containing a detailed reason name is unavailable.

Boolean nameAvailable()

Get the nameAvailable property: specifies if a name is available or not.

NameUnavailabilityReason reason()

Get the reason property: specifies the reason a name is unavailable.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static NameAvailabilityInfoInner fromJson(JsonReader jsonReader)

Reads an instance of NameAvailabilityInfoInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: message containing a detailed reason name is unavailable.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: specifies if a name is available or not.

Returns:

the nameAvailable value.

reason

public NameUnavailabilityReason reason()

Get the reason property: specifies the reason a name is unavailable.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to