Class CfnChannelMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.chime.CfnChannelMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelMixinProps>
- Enclosing interface:
CfnChannelMixinProps
@Stability(Stable)
public static final class CfnChannelMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelMixinProps>
A builder for
CfnChannelMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappInstanceArn(String appInstanceArn) Sets the value ofCfnChannelMixinProps.getAppInstanceArn()build()Builds the configured instance.Sets the value ofCfnChannelMixinProps.getChannelId()chimeBearer(String chimeBearer) Sets the value ofCfnChannelMixinProps.getChimeBearer()elasticChannelConfiguration(CfnChannelPropsMixin.ElasticChannelConfigurationProperty elasticChannelConfiguration) Sets the value ofCfnChannelMixinProps.getElasticChannelConfiguration()elasticChannelConfiguration(IResolvable elasticChannelConfiguration) Sets the value ofCfnChannelMixinProps.getElasticChannelConfiguration()expirationSettings(CfnChannelPropsMixin.ExpirationSettingsProperty expirationSettings) Sets the value ofCfnChannelMixinProps.getExpirationSettings()expirationSettings(IResolvable expirationSettings) Sets the value ofCfnChannelMixinProps.getExpirationSettings()memberArns(List<String> memberArns) Sets the value ofCfnChannelMixinProps.getMemberArns()Sets the value ofCfnChannelMixinProps.getMetadata()Sets the value ofCfnChannelMixinProps.getMode()moderatorArns(List<String> moderatorArns) Sets the value ofCfnChannelMixinProps.getModeratorArns()Sets the value ofCfnChannelMixinProps.getName()Sets the value ofCfnChannelMixinProps.getPrivacy()Sets the value ofCfnChannelMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appInstanceArn
Sets the value ofCfnChannelMixinProps.getAppInstanceArn()- Parameters:
appInstanceArn- The ARN of the AppInstance that contains the channel.- Returns:
this
-
channelId
Sets the value ofCfnChannelMixinProps.getChannelId()- Parameters:
channelId- The ID of the channel. When omitted, the service generates a UUID.- Returns:
this
-
chimeBearer
Sets the value ofCfnChannelMixinProps.getChimeBearer()- Parameters:
chimeBearer- The ARN of the AppInstanceUser or AppInstanceBot that performs every operation on this channel. 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
-
elasticChannelConfiguration
@Stability(Stable) public CfnChannelMixinProps.Builder elasticChannelConfiguration(IResolvable elasticChannelConfiguration) Sets the value ofCfnChannelMixinProps.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 CfnChannelMixinProps.Builder elasticChannelConfiguration(CfnChannelPropsMixin.ElasticChannelConfigurationProperty elasticChannelConfiguration) Sets the value ofCfnChannelMixinProps.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 CfnChannelMixinProps.Builder expirationSettings(IResolvable expirationSettings) Sets the value ofCfnChannelMixinProps.getExpirationSettings()- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted.- Returns:
this
-
expirationSettings
@Stability(Stable) public CfnChannelMixinProps.Builder expirationSettings(CfnChannelPropsMixin.ExpirationSettingsProperty expirationSettings) Sets the value ofCfnChannelMixinProps.getExpirationSettings()- Parameters:
expirationSettings- Settings that control the interval after which the channel is automatically deleted.- Returns:
this
-
memberArns
Sets the value ofCfnChannelMixinProps.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 ofCfnChannelMixinProps.getMetadata()- Parameters:
metadata- The metadata of the channel.- Returns:
this
-
mode
Sets the value ofCfnChannelMixinProps.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 ofCfnChannelMixinProps.getModeratorArns()- Parameters:
moderatorArns- The ARNs of the AppInstanceUsers to add to the channel as moderators when it is created.- Returns:
this
-
name
Sets the value ofCfnChannelMixinProps.getName()- Parameters:
name- The name of the channel.- Returns:
this
-
privacy
Sets the value ofCfnChannelMixinProps.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 ofCfnChannelMixinProps.getTags()- Parameters:
tags- The tags for the channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelMixinProps>- Returns:
- a new instance of
CfnChannelMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-