Package io.stargate.sdk.rest.domain
Class TableDefinition
java.lang.Object
io.stargate.sdk.rest.domain.TableDefinition
- All Implemented Interfaces:
Serializable
Represent a table definition when working with Rest API.
- Author:
- Cedrick LUNVEN (@clunven)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter accessor for attribute 'columnDefinitions'.Getter accessor for attribute 'keyspace'.getName()Getter accessor for attribute 'name'.Getter accessor for attribute 'primaryKey'.Getter accessor for attribute 'tableOptions'.voidsetColumnDefinitions(List<ColumnDefinition> columnDefinitions) Setter accessor for attribute 'columnDefinitions'.voidsetKeyspace(String keyspace) Setter accessor for attribute 'keyspace'.voidSetter accessor for attribute 'name'.voidsetPrimaryKey(TablePrimaryKey primaryKey) Setter accessor for attribute 'primaryKey'.voidsetTableOptions(TableOptions tableOptions) Setter accessor for attribute 'tableOptions'.
-
Constructor Details
-
TableDefinition
public TableDefinition()Default constructor.
-
-
Method Details
-
getName
Getter accessor for attribute 'name'.- Returns:
- current value of 'name'
-
setName
Setter accessor for attribute 'name'.- Parameters:
name- new value for 'name '
-
getKeyspace
Getter accessor for attribute 'keyspace'.- Returns:
- current value of 'keyspace'
-
setKeyspace
Setter accessor for attribute 'keyspace'.- Parameters:
keyspace- new value for 'keyspace '
-
getColumnDefinitions
Getter accessor for attribute 'columnDefinitions'.- Returns:
- current value of 'columnDefinitions'
-
setColumnDefinitions
Setter accessor for attribute 'columnDefinitions'.- Parameters:
columnDefinitions- new value for 'columnDefinitions '
-
getPrimaryKey
Getter accessor for attribute 'primaryKey'.- Returns:
- current value of 'primaryKey'
-
setPrimaryKey
Setter accessor for attribute 'primaryKey'.- Parameters:
primaryKey- new value for 'primaryKey '
-
getTableOptions
Getter accessor for attribute 'tableOptions'.- Returns:
- current value of 'tableOptions'
-
setTableOptions
Setter accessor for attribute 'tableOptions'.- Parameters:
tableOptions- new value for 'tableOptions '
-