Class CfnPhoneNumber.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumber>
- Enclosing class:
CfnPhoneNumber
CfnPhoneNumber
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnPhoneNumber.Builder
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
(IResolvable mandatoryKeywords) Creates or updates aMandatoryKeyword
configuration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.mandatoryKeywords
(CfnPhoneNumber.MandatoryKeywordsProperty mandatoryKeywords) Creates or updates aMandatoryKeyword
configuration 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.twoWay
(IResolvable twoWay) Describes the two-way SMS configuration for a phone number.twoWay
(CfnPhoneNumber.TwoWayProperty twoWay) Describes the two-way SMS configuration for a phone number.
-
Method Details
-
create
@Stability(Stable) public static CfnPhoneNumber.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPhoneNumber.Builder
.
-
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
Creates or updates aMandatoryKeyword
configuration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.- Parameters:
mandatoryKeywords
- Creates or updates aMandatoryKeyword
configuration 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 CfnPhoneNumber.Builder mandatoryKeywords(CfnPhoneNumber.MandatoryKeywordsProperty mandatoryKeywords) Creates or updates aMandatoryKeyword
configuration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.- Parameters:
mandatoryKeywords
- Creates or updates aMandatoryKeyword
configuration 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 CfnPhoneNumber.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
ShortCode
number type is not supported in AWS CloudFormation .- Parameters:
numberType
- The type of phone number to request. This parameter is required.- Returns:
this
- See Also:
-
deletionProtectionEnabled
@Stability(Stable) public CfnPhoneNumber.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 CfnPhoneNumber.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:
-
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 CfnPhoneNumber.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 CfnPhoneNumber.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 CfnPhoneNumber.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
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnPhoneNumber>
- Returns:
- a newly built instance of
CfnPhoneNumber
.
-