Class CassandraSchema

java.lang.Object
com.azure.resourcemanager.cosmos.models.CassandraSchema

public final class CassandraSchema extends Object
Cosmos DB Cassandra table schema.
  • Constructor Details

    • CassandraSchema

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

    • columns

      public List<Column> columns()
      Get the columns property: List of Cassandra table columns.
      Returns:
      the columns value.
    • withColumns

      public CassandraSchema withColumns(List<Column> columns)
      Set the columns property: List of Cassandra table columns.
      Parameters:
      columns - the columns value to set.
      Returns:
      the CassandraSchema object itself.
    • partitionKeys

      public List<CassandraPartitionKey> partitionKeys()
      Get the partitionKeys property: List of partition key.
      Returns:
      the partitionKeys value.
    • withPartitionKeys

      public CassandraSchema withPartitionKeys(List<CassandraPartitionKey> partitionKeys)
      Set the partitionKeys property: List of partition key.
      Parameters:
      partitionKeys - the partitionKeys value to set.
      Returns:
      the CassandraSchema object itself.
    • clusterKeys

      public List<ClusterKey> clusterKeys()
      Get the clusterKeys property: List of cluster key.
      Returns:
      the clusterKeys value.
    • withClusterKeys

      public CassandraSchema withClusterKeys(List<ClusterKey> clusterKeys)
      Set the clusterKeys property: List of cluster key.
      Parameters:
      clusterKeys - the clusterKeys value to set.
      Returns:
      the CassandraSchema object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.