ClusterKey Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ClusterKey
- com.
Implements
public final class ClusterKey
implements JsonSerializable<ClusterKey>
Cosmos DB Cassandra table cluster key.
Constructor Summary
Constructor | Description |
---|---|
ClusterKey() |
Creates an instance of Cluster |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cluster |
fromJson(JsonReader jsonReader)
Reads an instance of Cluster |
String |
name()
Get the name property: Name of the Cosmos DB Cassandra table cluster key. |
String |
orderBy()
Get the order |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cluster |
withName(String name)
Set the name property: Name of the Cosmos DB Cassandra table cluster key. |
Cluster |
withOrderBy(String orderBy)
Set the order |
Methods inherited from java.lang.Object
Constructor Details
ClusterKey
public ClusterKey()
Creates an instance of ClusterKey class.
Method Details
fromJson
public static ClusterKey fromJson(JsonReader jsonReader)
Reads an instance of ClusterKey from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the Cosmos DB Cassandra table cluster key.
Returns:
orderBy
public String orderBy()
Get the orderBy property: Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc".
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public ClusterKey withName(String name)
Set the name property: Name of the Cosmos DB Cassandra table cluster key.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java