CassandraTableResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. CassandraTableResource
- com.
Implements
public class CassandraTableResource
implements JsonSerializable<CassandraTableResource>
Cosmos DB Cassandra table resource object.
Constructor Summary
Constructor | Description |
---|---|
CassandraTableResource() |
Creates an instance of Cassandra |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
analyticalStorageTtl()
Get the analytical |
Integer |
defaultTtl()
Get the default |
static
Cassandra |
fromJson(JsonReader jsonReader)
Reads an instance of Cassandra |
String |
id()
Get the id property: Name of the Cosmos DB Cassandra table. |
Cassandra |
schema()
Get the schema property: Schema of the Cosmos DB Cassandra table. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cassandra |
withAnalyticalStorageTtl(Integer analyticalStorageTtl)
Set the analytical |
Cassandra |
withDefaultTtl(Integer defaultTtl)
Set the default |
Cassandra |
withId(String id)
Set the id property: Name of the Cosmos DB Cassandra table. |
Cassandra |
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:
defaultTtl
public Integer defaultTtl()
Get the defaultTtl property: Time to live of the Cosmos DB Cassandra table.
Returns:
fromJson
public static CassandraTableResource fromJson(JsonReader jsonReader)
Reads an instance of CassandraTableResource from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Name of the Cosmos DB Cassandra table.
Returns:
schema
public CassandraSchema schema()
Get the schema property: Schema of the Cosmos DB Cassandra table.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAnalyticalStorageTtl
public CassandraTableResource withAnalyticalStorageTtl(Integer analyticalStorageTtl)
Set the analyticalStorageTtl property: Analytical TTL.
Parameters:
Returns:
withDefaultTtl
public CassandraTableResource withDefaultTtl(Integer defaultTtl)
Set the defaultTtl property: Time to live of the Cosmos DB Cassandra table.
Parameters:
Returns:
withId
public CassandraTableResource withId(String id)
Set the id property: Name of the Cosmos DB Cassandra table.
Parameters:
Returns:
withSchema
public CassandraTableResource withSchema(CassandraSchema schema)
Set the schema property: Schema of the Cosmos DB Cassandra table.
Parameters:
Returns:
Applies to
Azure SDK for Java