Interface Channel.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Channel.Builder,
,Channel> SdkBuilder<Channel.Builder,
,Channel> SdkPojo
- Enclosing class:
Channel
-
Method Summary
Modifier and TypeMethodDescriptionchannelArn
(String channelArn) The ARN of the channel.default Channel.Builder
createdBy
(Consumer<Identity.Builder> createdBy) TheAppInstanceUser
who created the channel.TheAppInstanceUser
who created the channel.createdTimestamp
(Instant createdTimestamp) The time at which theAppInstanceUser
created the channel.lastMessageTimestamp
(Instant lastMessageTimestamp) The time at which a member sent the last message in the channel.lastUpdatedTimestamp
(Instant lastUpdatedTimestamp) The time at which a channel was last updated.The channel's metadata.The mode of the channel.mode
(ChannelMode mode) The mode of the channel.The name of the channel.The channel's privacy setting.privacy
(ChannelPrivacy privacy) The channel's privacy setting.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
-
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.
-
channelArn
The ARN of the channel.
- Parameters:
channelArn
- The ARN of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mode
The mode of the channel.
- Parameters:
mode
- The mode of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mode
The mode of the channel.
- Parameters:
mode
- The mode of the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privacy
The channel's privacy setting.
- Parameters:
privacy
- The channel's privacy setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privacy
The channel's privacy setting.
- Parameters:
privacy
- The channel's privacy setting.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
The channel's metadata.
- Parameters:
metadata
- The channel's metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The
AppInstanceUser
who created the channel.- Parameters:
createdBy
- TheAppInstanceUser
who created the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The
This is a convenience method that creates an instance of theAppInstanceUser
who created the channel.Identity.Builder
avoiding the need to create one manually viaIdentity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreatedBy(Identity)
.- Parameters:
createdBy
- a consumer that will call methods onIdentity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTimestamp
The time at which the
AppInstanceUser
created the channel.- Parameters:
createdTimestamp
- The time at which theAppInstanceUser
created the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastMessageTimestamp
The time at which a member sent the last message in the channel.
- Parameters:
lastMessageTimestamp
- The time at which a member sent the last message in the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTimestamp
The time at which a channel was last updated.
- Parameters:
lastUpdatedTimestamp
- The time at which a channel was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-