Interface TransactGetItemsResponse.Builder

    • Method Detail

      • consumedCapacity

        TransactGetItemsResponse.Builder consumedCapacity​(Collection<ConsumedCapacity> consumedCapacity)

        If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

        Parameters:
        consumedCapacity - If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • consumedCapacity

        TransactGetItemsResponse.Builder consumedCapacity​(ConsumedCapacity... consumedCapacity)

        If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

        Parameters:
        consumedCapacity - If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • consumedCapacity

        TransactGetItemsResponse.Builder consumedCapacity​(Consumer<ConsumedCapacity.Builder>... consumedCapacity)

        If the ReturnConsumedCapacity value was TOTAL, this is an array of ConsumedCapacity objects, one for each table addressed by TransactGetItem objects in the TransactItems parameter. These ConsumedCapacity objects report the read-capacity units consumed by the TransactGetItems call in that table.

        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(List).

        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:
        #consumedCapacity(java.util.Collection)
      • responses

        TransactGetItemsResponse.Builder responses​(Collection<ItemResponse> responses)

        An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

        If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

        Parameters:
        responses - An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

        If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responses

        TransactGetItemsResponse.Builder responses​(ItemResponse... responses)

        An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

        If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

        Parameters:
        responses - An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

        If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • responses

        TransactGetItemsResponse.Builder responses​(Consumer<ItemResponse.Builder>... responses)

        An ordered array of up to 100 ItemResponse objects, each of which corresponds to the TransactGetItem object in the same position in the TransactItems array. Each ItemResponse object contains a Map of the name-value pairs that are the projected attributes of the requested item.

        If a requested item could not be retrieved, the corresponding ItemResponse object is Null, or if the requested item has no projected attributes, the corresponding ItemResponse object is an empty Map.

        This is a convenience method that creates an instance of the ItemResponse.Builder avoiding the need to create one manually via ItemResponse.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #responses(List).

        Parameters:
        responses - a consumer that will call methods on ItemResponse.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #responses(java.util.Collection)