Struct aws_sdk_dynamodb::types::builders::KeySchemaElementBuilder
source · #[non_exhaustive]pub struct KeySchemaElementBuilder { /* private fields */ }
Expand description
A builder for KeySchemaElement
.
Implementations§
source§impl KeySchemaElementBuilder
impl KeySchemaElementBuilder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
The name of a key attribute.
This field is required.sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
The name of a key attribute.
sourcepub fn get_attribute_name(&self) -> &Option<String>
pub fn get_attribute_name(&self) -> &Option<String>
The name of a key attribute.
sourcepub fn key_type(self, input: KeyType) -> Self
pub fn key_type(self, input: KeyType) -> Self
The role that this key attribute will assume:
-
HASH
- partition key -
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
sourcepub fn set_key_type(self, input: Option<KeyType>) -> Self
pub fn set_key_type(self, input: Option<KeyType>) -> Self
The role that this key attribute will assume:
-
HASH
- partition key -
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
sourcepub fn get_key_type(&self) -> &Option<KeyType>
pub fn get_key_type(&self) -> &Option<KeyType>
The role that this key attribute will assume:
-
HASH
- partition key -
RANGE
- sort key
The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.
The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.
sourcepub fn build(self) -> Result<KeySchemaElement, BuildError>
pub fn build(self) -> Result<KeySchemaElement, BuildError>
Consumes the builder and constructs a KeySchemaElement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KeySchemaElementBuilder
impl Clone for KeySchemaElementBuilder
source§fn clone(&self) -> KeySchemaElementBuilder
fn clone(&self) -> KeySchemaElementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeySchemaElementBuilder
impl Debug for KeySchemaElementBuilder
source§impl Default for KeySchemaElementBuilder
impl Default for KeySchemaElementBuilder
source§fn default() -> KeySchemaElementBuilder
fn default() -> KeySchemaElementBuilder
source§impl PartialEq for KeySchemaElementBuilder
impl PartialEq for KeySchemaElementBuilder
source§fn eq(&self, other: &KeySchemaElementBuilder) -> bool
fn eq(&self, other: &KeySchemaElementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeySchemaElementBuilder
Auto Trait Implementations§
impl Freeze for KeySchemaElementBuilder
impl RefUnwindSafe for KeySchemaElementBuilder
impl Send for KeySchemaElementBuilder
impl Sync for KeySchemaElementBuilder
impl Unpin for KeySchemaElementBuilder
impl UnwindSafe for KeySchemaElementBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more