Class CassandraPartitionKey

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

public final class CassandraPartitionKey extends Object
Cosmos DB Cassandra table partition key.
  • Constructor Details

    • CassandraPartitionKey

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

    • name

      public String name()
      Get the name property: Name of the Cosmos DB Cassandra table partition key.
      Returns:
      the name value.
    • withName

      public CassandraPartitionKey withName(String name)
      Set the name property: Name of the Cosmos DB Cassandra table partition key.
      Parameters:
      name - the name value to set.
      Returns:
      the CassandraPartitionKey object itself.
    • validate

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