Interface GetItemResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<GetItemResponse.Builder,GetItemResponse>, DynamoDbResponse.Builder, SdkBuilder<GetItemResponse.Builder,GetItemResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
GetItemResponse

public static interface GetItemResponse.Builder extends DynamoDbResponse.Builder, SdkPojo, CopyableBuilder<GetItemResponse.Builder,GetItemResponse>
  • Method Details

    • item

      A map of attribute names to AttributeValue objects, as specified by ProjectionExpression.

      Parameters:
      item - A map of attribute names to AttributeValue objects, as specified by ProjectionExpression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • consumedCapacity

      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 Provisioned Throughput in the Amazon DynamoDB Developer Guide.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • consumedCapacity

      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 Provisioned Throughput in the Amazon DynamoDB Developer Guide.

      This is a convenience method that creates an instance of the 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).

      Parameters:
      consumedCapacity - a consumer that will call methods on ConsumedCapacity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: