Share via


NameAvailabilityInner Class

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

Implements

public final class NameAvailabilityInner
implements JsonSerializable<NameAvailabilityInner>

Represents cluster name availability.

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: Error message.

String name()

Get the name property: Name of the cluster.

Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the cluster name is available.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of the cluster.

Methods inherited from java.lang.Object

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: Error message.

Returns:

the message value.

name

public String name()

Get the name property: Name of the cluster.

Returns:

the name value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Indicates whether the cluster name is available.

Returns:

the nameAvailable value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of the cluster.

Returns:

the type value.

Applies to