Struct aws_sdk_keyspaces::types::builders::SchemaDefinitionBuilder
source · #[non_exhaustive]pub struct SchemaDefinitionBuilder { /* private fields */ }
Expand description
A builder for SchemaDefinition
.
Implementations§
source§impl SchemaDefinitionBuilder
impl SchemaDefinitionBuilder
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 get_all_columns(&self) -> &Option<Vec<ColumnDefinition>>
pub fn get_all_columns(&self) -> &Option<Vec<ColumnDefinition>>
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 get_partition_keys(&self) -> &Option<Vec<PartitionKey>>
pub fn get_partition_keys(&self) -> &Option<Vec<PartitionKey>>
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 get_clustering_keys(&self) -> &Option<Vec<ClusteringKey>>
pub fn get_clustering_keys(&self) -> &Option<Vec<ClusteringKey>>
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 get_static_columns(&self) -> &Option<Vec<StaticColumn>>
pub fn get_static_columns(&self) -> &Option<Vec<StaticColumn>>
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) -> Result<SchemaDefinition, BuildError>
pub fn build(self) -> Result<SchemaDefinition, BuildError>
Consumes the builder and constructs a SchemaDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SchemaDefinitionBuilder
impl Clone for SchemaDefinitionBuilder
source§fn clone(&self) -> SchemaDefinitionBuilder
fn clone(&self) -> SchemaDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchemaDefinitionBuilder
impl Debug for SchemaDefinitionBuilder
source§impl Default for SchemaDefinitionBuilder
impl Default for SchemaDefinitionBuilder
source§fn default() -> SchemaDefinitionBuilder
fn default() -> SchemaDefinitionBuilder
source§impl PartialEq for SchemaDefinitionBuilder
impl PartialEq for SchemaDefinitionBuilder
source§fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.