Class CfnPoolProps.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnPoolProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPoolProps>
- Enclosing interface:
CfnPoolProps
@Stability(Stable)
public static final class CfnPoolProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPoolProps>
A builder for
CfnPoolProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deletionProtectionEnabled
(Boolean deletionProtectionEnabled) Sets the value ofCfnPoolProps.getDeletionProtectionEnabled()
deletionProtectionEnabled
(IResolvable deletionProtectionEnabled) Sets the value ofCfnPoolProps.getDeletionProtectionEnabled()
mandatoryKeywords
(IResolvable mandatoryKeywords) Sets the value ofCfnPoolProps.getMandatoryKeywords()
mandatoryKeywords
(CfnPool.MandatoryKeywordsProperty mandatoryKeywords) Sets the value ofCfnPoolProps.getMandatoryKeywords()
optionalKeywords
(List<? extends Object> optionalKeywords) Sets the value ofCfnPoolProps.getOptionalKeywords()
optionalKeywords
(IResolvable optionalKeywords) Sets the value ofCfnPoolProps.getOptionalKeywords()
optOutListName
(String optOutListName) Sets the value ofCfnPoolProps.getOptOutListName()
originationIdentities
(List<String> originationIdentities) Sets the value ofCfnPoolProps.getOriginationIdentities()
selfManagedOptOutsEnabled
(Boolean selfManagedOptOutsEnabled) Sets the value ofCfnPoolProps.getSelfManagedOptOutsEnabled()
selfManagedOptOutsEnabled
(IResolvable selfManagedOptOutsEnabled) Sets the value ofCfnPoolProps.getSelfManagedOptOutsEnabled()
sharedRoutesEnabled
(Boolean sharedRoutesEnabled) Sets the value ofCfnPoolProps.getSharedRoutesEnabled()
sharedRoutesEnabled
(IResolvable sharedRoutesEnabled) Sets the value ofCfnPoolProps.getSharedRoutesEnabled()
Sets the value ofCfnPoolProps.getTags()
twoWay
(IResolvable twoWay) Sets the value ofCfnPoolProps.getTwoWay()
twoWay
(CfnPool.TwoWayProperty twoWay) Sets the value ofCfnPoolProps.getTwoWay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mandatoryKeywords
Sets the value ofCfnPoolProps.getMandatoryKeywords()
- Parameters:
mandatoryKeywords
- Creates or updates the pool'sMandatoryKeyword
configuration. This parameter is required. For more information, see Keywords in the End User Messaging User Guide.- Returns:
this
-
mandatoryKeywords
@Stability(Stable) public CfnPoolProps.Builder mandatoryKeywords(CfnPool.MandatoryKeywordsProperty mandatoryKeywords) Sets the value ofCfnPoolProps.getMandatoryKeywords()
- Parameters:
mandatoryKeywords
- Creates or updates the pool'sMandatoryKeyword
configuration. This parameter is required. For more information, see Keywords in the End User Messaging User Guide.- Returns:
this
-
originationIdentities
@Stability(Stable) public CfnPoolProps.Builder originationIdentities(List<String> originationIdentities) Sets the value ofCfnPoolProps.getOriginationIdentities()
- Parameters:
originationIdentities
- The list of origination identities to apply to the pool, eitherPhoneNumberArn
orSenderIdArn
. This parameter is required. For more information, see Registrations in the End User Messaging User Guide.If you are using a shared End User Messaging resource then you must use the full Amazon Resource Name (ARN).
- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnPoolProps.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) Sets the value ofCfnPoolProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- When set to true the pool can't be deleted.- Returns:
this
-
deletionProtectionEnabled
@Stability(Stable) public CfnPoolProps.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) Sets the value ofCfnPoolProps.getDeletionProtectionEnabled()
- Parameters:
deletionProtectionEnabled
- When set to true the pool can't be deleted.- Returns:
this
-
optionalKeywords
Sets the value ofCfnPoolProps.getOptionalKeywords()
- Parameters:
optionalKeywords
- Specifies any optional keywords to associate with the pool. For more information, see Keywords in the End User Messaging User Guide.- Returns:
this
-
optionalKeywords
@Stability(Stable) public CfnPoolProps.Builder optionalKeywords(List<? extends Object> optionalKeywords) Sets the value ofCfnPoolProps.getOptionalKeywords()
- Parameters:
optionalKeywords
- Specifies any optional keywords to associate with the pool. For more information, see Keywords in the End User Messaging User Guide.- Returns:
this
-
optOutListName
Sets the value ofCfnPoolProps.getOptOutListName()
- Parameters:
optOutListName
- The name of the OptOutList associated with the pool.- Returns:
this
-
selfManagedOptOutsEnabled
@Stability(Stable) public CfnPoolProps.Builder selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled) Sets the value ofCfnPoolProps.getSelfManagedOptOutsEnabled()
- Parameters:
selfManagedOptOutsEnabled
- When set to false, an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, End User Messaging automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests. For more information see Self-managed opt-outs- Returns:
this
-
selfManagedOptOutsEnabled
@Stability(Stable) public CfnPoolProps.Builder selfManagedOptOutsEnabled(IResolvable selfManagedOptOutsEnabled) Sets the value ofCfnPoolProps.getSelfManagedOptOutsEnabled()
- Parameters:
selfManagedOptOutsEnabled
- When set to false, an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, End User Messaging automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests. For more information see Self-managed opt-outs- Returns:
this
-
tags
Sets the value ofCfnPoolProps.getTags()
- Parameters:
tags
- An array of tags (key and value pairs) associated with the pool.- Returns:
this
-
twoWay
Sets the value ofCfnPoolProps.getTwoWay()
- Parameters:
twoWay
- Describes the two-way SMS configuration for a phone number. For more information, see Two-way SMS messaging in the End User Messaging User Guide.- Returns:
this
-
twoWay
Sets the value ofCfnPoolProps.getTwoWay()
- Parameters:
twoWay
- Describes the two-way SMS configuration for a phone number. For more information, see Two-way SMS messaging in the End User Messaging User Guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPoolProps>
- Returns:
- a new instance of
CfnPoolProps
- Throws:
NullPointerException
- if any required attribute was not provided
-