Interface ExecuteStatementRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
,DynamoDbRequest.Builder
,SdkBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- ExecuteStatementRequest
public static interface ExecuteStatementRequest.Builder extends DynamoDbRequest.Builder, SdkPojo, CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecuteStatementRequest.Builder
consistentRead(Boolean consistentRead)
The consistency of a read operation.ExecuteStatementRequest.Builder
limit(Integer limit)
The maximum number of items to evaluate (not necessarily the number of matching items).ExecuteStatementRequest.Builder
nextToken(String nextToken)
Set this value to get remaining results, ifNextToken
was returned in the statement response.ExecuteStatementRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
ExecuteStatementRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
ExecuteStatementRequest.Builder
parameters(Collection<AttributeValue> parameters)
The parameters for the PartiQL statement, if any.ExecuteStatementRequest.Builder
parameters(Consumer<AttributeValue.Builder>... parameters)
The parameters for the PartiQL statement, if any.ExecuteStatementRequest.Builder
parameters(AttributeValue... parameters)
The parameters for the PartiQL statement, if any.ExecuteStatementRequest.Builder
returnConsumedCapacity(String returnConsumedCapacity)
Sets the value of the ReturnConsumedCapacity property for this object.ExecuteStatementRequest.Builder
returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
Sets the value of the ReturnConsumedCapacity property for this object.ExecuteStatementRequest.Builder
returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
An optional parameter that returns the item attributes for anExecuteStatement
operation that failed a condition check.ExecuteStatementRequest.Builder
returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
An optional parameter that returns the item attributes for anExecuteStatement
operation that failed a condition check.ExecuteStatementRequest.Builder
statement(String statement)
The PartiQL statement representing the operation to run.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
statement
ExecuteStatementRequest.Builder statement(String statement)
The PartiQL statement representing the operation to run.
- Parameters:
statement
- The PartiQL statement representing the operation to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(Collection<AttributeValue> parameters)
The parameters for the PartiQL statement, if any.
- Parameters:
parameters
- The parameters for the PartiQL statement, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(AttributeValue... parameters)
The parameters for the PartiQL statement, if any.
- Parameters:
parameters
- The parameters for the PartiQL statement, if any.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
ExecuteStatementRequest.Builder parameters(Consumer<AttributeValue.Builder>... parameters)
The parameters for the PartiQL statement, if any.
This is a convenience method that creates an instance of theAttributeValue.Builder
avoiding the need to create one manually viaAttributeValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#parameters(List
.) - Parameters:
parameters
- a consumer that will call methods onAttributeValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#parameters(java.util.Collection
)
-
consistentRead
ExecuteStatementRequest.Builder consistentRead(Boolean consistentRead)
The consistency of a read operation. If set to
true
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.- Parameters:
consistentRead
- The consistency of a read operation. If set totrue
, then a strongly consistent read is used; otherwise, an eventually consistent read is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ExecuteStatementRequest.Builder nextToken(String nextToken)
Set this value to get remaining results, if
NextToken
was returned in the statement response.- Parameters:
nextToken
- Set this value to get remaining results, ifNextToken
was returned in the statement response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnConsumedCapacity
ExecuteStatementRequest.Builder returnConsumedCapacity(String returnConsumedCapacity)
Sets the value of the ReturnConsumedCapacity property for this object.- Parameters:
returnConsumedCapacity
- The new value for the ReturnConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnConsumedCapacity
,ReturnConsumedCapacity
-
returnConsumedCapacity
ExecuteStatementRequest.Builder returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity)
Sets the value of the ReturnConsumedCapacity property for this object.- Parameters:
returnConsumedCapacity
- The new value for the ReturnConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnConsumedCapacity
,ReturnConsumedCapacity
-
limit
ExecuteStatementRequest.Builder limit(Integer limit)
The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, along with a key in
LastEvaluatedKey
to apply in a subsequent operation so you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key inLastEvaluatedKey
to apply in a subsequent operation to continue the operation.- Parameters:
limit
- The maximum number of items to evaluate (not necessarily the number of matching items). If DynamoDB processes the number of items up to the limit while processing the results, it stops the operation and returns the matching values up to that point, along with a key inLastEvaluatedKey
to apply in a subsequent operation so you can pick up where you left off. Also, if the processed dataset size exceeds 1 MB before DynamoDB reaches this limit, it stops the operation and returns the matching values up to the limit, and a key inLastEvaluatedKey
to apply in a subsequent operation to continue the operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnValuesOnConditionCheckFailure
ExecuteStatementRequest.Builder returnValuesOnConditionCheckFailure(String returnValuesOnConditionCheckFailure)
An optional parameter that returns the item attributes for an
ExecuteStatement
operation that failed a condition check.There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
- Parameters:
returnValuesOnConditionCheckFailure
- An optional parameter that returns the item attributes for anExecuteStatement
operation that failed a condition check.There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnValuesOnConditionCheckFailure
,ReturnValuesOnConditionCheckFailure
-
returnValuesOnConditionCheckFailure
ExecuteStatementRequest.Builder returnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
An optional parameter that returns the item attributes for an
ExecuteStatement
operation that failed a condition check.There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
- Parameters:
returnValuesOnConditionCheckFailure
- An optional parameter that returns the item attributes for anExecuteStatement
operation that failed a condition check.There is no additional cost associated with requesting a return value aside from the small network and processing overhead of receiving a larger response. No read capacity units are consumed.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ReturnValuesOnConditionCheckFailure
,ReturnValuesOnConditionCheckFailure
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-