Class ClusterKey

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

public final class ClusterKey extends Object
Cosmos DB Cassandra table cluster key.
  • Constructor Details

    • ClusterKey

      public ClusterKey()
  • Method Details

    • name

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

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

      public String orderBy()
      Get the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".
      Returns:
      the orderBy value.
    • withOrderBy

      public ClusterKey withOrderBy(String orderBy)
      Set the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".
      Parameters:
      orderBy - the orderBy value to set.
      Returns:
      the ClusterKey object itself.
    • validate

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