Package com.oracle.bmc.nosql.model
Class Schema.Builder
- java.lang.Object
-
- com.oracle.bmc.nosql.model.Schema.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
build()
Schema.Builder
columns(List<Column> columns)
The columns of a table.Schema.Builder
copy(Schema model)
Schema.Builder
identity(Identity identity)
Schema.Builder
primaryKey(List<String> primaryKey)
A list of column names that make up a key.Schema.Builder
shardKey(List<String> shardKey)
A list of column names that make up a key.Schema.Builder
ttl(Integer ttl)
The default Time-to-Live for the table, in days.
-
-
-
Method Detail
-
columns
public Schema.Builder columns(List<Column> columns)
The columns of a table.- Parameters:
columns
- the value to set- Returns:
- this builder
-
primaryKey
public Schema.Builder primaryKey(List<String> primaryKey)
A list of column names that make up a key.- Parameters:
primaryKey
- the value to set- Returns:
- this builder
-
shardKey
public Schema.Builder shardKey(List<String> shardKey)
A list of column names that make up a key.- Parameters:
shardKey
- the value to set- Returns:
- this builder
-
ttl
public Schema.Builder ttl(Integer ttl)
The default Time-to-Live for the table, in days.- Parameters:
ttl
- the value to set- Returns:
- this builder
-
identity
public Schema.Builder identity(Identity identity)
-
build
public Schema build()
-
copy
public Schema.Builder copy(Schema model)
-
-