CassandraPartitionKey Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CassandraPartitionKey
- com.
Implements
public final class CassandraPartitionKey
implements JsonSerializable<CassandraPartitionKey>
Cosmos DB Cassandra table partition key.
Constructor Summary
Constructor | Description |
---|---|
CassandraPartitionKey() |
Creates an instance of Cassandra |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
String |
name()
Get the name property: Name of the Cosmos DB Cassandra table partition key. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cassandra |
withName(String name)
Set the name property: Name of the Cosmos DB Cassandra table partition key. |
Methods inherited from java.lang.Object
Constructor Details
CassandraPartitionKey
public CassandraPartitionKey()
Creates an instance of CassandraPartitionKey class.
Method Details
fromJson
public static CassandraPartitionKey fromJson(JsonReader jsonReader)
Reads an instance of CassandraPartitionKey from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the Cosmos DB Cassandra table partition key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withName
public CassandraPartitionKey withName(String name)
Set the name property: Name of the Cosmos DB Cassandra table partition key.
Parameters:
Returns:
Applies to
Azure SDK for Java