CassandraTableResource Class

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

Implements

public class CassandraTableResource
implements JsonSerializable<CassandraTableResource>

Cosmos DB Cassandra table resource object.

Constructor Summary

Constructor Description
CassandraTableResource()

Creates an instance of CassandraTableResource class.

Method Summary

Modifier and Type Method and Description
Integer analyticalStorageTtl()

Get the analyticalStorageTtl property: Analytical TTL.

Integer defaultTtl()

Get the defaultTtl property: Time to live of the Cosmos DB Cassandra table.

static CassandraTableResource fromJson(JsonReader jsonReader)

Reads an instance of CassandraTableResource from the JsonReader.

String id()

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

CassandraSchema schema()

Get the schema property: Schema of the Cosmos DB Cassandra table.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CassandraTableResource withAnalyticalStorageTtl(Integer analyticalStorageTtl)

Set the analyticalStorageTtl property: Analytical TTL.

CassandraTableResource withDefaultTtl(Integer defaultTtl)

Set the defaultTtl property: Time to live of the Cosmos DB Cassandra table.

CassandraTableResource withId(String id)

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

CassandraTableResource withSchema(CassandraSchema schema)

Set the schema property: Schema of the Cosmos DB Cassandra table.

Methods inherited from java.lang.Object

Constructor Details

CassandraTableResource

public CassandraTableResource()

Creates an instance of CassandraTableResource class.

Method Details

analyticalStorageTtl

public Integer analyticalStorageTtl()

Get the analyticalStorageTtl property: Analytical TTL.

Returns:

the analyticalStorageTtl value.

defaultTtl

public Integer defaultTtl()

Get the defaultTtl property: Time to live of the Cosmos DB Cassandra table.

Returns:

the defaultTtl value.

fromJson

public static CassandraTableResource fromJson(JsonReader jsonReader)

Reads an instance of CassandraTableResource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the id value.

schema

public CassandraSchema schema()

Get the schema property: Schema of the Cosmos DB Cassandra table.

Returns:

the schema value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAnalyticalStorageTtl

public CassandraTableResource withAnalyticalStorageTtl(Integer analyticalStorageTtl)

Set the analyticalStorageTtl property: Analytical TTL.

Parameters:

analyticalStorageTtl - the analyticalStorageTtl value to set.

Returns:

the CassandraTableResource object itself.

withDefaultTtl

public CassandraTableResource withDefaultTtl(Integer defaultTtl)

Set the defaultTtl property: Time to live of the Cosmos DB Cassandra table.

Parameters:

defaultTtl - the defaultTtl value to set.

Returns:

the CassandraTableResource object itself.

withId

public CassandraTableResource withId(String id)

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

Parameters:

id - the id value to set.

Returns:

the CassandraTableResource object itself.

withSchema

public CassandraTableResource withSchema(CassandraSchema schema)

Set the schema property: Schema of the Cosmos DB Cassandra table.

Parameters:

schema - the schema value to set.

Returns:

the CassandraTableResource object itself.

Applies to