GetItemEnhancedRequest.Builder (AWS SDK for Java

GetItemEnhancedRequest.Builder (AWS SDK for Java - 2.25.34)java.lang.Object

software.amazon.awssdk.enhanced.dynamodb.model.GetItemEnhancedRequest.Builder

Enclosing class:
GetItemEnhancedRequest

A builder that is used to create a request with the desired parameters.

Note: A valid request builder must define a Key.

  • Method Summary

    Determines the read consistency model: If set to true, the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

    Sets the primary Key that will be used to match the item to retrieve by accepting a consumer of Key.Builder. Sets the primary Key that will be used to match the item to retrieve.

    Whether to return the capacity consumed by this operation.

    Whether to return the capacity consumed by this operation.

  • Method Details

    • consistentRead

      Determines the read consistency model: If set to true, the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

      By default, the value of this property is set to false.

      Parameters:
      consistentRead - sets consistency model of the operation to use strong consistency
      Returns:
      a builder of this type
    • key

      Sets the primary Key that will be used to match the item to retrieve.
      Parameters:
      key - the primary key to use in the request.
      Returns:
      a builder of this type
    • key

      Sets the primary Key that will be used to match the item to retrieve by accepting a consumer of Key.Builder.
      Parameters:
      keyConsumer - a Consumer of Key
      Returns:
      a builder of this type
    • returnConsumedCapacity

      Whether to return the capacity consumed by this operation.

      See Also:
    • returnConsumedCapacity

      Whether to return the capacity consumed by this operation.

      See Also:
    • build


You Might Also Like