Class CassandraClusterPublicStatusDataCentersItem
java.lang.Object
com.azure.resourcemanager.cosmos.models.CassandraClusterPublicStatusDataCentersItem
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItem>
public final class CassandraClusterPublicStatusDataCentersItem
extends Object
implements com.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItem>
The CassandraClusterPublicStatusDataCentersItem model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CassandraClusterPublicStatusDataCentersItem class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CassandraClusterPublicStatusDataCentersItem from the JsonReader.name()
Get the name property: The name of this Datacenter.nodes()
Get the nodes property: The nodes property.Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the name property: The name of this Datacenter.Set the nodes property: The nodes property.withSeedNodes
(List<String> seedNodes) Set the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CassandraClusterPublicStatusDataCentersItem
public CassandraClusterPublicStatusDataCentersItem()Creates an instance of CassandraClusterPublicStatusDataCentersItem class.
-
-
Method Details
-
name
Get the name property: The name of this Datacenter.- Returns:
- the name value.
-
withName
Set the name property: The name of this Datacenter.- Parameters:
name
- the name value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItem object itself.
-
seedNodes
Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.- Returns:
- the seedNodes value.
-
withSeedNodes
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.
-
nodes
Get the nodes property: The nodes property.- Returns:
- the nodes value.
-
withNodes
public CassandraClusterPublicStatusDataCentersItem withNodes(List<CassandraClusterPublicStatusDataCentersItemNode> nodes) Set the nodes property: The nodes property.- Parameters:
nodes
- the nodes value to set.- Returns:
- the CassandraClusterPublicStatusDataCentersItem object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CassandraClusterPublicStatusDataCentersItem>
- Throws:
IOException
-
fromJson
public static CassandraClusterPublicStatusDataCentersItem fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-