NameAvailabilityInner Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.fluent.models.NameAvailabilityInner

Implements

public final class NameAvailabilityInner
implements JsonSerializable<NameAvailabilityInner>

Result of the request to check name availability. It contains a flag and possible reason of failure.

Constructor Summary

Constructor Description
NameAvailabilityInner()

Creates an instance of NameAvailabilityInner class.

Method Summary

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

Reads an instance of NameAvailabilityInner from the JsonReader.

String message()

Get the message property: The message of the operation.

Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the name is available or not.

String reason()

Get the reason property: The reason of the availability.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NameAvailabilityInner withMessage(String message)

Set the message property: The message of the operation.

NameAvailabilityInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates whether the name is available or not.

NameAvailabilityInner withReason(String reason)

Set the reason property: The reason of the availability.

Methods inherited from java.lang.Object

Constructor Details

NameAvailabilityInner

public NameAvailabilityInner()

Creates an instance of NameAvailabilityInner class.

Method Details

fromJson

public static NameAvailabilityInner fromJson(JsonReader jsonReader)

Reads an instance of NameAvailabilityInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The message of the operation.

Returns:

the message value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the name is available or not.

Returns:

the nameAvailable value.

reason

public String reason()

Get the reason property: The reason of the availability. Required if name is not available.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMessage

public NameAvailabilityInner withMessage(String message)

Set the message property: The message of the operation.

Parameters:

message - the message value to set.

Returns:

the NameAvailabilityInner object itself.

withNameAvailable

public NameAvailabilityInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Indicates whether the name is available or not.

Parameters:

nameAvailable - the nameAvailable value to set.

Returns:

the NameAvailabilityInner object itself.

withReason

public NameAvailabilityInner withReason(String reason)

Set the reason property: The reason of the availability. Required if name is not available.

Parameters:

reason - the reason value to set.

Returns:

the NameAvailabilityInner object itself.

Applies to