Struct aws_sdk_dynamodb::types::builders::PutRequestBuilder
source · #[non_exhaustive]pub struct PutRequestBuilder { /* private fields */ }
Expand description
A builder for PutRequest
.
Implementations§
source§impl PutRequestBuilder
impl PutRequestBuilder
sourcepub fn item(self, k: impl Into<String>, v: AttributeValue) -> Self
pub fn item(self, k: impl Into<String>, v: AttributeValue) -> Self
Adds a key-value pair to item
.
To override the contents of this collection use set_item
.
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem
. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
sourcepub fn set_item(self, input: Option<HashMap<String, AttributeValue>>) -> Self
pub fn set_item(self, input: Option<HashMap<String, AttributeValue>>) -> Self
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem
. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
sourcepub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
pub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
A map of attribute name to attribute values, representing the primary key of an item to be processed by PutItem
. All of the table's primary key attributes must be specified, and their data types must match those of the table's key schema. If any attributes are present in the item that are part of an index key schema for the table, their types must match the index key schema.
sourcepub fn build(self) -> Result<PutRequest, BuildError>
pub fn build(self) -> Result<PutRequest, BuildError>
Consumes the builder and constructs a PutRequest
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PutRequestBuilder
impl Clone for PutRequestBuilder
source§fn clone(&self) -> PutRequestBuilder
fn clone(&self) -> PutRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PutRequestBuilder
impl Debug for PutRequestBuilder
source§impl Default for PutRequestBuilder
impl Default for PutRequestBuilder
source§fn default() -> PutRequestBuilder
fn default() -> PutRequestBuilder
source§impl PartialEq for PutRequestBuilder
impl PartialEq for PutRequestBuilder
source§fn eq(&self, other: &PutRequestBuilder) -> bool
fn eq(&self, other: &PutRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutRequestBuilder
Auto Trait Implementations§
impl Freeze for PutRequestBuilder
impl RefUnwindSafe for PutRequestBuilder
impl Send for PutRequestBuilder
impl Sync for PutRequestBuilder
impl Unpin for PutRequestBuilder
impl UnwindSafe for PutRequestBuilder
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