CassandraKeyspaceResource Class

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

Implements

public class CassandraKeyspaceResource
implements JsonSerializable<CassandraKeyspaceResource>

Cosmos DB Cassandra keyspace resource object.

Constructor Summary

Constructor Description
CassandraKeyspaceResource()

Creates an instance of CassandraKeyspaceResource class.

Method Summary

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

Reads an instance of CassandraKeyspaceResource from the JsonReader.

String id()

Get the id property: Name of the Cosmos DB Cassandra keyspace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraKeyspaceResource withId(String id)

Set the id property: Name of the Cosmos DB Cassandra keyspace.

Methods inherited from java.lang.Object

Constructor Details

CassandraKeyspaceResource

public CassandraKeyspaceResource()

Creates an instance of CassandraKeyspaceResource class.

Method Details

fromJson

public static CassandraKeyspaceResource fromJson(JsonReader jsonReader)

Reads an instance of CassandraKeyspaceResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Name of the Cosmos DB Cassandra keyspace.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public CassandraKeyspaceResource withId(String id)

Set the id property: Name of the Cosmos DB Cassandra keyspace.

Parameters:

id - the id value to set.

Returns:

the CassandraKeyspaceResource object itself.

Applies to