CassandraPartitionKey Class

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

Implements

public final class CassandraPartitionKey
implements JsonSerializable<CassandraPartitionKey>

Cosmos DB Cassandra table partition key.

Constructor Summary

Constructor Description
CassandraPartitionKey()

Creates an instance of CassandraPartitionKey class.

Method Summary

Modifier and Type Method and Description
static CassandraPartitionKey fromJson(JsonReader jsonReader)

Reads an instance of CassandraPartitionKey from the JsonReader.

String name()

Get the name property: Name of the Cosmos DB Cassandra table partition key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraPartitionKey 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:

jsonReader - The JsonReader being read.

Returns:

An instance of CassandraPartitionKey if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the CassandraPartitionKey.

name

public String name()

Get the name property: Name of the Cosmos DB Cassandra table partition key.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

name - the name value to set.

Returns:

the CassandraPartitionKey object itself.

Applies to