Struct aws_sdk_dynamodb::output::get_item_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetItemOutput
.
Implementations§
source§impl Builder
impl Builder
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 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 Read/Write Capacity Mode 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 Read/Write Capacity Mode in the Amazon DynamoDB Developer Guide.
sourcepub fn build(self) -> GetItemOutput
pub fn build(self) -> GetItemOutput
Consumes the builder and constructs a GetItemOutput
.