Interface CreateChannelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ChimeSdkMessagingRequest.Builder
,CopyableBuilder<CreateChannelRequest.Builder,
,CreateChannelRequest> SdkBuilder<CreateChannelRequest.Builder,
,CreateChannelRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateChannelRequest
-
Method Summary
Modifier and TypeMethodDescriptionappInstanceArn
(String appInstanceArn) The ARN of the channel request.The ID of the channel in the request.chimeBearer
(String chimeBearer) The ARN of theAppInstanceUser
orAppInstanceBot
that makes the API call.clientRequestToken
(String clientRequestToken) The client token for the request.default CreateChannelRequest.Builder
elasticChannelConfiguration
(Consumer<ElasticChannelConfiguration.Builder> elasticChannelConfiguration) The attributes required to configure and create an elastic channel.elasticChannelConfiguration
(ElasticChannelConfiguration elasticChannelConfiguration) The attributes required to configure and create an elastic channel.default CreateChannelRequest.Builder
expirationSettings
(Consumer<ExpirationSettings.Builder> expirationSettings) Settings that control the interval after which the channel is automatically deleted.expirationSettings
(ExpirationSettings expirationSettings) Settings that control the interval after which the channel is automatically deleted.memberArns
(String... memberArns) The ARNs of the channel members in the request.memberArns
(Collection<String> memberArns) The ARNs of the channel members in the request.The metadata of the creation request.The channel mode:UNRESTRICTED
orRESTRICTED
.mode
(ChannelMode mode) The channel mode:UNRESTRICTED
orRESTRICTED
.moderatorArns
(String... moderatorArns) The ARNs of the channel moderators in the request.moderatorArns
(Collection<String> moderatorArns) The ARNs of the channel moderators in the request.The name of the channel.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The channel's privacy level:PUBLIC
orPRIVATE
.privacy
(ChannelPrivacy privacy) The channel's privacy level:PUBLIC
orPRIVATE
.tags
(Collection<Tag> tags) The tags for the creation request.tags
(Consumer<Tag.Builder>... tags) The tags for the creation request.The tags for the creation request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
appInstanceArn
The ARN of the channel request.
- Parameters:
appInstanceArn
- The ARN of the channel request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the channel.
- Parameters:
name
- The name of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The channel mode:
UNRESTRICTED
orRESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.- Parameters:
mode
- The channel mode:UNRESTRICTED
orRESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The channel mode:
UNRESTRICTED
orRESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.- Parameters:
mode
- The channel mode:UNRESTRICTED
orRESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privacy
The channel's privacy level:
PUBLIC
orPRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance
.- Parameters:
privacy
- The channel's privacy level:PUBLIC
orPRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privacy
The channel's privacy level:
PUBLIC
orPRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance
.- Parameters:
privacy
- The channel's privacy level:PUBLIC
orPRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The metadata of the creation request. Limited to 1KB and UTF-8.
- Parameters:
metadata
- The metadata of the creation request. Limited to 1KB and UTF-8.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
The client token for the request. An
Idempotency
token.- Parameters:
clientRequestToken
- The client token for the request. AnIdempotency
token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the creation request.
- Parameters:
tags
- The tags for the creation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the creation request.
- Parameters:
tags
- The tags for the creation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags for the creation request.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
chimeBearer
The ARN of the
AppInstanceUser
orAppInstanceBot
that makes the API call.- Parameters:
chimeBearer
- The ARN of theAppInstanceUser
orAppInstanceBot
that makes the API call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelId
The ID of the channel in the request.
- Parameters:
channelId
- The ID of the channel in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberArns
The ARNs of the channel members in the request.
- Parameters:
memberArns
- The ARNs of the channel members in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
memberArns
The ARNs of the channel members in the request.
- Parameters:
memberArns
- The ARNs of the channel members in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderatorArns
The ARNs of the channel moderators in the request.
- Parameters:
moderatorArns
- The ARNs of the channel moderators in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderatorArns
The ARNs of the channel moderators in the request.
- Parameters:
moderatorArns
- The ARNs of the channel moderators in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticChannelConfiguration
CreateChannelRequest.Builder elasticChannelConfiguration(ElasticChannelConfiguration elasticChannelConfiguration) The attributes required to configure and create an elastic channel. An elastic channel can support a maximum of 1-million users, excluding moderators.
- Parameters:
elasticChannelConfiguration
- The attributes required to configure and create an elastic channel. An elastic channel can support a maximum of 1-million users, excluding moderators.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticChannelConfiguration
default CreateChannelRequest.Builder elasticChannelConfiguration(Consumer<ElasticChannelConfiguration.Builder> elasticChannelConfiguration) The attributes required to configure and create an elastic channel. An elastic channel can support a maximum of 1-million users, excluding moderators.
This is a convenience method that creates an instance of theElasticChannelConfiguration.Builder
avoiding the need to create one manually viaElasticChannelConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticChannelConfiguration(ElasticChannelConfiguration)
.- Parameters:
elasticChannelConfiguration
- a consumer that will call methods onElasticChannelConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expirationSettings
Settings that control the interval after which the channel is automatically deleted.
- Parameters:
expirationSettings
- Settings that control the interval after which the channel is automatically deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expirationSettings
default CreateChannelRequest.Builder expirationSettings(Consumer<ExpirationSettings.Builder> expirationSettings) Settings that control the interval after which the channel is automatically deleted.
This is a convenience method that creates an instance of theExpirationSettings.Builder
avoiding the need to create one manually viaExpirationSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexpirationSettings(ExpirationSettings)
.- Parameters:
expirationSettings
- a consumer that will call methods onExpirationSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateChannelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateChannelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-