Class CfnContactList.TopicProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnContactList.TopicProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContactList.TopicProperty>
- Enclosing interface:
CfnContactList.TopicProperty
@Stability(Stable)
public static final class CfnContactList.TopicProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContactList.TopicProperty>
A builder for
CfnContactList.TopicProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.defaultSubscriptionStatus(String defaultSubscriptionStatus) Sets the value ofCfnContactList.TopicProperty.getDefaultSubscriptionStatus()description(String description) Sets the value ofCfnContactList.TopicProperty.getDescription()displayName(String displayName) Sets the value ofCfnContactList.TopicProperty.getDisplayName()Sets the value ofCfnContactList.TopicProperty.getTopicName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaultSubscriptionStatus
@Stability(Stable) public CfnContactList.TopicProperty.Builder defaultSubscriptionStatus(String defaultSubscriptionStatus) Sets the value ofCfnContactList.TopicProperty.getDefaultSubscriptionStatus()- Parameters:
defaultSubscriptionStatus- The default subscription status to be applied to a contact if the contact has not noted their preference for subscribing to a topic. This parameter is required.- Returns:
this
-
displayName
Sets the value ofCfnContactList.TopicProperty.getDisplayName()- Parameters:
displayName- The name of the topic the contact will see. This parameter is required.- Returns:
this
-
topicName
Sets the value ofCfnContactList.TopicProperty.getTopicName()- Parameters:
topicName- The name of the topic. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnContactList.TopicProperty.getDescription()- Parameters:
description- A description of what the topic is about, which the contact will see.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContactList.TopicProperty>- Returns:
- a new instance of
CfnContactList.TopicProperty - Throws:
NullPointerException- if any required attribute was not provided
-