Class CfnPool.TwoWayProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnPool.TwoWayProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPool.TwoWayProperty>
- Enclosing interface:
CfnPool.TwoWayProperty
@Stability(Stable)
public static final class CfnPool.TwoWayProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPool.TwoWayProperty>
A builder for
CfnPool.TwoWayProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.channelArn(String channelArn) Sets the value ofCfnPool.TwoWayProperty.getChannelArn()channelRole(String channelRole) Sets the value ofCfnPool.TwoWayProperty.getChannelRole()Sets the value ofCfnPool.TwoWayProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnPool.TwoWayProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnPool.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 ofCfnPool.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 ofCfnPool.TwoWayProperty.getChannelArn()- Parameters:
channelArn- The Amazon Resource Name (ARN) of the two way channel.- Returns:
this
-
channelRole
Sets the value ofCfnPool.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPool.TwoWayProperty>- Returns:
- a new instance of
CfnPool.TwoWayProperty - Throws:
NullPointerException- if any required attribute was not provided
-