Class TopicProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.TopicProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopicProps>
- Enclosing interface:
- TopicProps
@Stability(Stable)
public static final class TopicProps.Builder
extends Object
implements software.amazon.jsii.Builder<TopicProps>
A builder for
TopicProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofTopicProps.getContentBasedDeduplication()displayName(String displayName) Sets the value ofTopicProps.getDisplayName()Sets the value ofTopicProps.getFifo()Sets the value ofTopicProps.getMasterKey()Sets the value ofTopicProps.getTopicName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contentBasedDeduplication
@Stability(Stable) public TopicProps.Builder contentBasedDeduplication(Boolean contentBasedDeduplication) Sets the value ofTopicProps.getContentBasedDeduplication()- Parameters:
contentBasedDeduplication- Enables content-based deduplication for FIFO topics.- Returns:
this
-
displayName
Sets the value ofTopicProps.getDisplayName()- Parameters:
displayName- A developer-defined string that can be used to identify this SNS topic.- Returns:
this
-
fifo
Sets the value ofTopicProps.getFifo()- Parameters:
fifo- Set to true to create a FIFO topic.- Returns:
this
-
masterKey
Sets the value ofTopicProps.getMasterKey()- Parameters:
masterKey- A KMS Key, either managed by this CDK app, or imported.- Returns:
this
-
topicName
Sets the value ofTopicProps.getTopicName()- Parameters:
topicName- A name for the topic. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the topic name. For more information, see Name Type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TopicProps>- Returns:
- a new instance of
TopicProps - Throws:
NullPointerException- if any required attribute was not provided
-