Skip to content

Commit

Permalink
include tags on queue configuration copy
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Jul 30, 2024
1 parent f7e0ef9 commit afd1675
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public QueueConfiguration withVisibilityTimeout(Integer visibilityTimeout) {
return this;
}

private QueueConfiguration withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

public QueueConfiguration copy() {
return new QueueConfiguration()
.withQueue(queue)
Expand All @@ -66,7 +71,8 @@ public QueueConfiguration copy() {
.withDelaySeconds(delaySeconds)
.withMessageRetentionPeriod(messageRetentionPeriod)
.withMaximumMessageSize(maximumMessageSize)
.withVisibilityTimeout(visibilityTimeout);
.withVisibilityTimeout(visibilityTimeout)
.withTags(tags);
}

public String getQueue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public QueueConfiguration withVisibilityTimeout(Integer visibilityTimeout) {
return this;
}

public QueueConfiguration withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

public QueueConfiguration copy() {
return new QueueConfiguration()
.withQueue(queue)
Expand All @@ -66,7 +71,8 @@ public QueueConfiguration copy() {
.withDelaySeconds(delaySeconds)
.withMessageRetentionPeriod(messageRetentionPeriod)
.withMaximumMessageSize(maximumMessageSize)
.withVisibilityTimeout(visibilityTimeout);
.withVisibilityTimeout(visibilityTimeout)
.withTags(tags);
}

public String getQueue() {
Expand Down

0 comments on commit afd1675

Please sign in to comment.