Skip to content

Fix missing token #1893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"category": "AWS SDK for Java v2 DynamoDB Enhanced Client",
"type": "bugfix",
"description": "Added ClientRequestToken in class TransactWriteItemsEnhancedRequest."
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public final class TransactWriteItemsEnhancedRequest {

private final List<TransactWriteItem> transactWriteItems;

private String clientRequestToken;
private final String clientRequestToken;

private TransactWriteItemsEnhancedRequest(Builder builder) {
this.transactWriteItems = getItemsFromSupplier(builder.itemSupplierList);
Expand Down Expand Up @@ -107,7 +107,7 @@ public int hashCode() {
public static final class Builder {
private List<Supplier<TransactWriteItem>> itemSupplierList = new ArrayList<>();

private String clientRequestToken = null;
private String clientRequestToken;

private Builder() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public void builder_maximal_builder_style() {
}

@Test
public void setClientRequestTokenTest() {
public void builder_passRequestToken_shouldWork() {
String token = UUID.randomUUID().toString();
TransactWriteItemsEnhancedRequest enhancedRequest = TransactWriteItemsEnhancedRequest.builder()
.clientRequestToken(token)
Expand Down