Interface ExecuteStatementResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>
,DynamoDbResponse.Builder
,SdkBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- ExecuteStatementResponse
public static interface ExecuteStatementResponse.Builder extends DynamoDbResponse.Builder, SdkPojo, CopyableBuilder<ExecuteStatementResponse.Builder,ExecuteStatementResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExecuteStatementResponse.Builder
consumedCapacity(Consumer<ConsumedCapacity.Builder> consumedCapacity)
Sets the value of the ConsumedCapacity property for this object.ExecuteStatementResponse.Builder
consumedCapacity(ConsumedCapacity consumedCapacity)
Sets the value of the ConsumedCapacity property for this object.ExecuteStatementResponse.Builder
items(Collection<? extends Map<String,AttributeValue>> items)
If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values.ExecuteStatementResponse.Builder
items(Map<String,AttributeValue>... items)
If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values.ExecuteStatementResponse.Builder
lastEvaluatedKey(Map<String,AttributeValue> lastEvaluatedKey)
The primary key of the item where the operation stopped, inclusive of the previous result set.ExecuteStatementResponse.Builder
nextToken(String nextToken)
If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
items
ExecuteStatementResponse.Builder items(Collection<? extends Map<String,AttributeValue>> items)
If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values. For the write operations this value will be empty.
- Parameters:
items
- If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values. For the write operations this value will be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
ExecuteStatementResponse.Builder items(Map<String,AttributeValue>... items)
If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values. For the write operations this value will be empty.
- Parameters:
items
- If a read operation was used, this property will contain the result of the read operation; a map of attribute names and their values. For the write operations this value will be empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ExecuteStatementResponse.Builder nextToken(String nextToken)
If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.
- Parameters:
nextToken
- If the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumedCapacity
ExecuteStatementResponse.Builder consumedCapacity(ConsumedCapacity consumedCapacity)
Sets the value of the ConsumedCapacity property for this object.- Parameters:
consumedCapacity
- The new value for the ConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
consumedCapacity
default ExecuteStatementResponse.Builder consumedCapacity(Consumer<ConsumedCapacity.Builder> consumedCapacity)
Sets the value of the ConsumedCapacity property for this object. This is a convenience method that creates an instance of theConsumedCapacity.Builder
avoiding the need to create one manually viaConsumedCapacity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconsumedCapacity(ConsumedCapacity)
.- Parameters:
consumedCapacity
- a consumer that will call methods onConsumedCapacity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
consumedCapacity(ConsumedCapacity)
-
lastEvaluatedKey
ExecuteStatementResponse.Builder lastEvaluatedKey(Map<String,AttributeValue> lastEvaluatedKey)
The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If
LastEvaluatedKey
is empty, then the "last page" of results has been processed and there is no more data to be retrieved. IfLastEvaluatedKey
is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is whenLastEvaluatedKey
is empty.- Parameters:
lastEvaluatedKey
- The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. IfLastEvaluatedKey
is empty, then the "last page" of results has been processed and there is no more data to be retrieved. IfLastEvaluatedKey
is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is whenLastEvaluatedKey
is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-