Struct aws_sdk_keyspaces::model::schema_definition::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SchemaDefinition
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn all_columns(self, input: ColumnDefinition) -> Self
pub fn all_columns(self, input: ColumnDefinition) -> Self
Appends an item to all_columns
.
To override the contents of this collection use set_all_columns
.
The regular columns of the table.
sourcepub fn set_all_columns(self, input: Option<Vec<ColumnDefinition>>) -> Self
pub fn set_all_columns(self, input: Option<Vec<ColumnDefinition>>) -> Self
The regular columns of the table.
sourcepub fn partition_keys(self, input: PartitionKey) -> Self
pub fn partition_keys(self, input: PartitionKey) -> Self
Appends an item to partition_keys
.
To override the contents of this collection use set_partition_keys
.
The columns that are part of the partition key of the table .
sourcepub fn set_partition_keys(self, input: Option<Vec<PartitionKey>>) -> Self
pub fn set_partition_keys(self, input: Option<Vec<PartitionKey>>) -> Self
The columns that are part of the partition key of the table .
sourcepub fn clustering_keys(self, input: ClusteringKey) -> Self
pub fn clustering_keys(self, input: ClusteringKey) -> Self
Appends an item to clustering_keys
.
To override the contents of this collection use set_clustering_keys
.
The columns that are part of the clustering key of the table.
sourcepub fn set_clustering_keys(self, input: Option<Vec<ClusteringKey>>) -> Self
pub fn set_clustering_keys(self, input: Option<Vec<ClusteringKey>>) -> Self
The columns that are part of the clustering key of the table.
sourcepub fn static_columns(self, input: StaticColumn) -> Self
pub fn static_columns(self, input: StaticColumn) -> Self
Appends an item to static_columns
.
To override the contents of this collection use set_static_columns
.
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
sourcepub fn set_static_columns(self, input: Option<Vec<StaticColumn>>) -> Self
pub fn set_static_columns(self, input: Option<Vec<StaticColumn>>) -> Self
The columns that have been defined as STATIC
. Static columns store values that are shared by all rows in the same partition.
sourcepub fn build(self) -> SchemaDefinition
pub fn build(self) -> SchemaDefinition
Consumes the builder and constructs a SchemaDefinition
.