CassandraKeyspaceCreateUpdateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.CassandraKeyspaceCreateUpdateProperties

Implements

public final class CassandraKeyspaceCreateUpdateProperties
implements JsonSerializable<CassandraKeyspaceCreateUpdateProperties>

Properties to create and update Azure Cosmos DB Cassandra keyspace.

Constructor Summary

Constructor Description
CassandraKeyspaceCreateUpdateProperties()

Creates an instance of CassandraKeyspaceCreateUpdateProperties class.

Method Summary

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

Reads an instance of CassandraKeyspaceCreateUpdateProperties from the JsonReader.

CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request.

CassandraKeyspaceResource resource()

Get the resource property: The standard JSON format of a Cassandra keyspace.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraKeyspaceCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request.

CassandraKeyspaceCreateUpdateProperties withResource(CassandraKeyspaceResource resource)

Set the resource property: The standard JSON format of a Cassandra keyspace.

Methods inherited from java.lang.Object

Constructor Details

CassandraKeyspaceCreateUpdateProperties

public CassandraKeyspaceCreateUpdateProperties()

Creates an instance of CassandraKeyspaceCreateUpdateProperties class.

Method Details

fromJson

public static CassandraKeyspaceCreateUpdateProperties fromJson(JsonReader jsonReader)

Reads an instance of CassandraKeyspaceCreateUpdateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CassandraKeyspaceCreateUpdateProperties 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.

options

public CreateUpdateOptions options()

Get the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Returns:

the options value.

resource

public CassandraKeyspaceResource resource()

Get the resource property: The standard JSON format of a Cassandra keyspace.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public CassandraKeyspaceCreateUpdateProperties withOptions(CreateUpdateOptions options)

Set the options property: A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request.

Parameters:

options - the options value to set.

Returns:

the CassandraKeyspaceCreateUpdateProperties object itself.

withResource

public CassandraKeyspaceCreateUpdateProperties withResource(CassandraKeyspaceResource resource)

Set the resource property: The standard JSON format of a Cassandra keyspace.

Parameters:

resource - the resource value to set.

Returns:

the CassandraKeyspaceCreateUpdateProperties object itself.

Applies to

Azure SDK for Java

Latest