Class CfnPhoneNumber.TwoWayProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnPhoneNumber.TwoWayProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPhoneNumber.TwoWayProperty>
- Enclosing interface:
CfnPhoneNumber.TwoWayProperty
@Stability(Stable)
public static final class CfnPhoneNumber.TwoWayProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPhoneNumber.TwoWayProperty>
A builder for
CfnPhoneNumber.TwoWayProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.channelArn
(String channelArn) Sets the value ofCfnPhoneNumber.TwoWayProperty.getChannelArn()
channelRole
(String channelRole) Sets the value ofCfnPhoneNumber.TwoWayProperty.getChannelRole()
Sets the value ofCfnPhoneNumber.TwoWayProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnPhoneNumber.TwoWayProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnPhoneNumber.TwoWayProperty.getEnabled()
- Parameters:
enabled
- By default this is set to false. This parameter is required. When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.- Returns:
this
-
enabled
Sets the value ofCfnPhoneNumber.TwoWayProperty.getEnabled()
- Parameters:
enabled
- By default this is set to false. This parameter is required. When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.- Returns:
this
-
channelArn
Sets the value ofCfnPhoneNumber.TwoWayProperty.getChannelArn()
- Parameters:
channelArn
- The Amazon Resource Name (ARN) of the two way channel.- Returns:
this
-
channelRole
Sets the value ofCfnPhoneNumber.TwoWayProperty.getChannelRole()
- Parameters:
channelRole
- An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPhoneNumber.TwoWayProperty>
- Returns:
- a new instance of
CfnPhoneNumber.TwoWayProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-