Class ClusterKey
java.lang.Object
com.azure.resourcemanager.cosmos.models.ClusterKey
Cosmos DB Cassandra table cluster key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionname()Get the name property: Name of the Cosmos DB Cassandra table cluster key.orderBy()Get the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".voidvalidate()Validates the instance.Set the name property: Name of the Cosmos DB Cassandra table cluster key.withOrderBy(String orderBy) Set the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".
-
Constructor Details
-
ClusterKey
public ClusterKey()Creates an instance of ClusterKey class.
-
-
Method Details
-
name
Get the name property: Name of the Cosmos DB Cassandra table cluster key.- Returns:
- the name value.
-
withName
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
Get the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".- Returns:
- the orderBy value.
-
withOrderBy
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.
-