Class TopicAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.sns.TopicAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopicAttributes>
- Enclosing interface:
TopicAttributes
@Stability(Stable)
public static final class TopicAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<TopicAttributes>
A builder for
TopicAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofTopicAttributes.getContentBasedDeduplication()Sets the value ofTopicAttributes.getKeyArn()Sets the value ofTopicAttributes.getTopicArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topicArn
Sets the value ofTopicAttributes.getTopicArn()- Parameters:
topicArn- The ARN of the SNS topic. This parameter is required.- Returns:
this
-
contentBasedDeduplication
@Stability(Stable) public TopicAttributes.Builder contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofTopicAttributes.getContentBasedDeduplication()- Parameters:
contentBasedDeduplication- Whether content-based deduplication is enabled. Only applicable for FIFO topics.- Returns:
this
-
keyArn
Sets the value ofTopicAttributes.getKeyArn()- Parameters:
keyArn- KMS encryption key, if this topic is server-side encrypted by a KMS key.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TopicAttributes>- Returns:
- a new instance of
TopicAttributes - Throws:
NullPointerException- if any required attribute was not provided
-