public static interface GetItemResponse.Builder extends DynamoDbResponse.Builder, SdkPojo, CopyableBuilder<GetItemResponse.Builder,GetItemResponse>
Modifier and Type | Method and Description |
---|---|
GetItemResponse.Builder |
consumedCapacity(ConsumedCapacity consumedCapacity)
The capacity units consumed by the
GetItem operation. |
default GetItemResponse.Builder |
consumedCapacity(Consumer<ConsumedCapacity.Builder> consumedCapacity)
The capacity units consumed by the
GetItem operation. |
GetItemResponse.Builder |
item(Map<String,AttributeValue> item)
A map of attribute names to
AttributeValue objects, as specified by
ProjectionExpression . |
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, build
GetItemResponse.Builder item(Map<String,AttributeValue> item)
A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.
item
- A map of attribute names to AttributeValue
objects, as specified by
ProjectionExpression
.GetItemResponse.Builder consumedCapacity(ConsumedCapacity 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 Read/Write Capacity Mode in the Amazon DynamoDB Developer Guide.
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 Read/Write Capacity Mode in the Amazon DynamoDB Developer Guide.default GetItemResponse.Builder consumedCapacity(Consumer<ConsumedCapacity.Builder> 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 Read/Write Capacity Mode in the Amazon DynamoDB Developer Guide.
ConsumedCapacity.Builder
avoiding the need to
create one manually via ConsumedCapacity.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to consumedCapacity(ConsumedCapacity)
.consumedCapacity
- a consumer that will call methods on ConsumedCapacity.Builder
consumedCapacity(ConsumedCapacity)
Copyright © 2019. All rights reserved.