Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.chime.CfnChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelProps>
- Enclosing interface:
CfnChannelProps
@Stability(Stable)
public static final class CfnChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelProps>
A builder for
CfnChannelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappInstanceArn(String appInstanceArn) Sets the value ofCfnChannelProps.getAppInstanceArn()build()Builds the configured instance.Sets the value ofCfnChannelProps.getChannelId()chimeBearer(String chimeBearer) Sets the value ofCfnChannelProps.getChimeBearer()elasticChannelConfiguration(IResolvable elasticChannelConfiguration) Sets the value ofCfnChannelProps.getElasticChannelConfiguration()elasticChannelConfiguration(CfnChannel.ElasticChannelConfigurationProperty elasticChannelConfiguration) Sets the value ofCfnChannelProps.getElasticChannelConfiguration()expirationSettings(IResolvable expirationSettings) Sets the value ofCfnChannelProps.getExpirationSettings()expirationSettings(CfnChannel.ExpirationSettingsProperty expirationSettings) Sets the value ofCfnChannelProps.getExpirationSettings()memberArns(List<String> memberArns) Sets the value ofCfnChannelProps.getMemberArns()Sets the value ofCfnChannelProps.getMetadata()Sets the value ofCfnChannelProps.getMode()moderatorArns(List<String> moderatorArns) Sets the value ofCfnChannelProps.getModeratorArns()Sets the value ofCfnChannelProps.getName()Sets the value ofCfnChannelProps.getPrivacy()Sets the value ofCfnChannelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appInstanceArn
Sets the value ofCfnChannelProps.getAppInstanceArn()- Parameters:
appInstanceArn- The ARN of the AppInstance that contains the channel. This parameter is required.- Returns:
this
-
chimeBearer
Sets the value ofCfnChannelProps.getChimeBearer()- Parameters:
chimeBearer- The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel. This parameter is required. Whichever of the two creates a channel automatically becomes one of its moderators, so the same ARN can subsequently read, update and delete the channel.- Returns:
this
-
name
Sets the value ofCfnChannelProps.getName()- Parameters:
name- The name of the channel. This parameter is required.- Returns:
this
-
channelId
Sets the value ofCfnChannelProps.getChannelId()- Parameters:
channelId- The ID of the channel. When omitted, the service generates a UUID.- Returns:
this
-
elasticChannelConfiguration
@Stability(Stable) public CfnChannelProps.Builder elasticChannelConfiguration(IResolvable elasticChannelConfiguration) Sets the value ofCfnChannelProps.getElasticChannelConfiguration()- Parameters:
elasticChannelConfiguration- The attributes required to configure and create an elastic channel. An elastic channel must use RESTRICTED mode, cannot be created with MemberArns, and is available only in some regions.- Returns:
this
-
elasticChannelConfiguration
@Stability(Stable) public CfnChannelProps.Builder elasticChannelConfiguration(CfnChannel.ElasticChannelConfigurationProperty elasticChannelConfiguration) Sets the value ofCfnChannelProps.getElasticChannelConfiguration()- Parameters:
elasticChannelConfiguration- The attributes required to configure and create an elastic channel. An elastic channel must use RESTRICTED mode, cannot be created with MemberArns, and is available only in some regions.- Returns:
this
-
expirationSettings
@Stability(Stable) public CfnChannelProps.Builder expirationSettings(IResolvable expirationSettings) Sets the value ofCfnChannelProps.getExpirationSettings()- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted.- Returns:
this
-
expirationSettings
@Stability(Stable) public CfnChannelProps.Builder expirationSettings(CfnChannel.ExpirationSettingsProperty expirationSettings) Sets the value ofCfnChannelProps.getExpirationSettings()- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted.- Returns:
this
-
memberArns
Sets the value ofCfnChannelProps.getMemberArns()- Parameters:
memberArns- The ARNs of the AppInstanceUsers to add to the channel as members when it is created. Cannot be combined with ElasticChannelConfiguration.- Returns:
this
-
metadata
Sets the value ofCfnChannelProps.getMetadata()- Parameters:
metadata- The metadata of the channel.- Returns:
this
-
mode
Sets the value ofCfnChannelProps.getMode()- Parameters:
mode- The channel mode. In an UNRESTRICTED channel, members can add themselves and other members; in a RESTRICTED channel, only administrators and moderators can add members. An elastic channel must be RESTRICTED.- Returns:
this
-
moderatorArns
Sets the value ofCfnChannelProps.getModeratorArns()- Parameters:
moderatorArns- The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.- Returns:
this
-
privacy
Sets the value ofCfnChannelProps.getPrivacy()- Parameters:
privacy- The channel's privacy level. A PUBLIC channel is discoverable by anyone in the AppInstance; a PRIVATE channel is not. Privacy cannot be changed after creation.- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()- Parameters:
tags- The tags for the channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelProps>- Returns:
- a new instance of
CfnChannelProps - Throws:
NullPointerException- if any required attribute was not provided
-