#[non_exhaustive]pub struct CreateGlobalSecondaryIndexActionBuilder { /* private fields */ }
Expand description
A builder for CreateGlobalSecondaryIndexAction
.
Implementations§
source§impl CreateGlobalSecondaryIndexActionBuilder
impl CreateGlobalSecondaryIndexActionBuilder
sourcepub fn index_name(self, input: impl Into<String>) -> Self
pub fn index_name(self, input: impl Into<String>) -> Self
The name of the global secondary index to be created.
This field is required.sourcepub fn set_index_name(self, input: Option<String>) -> Self
pub fn set_index_name(self, input: Option<String>) -> Self
The name of the global secondary index to be created.
sourcepub fn get_index_name(&self) -> &Option<String>
pub fn get_index_name(&self) -> &Option<String>
The name of the global secondary index to be created.
sourcepub fn key_schema(self, input: KeySchemaElement) -> Self
pub fn key_schema(self, input: KeySchemaElement) -> Self
Appends an item to key_schema
.
To override the contents of this collection use set_key_schema
.
The key schema for the global secondary index.
sourcepub fn set_key_schema(self, input: Option<Vec<KeySchemaElement>>) -> Self
pub fn set_key_schema(self, input: Option<Vec<KeySchemaElement>>) -> Self
The key schema for the global secondary index.
sourcepub fn get_key_schema(&self) -> &Option<Vec<KeySchemaElement>>
pub fn get_key_schema(&self) -> &Option<Vec<KeySchemaElement>>
The key schema for the global secondary index.
sourcepub fn projection(self, input: Projection) -> Self
pub fn projection(self, input: Projection) -> Self
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
This field is required.sourcepub fn set_projection(self, input: Option<Projection>) -> Self
pub fn set_projection(self, input: Option<Projection>) -> Self
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
sourcepub fn get_projection(&self) -> &Option<Projection>
pub fn get_projection(&self) -> &Option<Projection>
Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.
sourcepub fn provisioned_throughput(self, input: ProvisionedThroughput) -> Self
pub fn provisioned_throughput(self, input: ProvisionedThroughput) -> Self
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
sourcepub fn set_provisioned_throughput(
self,
input: Option<ProvisionedThroughput>
) -> Self
pub fn set_provisioned_throughput( self, input: Option<ProvisionedThroughput> ) -> Self
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
sourcepub fn get_provisioned_throughput(&self) -> &Option<ProvisionedThroughput>
pub fn get_provisioned_throughput(&self) -> &Option<ProvisionedThroughput>
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.
sourcepub fn build(self) -> Result<CreateGlobalSecondaryIndexAction, BuildError>
pub fn build(self) -> Result<CreateGlobalSecondaryIndexAction, BuildError>
Consumes the builder and constructs a CreateGlobalSecondaryIndexAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateGlobalSecondaryIndexActionBuilder
impl Clone for CreateGlobalSecondaryIndexActionBuilder
source§fn clone(&self) -> CreateGlobalSecondaryIndexActionBuilder
fn clone(&self) -> CreateGlobalSecondaryIndexActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateGlobalSecondaryIndexActionBuilder
impl Default for CreateGlobalSecondaryIndexActionBuilder
source§fn default() -> CreateGlobalSecondaryIndexActionBuilder
fn default() -> CreateGlobalSecondaryIndexActionBuilder
source§impl PartialEq for CreateGlobalSecondaryIndexActionBuilder
impl PartialEq for CreateGlobalSecondaryIndexActionBuilder
source§fn eq(&self, other: &CreateGlobalSecondaryIndexActionBuilder) -> bool
fn eq(&self, other: &CreateGlobalSecondaryIndexActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.