Class CfnPhoneNumberPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumberPropsMixin>
- Enclosing class:
CfnPhoneNumberPropsMixin
CfnPhoneNumberPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) deletionProtectionEnabled(Boolean deletionProtectionEnabled) By default this is set to false.deletionProtectionEnabled(IResolvable deletionProtectionEnabled) By default this is set to false.isoCountryCode(String isoCountryCode) The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.mandatoryKeywords(CfnPhoneNumberPropsMixin.MandatoryKeywordsProperty mandatoryKeywords) Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.mandatoryKeywords(IResolvable mandatoryKeywords) Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.numberCapabilities(List<String> numberCapabilities) Indicates if the phone number will be used for text messages, voice messages, or both.numberType(String numberType) The type of phone number to request.optionalKeywords(List<? extends Object> optionalKeywords) A keyword is a word that you can search for on a particular phone number or pool.optionalKeywords(IResolvable optionalKeywords) A keyword is a word that you can search for on a particular phone number or pool.optOutListName(String optOutListName) The name of the OptOutList associated with the phone number.selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled) When set to false and 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.selfManagedOptOutsEnabled(IResolvable selfManagedOptOutsEnabled) When set to false and 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.An array of tags (key and value pairs) to associate with the requested phone number.Describes the two-way SMS configuration for a phone number.twoWay(IResolvable twoWay) Describes the two-way SMS configuration for a phone number.
-
Method Details
-
create
@Stability(Stable) public static CfnPhoneNumberPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPhoneNumberPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPhoneNumberPropsMixin.Builder.
-
deletionProtectionEnabled
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled) By default this is set to false.When set to true the phone number can't be deleted.
- Parameters:
deletionProtectionEnabled- By default this is set to false. This parameter is required.- Returns:
this- See Also:
-
deletionProtectionEnabled
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder deletionProtectionEnabled(IResolvable deletionProtectionEnabled) By default this is set to false.When set to true the phone number can't be deleted.
- Parameters:
deletionProtectionEnabled- By default this is set to false. This parameter is required.- Returns:
this- See Also:
-
isoCountryCode
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- Parameters:
isoCountryCode- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. This parameter is required.- Returns:
this- See Also:
-
mandatoryKeywords
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder mandatoryKeywords(IResolvable mandatoryKeywords) Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.- Parameters:
mandatoryKeywords- Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide. This parameter is required.- Returns:
this- See Also:
-
mandatoryKeywords
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder mandatoryKeywords(CfnPhoneNumberPropsMixin.MandatoryKeywordsProperty mandatoryKeywords) Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.- Parameters:
mandatoryKeywords- Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide. This parameter is required.- Returns:
this- See Also:
-
numberCapabilities
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder numberCapabilities(List<String> numberCapabilities) Indicates if the phone number will be used for text messages, voice messages, or both.- Parameters:
numberCapabilities- Indicates if the phone number will be used for text messages, voice messages, or both. This parameter is required.- Returns:
this- See Also:
-
numberType
The type of phone number to request.The
ShortCodenumber type is not supported in AWS CloudFormation .- Parameters:
numberType- The type of phone number to request. This parameter is required.- Returns:
this- See Also:
-
optionalKeywords
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder optionalKeywords(IResolvable optionalKeywords) A keyword is a word that you can search for on a particular phone number or pool.It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, End User Messaging responds with a customizable message. Optional keywords are differentiated from mandatory keywords. For more information, see Keywords in the End User Messaging User Guide.
- Parameters:
optionalKeywords- A keyword is a word that you can search for on a particular phone number or pool. This parameter is required.- Returns:
this- See Also:
-
optionalKeywords
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder optionalKeywords(List<? extends Object> optionalKeywords) A keyword is a word that you can search for on a particular phone number or pool.It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, End User Messaging responds with a customizable message. Optional keywords are differentiated from mandatory keywords. For more information, see Keywords in the End User Messaging User Guide.
- Parameters:
optionalKeywords- A keyword is a word that you can search for on a particular phone number or pool. This parameter is required.- Returns:
this- See Also:
-
optOutListName
The name of the OptOutList associated with the phone number.- Parameters:
optOutListName- The name of the OptOutList associated with the phone number. This parameter is required.- Returns:
this- See Also:
-
selfManagedOptOutsEnabled
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled) When set to false and 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 request. For more information see Self-managed opt-outs
- Parameters:
selfManagedOptOutsEnabled- When set to false and 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. This parameter is required.- Returns:
this- See Also:
-
selfManagedOptOutsEnabled
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder selfManagedOptOutsEnabled(IResolvable selfManagedOptOutsEnabled) When set to false and 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 request. For more information see Self-managed opt-outs
- Parameters:
selfManagedOptOutsEnabled- When set to false and 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. This parameter is required.- Returns:
this- See Also:
-
tags
An array of tags (key and value pairs) to associate with the requested phone number.- Parameters:
tags- An array of tags (key and value pairs) to associate with the requested phone number. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
twoWay- Describes the two-way SMS configuration for a phone number. This parameter is required.- Returns:
this- See Also:
-
twoWay
@Stability(Stable) public CfnPhoneNumberPropsMixin.Builder twoWay(CfnPhoneNumberPropsMixin.TwoWayProperty 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.
- Parameters:
twoWay- Describes the two-way SMS configuration for a phone number. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPhoneNumberPropsMixin>- Returns:
- a newly built instance of
CfnPhoneNumberPropsMixin.
-