Interface TransactWriteItemsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<TransactWriteItemsRequest.Builder,,TransactWriteItemsRequest> DynamoDbRequest.Builder,SdkBuilder<TransactWriteItemsRequest.Builder,,TransactWriteItemsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
TransactWriteItemsRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Providing aClientRequestTokenmakes the call toTransactWriteItemsidempotent, meaning that multiple identical calls have the same effect as one single call.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.returnConsumedCapacity(String returnConsumedCapacity) Sets the value of the ReturnConsumedCapacity property for this object.returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Sets the value of the ReturnConsumedCapacity property for this object.returnItemCollectionMetrics(String returnItemCollectionMetrics) Determines whether item collection metrics are returned.returnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics) Determines whether item collection metrics are returned.transactItems(Collection<TransactWriteItem> transactItems) An ordered array of up to 100TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject.transactItems(Consumer<TransactWriteItem.Builder>... transactItems) An ordered array of up to 100TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject.transactItems(TransactWriteItem... transactItems) An ordered array of up to 100TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
transactItems
An ordered array of up to 100
TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.- Parameters:
transactItems- An ordered array of up to 100TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transactItems
An ordered array of up to 100
TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.- Parameters:
transactItems- An ordered array of up to 100TransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
transactItems
TransactWriteItemsRequest.Builder transactItems(Consumer<TransactWriteItem.Builder>... transactItems) An ordered array of up to 100
This is a convenience method that creates an instance of theTransactWriteItemobjects, each of which contains aConditionCheck,Put,Update, orDeleteobject. These can operate on items in different tables, but the tables must reside in the same Amazon Web Services account and Region, and no two of them can operate on the same item.TransactWriteItem.Builderavoiding the need to create one manually viaTransactWriteItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totransactItems(List<TransactWriteItem>).- Parameters:
transactItems- a consumer that will call methods onTransactWriteItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
TransactWriteItemsRequest.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:
-
returnItemCollectionMetrics
Determines whether item collection metrics are returned. If set to
SIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set toNONE(the default), no statistics are returned.- Parameters:
returnItemCollectionMetrics- Determines whether item collection metrics are returned. If set toSIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set toNONE(the default), no statistics are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
returnItemCollectionMetrics
TransactWriteItemsRequest.Builder returnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics) Determines whether item collection metrics are returned. If set to
SIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set toNONE(the default), no statistics are returned.- Parameters:
returnItemCollectionMetrics- Determines whether item collection metrics are returned. If set toSIZE, the response includes statistics about item collections (if any), that were modified during the operation and are returned in the response. If set toNONE(the default), no statistics are returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientRequestToken
Providing a
ClientRequestTokenmakes the call toTransactWriteItemsidempotent, meaning that multiple identical calls have the same effect as one single call.Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the
ReturnConsumedCapacityparameter is set, then the initialTransactWriteItemscall returns the amount of write capacity units consumed in making the changes. SubsequentTransactWriteItemscalls with the same client token return the number of read capacity units consumed in reading the item.A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an
IdempotentParameterMismatchexception.- Parameters:
clientRequestToken- Providing aClientRequestTokenmakes the call toTransactWriteItemsidempotent, meaning that multiple identical calls have the same effect as one single call.Although multiple identical calls using the same client request token produce the same result on the server (no side effects), the responses to the calls might not be the same. If the
ReturnConsumedCapacityparameter is set, then the initialTransactWriteItemscall returns the amount of write capacity units consumed in making the changes. SubsequentTransactWriteItemscalls with the same client token return the number of read capacity units consumed in reading the item.A client request token is valid for 10 minutes after the first request that uses it is completed. After 10 minutes, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 10 minutes, or the result might not be idempotent.
If you submit a request with the same client token but a change in other parameters within the 10-minute idempotency window, DynamoDB returns an
IdempotentParameterMismatchexception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
TransactWriteItemsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
TransactWriteItemsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-