Class CassandraTableResource
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.CassandraTableResource
-
public class CassandraTableResource extends Object
Cosmos DB Cassandra table id object.
-
-
Constructor Summary
Constructors Constructor Description CassandraTableResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdefaultTtl()Get time to live of the Cosmos DB Cassandra table.Stringid()Get name of the Cosmos DB Cassandra table.CassandraSchemaschema()Get schema of the Cosmos DB Cassandra table.CassandraTableResourcewithDefaultTtl(Integer defaultTtl)Set time to live of the Cosmos DB Cassandra table.CassandraTableResourcewithId(String id)Set name of the Cosmos DB Cassandra table.CassandraTableResourcewithSchema(CassandraSchema schema)Set schema of the Cosmos DB Cassandra table.
-
-
-
Method Detail
-
id
public String id()
Get name of the Cosmos DB Cassandra table.- Returns:
- the id value
-
withId
public CassandraTableResource withId(String id)
Set name of the Cosmos DB Cassandra table.- Parameters:
id- the id value to set- Returns:
- the CassandraTableResource object itself.
-
defaultTtl
public Integer defaultTtl()
Get time to live of the Cosmos DB Cassandra table.- Returns:
- the defaultTtl value
-
withDefaultTtl
public CassandraTableResource withDefaultTtl(Integer defaultTtl)
Set time to live of the Cosmos DB Cassandra table.- Parameters:
defaultTtl- the defaultTtl value to set- Returns:
- the CassandraTableResource object itself.
-
schema
public CassandraSchema schema()
Get schema of the Cosmos DB Cassandra table.- Returns:
- the schema value
-
withSchema
public CassandraTableResource withSchema(CassandraSchema schema)
Set schema of the Cosmos DB Cassandra table.- Parameters:
schema- the schema value to set- Returns:
- the CassandraTableResource object itself.
-
-