Partilhar via


CassandraClusterPublicStatusDataCentersItem Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.CassandraClusterPublicStatusDataCentersItem

Implements

public final class CassandraClusterPublicStatusDataCentersItem
implements JsonSerializable<CassandraClusterPublicStatusDataCentersItem>

The CassandraClusterPublicStatusDataCentersItem model.

Constructor Summary

Constructor Description
CassandraClusterPublicStatusDataCentersItem()

Creates an instance of CassandraClusterPublicStatusDataCentersItem class.

Method Summary

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

Reads an instance of CassandraClusterPublicStatusDataCentersItem from the JsonReader.

String name()

Get the name property: The name of this Datacenter.

List<CassandraClusterPublicStatusDataCentersItemNode> nodes()

Get the nodes property: The nodes property.

List<String> seedNodes()

Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraClusterPublicStatusDataCentersItem withName(String name)

Set the name property: The name of this Datacenter.

CassandraClusterPublicStatusDataCentersItem withNodes(List<CassandraClusterPublicStatusDataCentersItemNode> nodes)

Set the nodes property: The nodes property.

CassandraClusterPublicStatusDataCentersItem withSeedNodes(List<String> seedNodes)

Set the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.

Methods inherited from java.lang.Object

Constructor Details

CassandraClusterPublicStatusDataCentersItem

public CassandraClusterPublicStatusDataCentersItem()

Creates an instance of CassandraClusterPublicStatusDataCentersItem class.

Method Details

fromJson

public static CassandraClusterPublicStatusDataCentersItem fromJson(JsonReader jsonReader)

Reads an instance of CassandraClusterPublicStatusDataCentersItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: The name of this Datacenter.

Returns:

the name value.

nodes

public List nodes()

Get the nodes property: The nodes property.

Returns:

the nodes value.

seedNodes

public List seedNodes()

Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.

Returns:

the seedNodes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public CassandraClusterPublicStatusDataCentersItem withName(String name)

Set the name property: The name of this Datacenter.

Parameters:

name - the name value to set.

Returns:

the CassandraClusterPublicStatusDataCentersItem object itself.

withNodes

public CassandraClusterPublicStatusDataCentersItem withNodes(List nodes)

Set the nodes property: The nodes property.

Parameters:

nodes - the nodes value to set.

Returns:

the CassandraClusterPublicStatusDataCentersItem object itself.

withSeedNodes

public CassandraClusterPublicStatusDataCentersItem withSeedNodes(List seedNodes)

Set the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.

Parameters:

seedNodes - the seedNodes value to set.

Returns:

the CassandraClusterPublicStatusDataCentersItem object itself.

Applies to