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 Details

    • CassandraClusterPublicStatusDataCentersItem

      public CassandraClusterPublicStatusDataCentersItem()
      Creates an instance of CassandraClusterPublicStatusDataCentersItem class.
  • Method Details

    • name

      public String 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

      public List<String> seedNodes()
      Get the seedNodes property: A list of all seed nodes in the cluster, managed and unmanaged.
      Returns:
      the seedNodes value.
    • withSeedNodes

      public CassandraClusterPublicStatusDataCentersItem withSeedNodes(List<String> 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.
    • nodes

      Get the nodes property: The nodes property.
      Returns:
      the nodes value.
    • withNodes

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.