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 Provisioned Throughput 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 Provisioned Throughput 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 Provisioned Throughput 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 ==
.