Struct aws_sdk_dynamodb::operation::get_item::builders::GetItemOutputBuilder
source · #[non_exhaustive]pub struct GetItemOutputBuilder { /* private fields */ }
Expand description
A builder for GetItemOutput
.
Implementations§
source§impl GetItemOutputBuilder
impl GetItemOutputBuilder
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 names to AttributeValue
objects, as specified by ProjectionExpression
.
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 names to AttributeValue
objects, as specified by ProjectionExpression
.
sourcepub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
pub fn get_item(&self) -> &Option<HashMap<String, AttributeValue>>
A map of attribute names to AttributeValue
objects, as specified by ProjectionExpression
.
sourcepub fn consumed_capacity(self, input: ConsumedCapacity) -> Self
pub fn consumed_capacity(self, input: ConsumedCapacity) -> Self
The capacity units consumed by the GetItem
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
sourcepub fn set_consumed_capacity(self, input: Option<ConsumedCapacity>) -> Self
pub fn set_consumed_capacity(self, input: Option<ConsumedCapacity>) -> Self
The capacity units consumed by the GetItem
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
sourcepub fn get_consumed_capacity(&self) -> &Option<ConsumedCapacity>
pub fn get_consumed_capacity(&self) -> &Option<ConsumedCapacity>
The capacity units consumed by the GetItem
operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity
is only returned if the ReturnConsumedCapacity
parameter was specified. For more information, see Capacity unit consumption for read operations in the Amazon DynamoDB Developer Guide.
sourcepub fn build(self) -> GetItemOutput
pub fn build(self) -> GetItemOutput
Consumes the builder and constructs a GetItemOutput
.
Trait Implementations§
source§impl Clone for GetItemOutputBuilder
impl Clone for GetItemOutputBuilder
source§fn clone(&self) -> GetItemOutputBuilder
fn clone(&self) -> GetItemOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetItemOutputBuilder
impl Debug for GetItemOutputBuilder
source§impl Default for GetItemOutputBuilder
impl Default for GetItemOutputBuilder
source§fn default() -> GetItemOutputBuilder
fn default() -> GetItemOutputBuilder
source§impl PartialEq for GetItemOutputBuilder
impl PartialEq for GetItemOutputBuilder
source§fn eq(&self, other: &GetItemOutputBuilder) -> bool
fn eq(&self, other: &GetItemOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetItemOutputBuilder
Auto Trait Implementations§
impl Freeze for GetItemOutputBuilder
impl RefUnwindSafe for GetItemOutputBuilder
impl Send for GetItemOutputBuilder
impl Sync for GetItemOutputBuilder
impl Unpin for GetItemOutputBuilder
impl UnwindSafe for GetItemOutputBuilder
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