Interface Channel.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Channel.Builder,Channel>,SdkBuilder<Channel.Builder,Channel>,SdkPojo
- Enclosing class:
- Channel
public static interface Channel.Builder extends SdkPojo, CopyableBuilder<Channel.Builder,Channel>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Channel.BuilderchannelArn(String channelArn)The ARN of the channel.default Channel.BuildercreatedBy(Consumer<Identity.Builder> createdBy)TheAppInstanceUserwho created the channel.Channel.BuildercreatedBy(Identity createdBy)TheAppInstanceUserwho created the channel.Channel.BuildercreatedTimestamp(Instant createdTimestamp)The time at which theAppInstanceUsercreated the channel.Channel.BuilderlastMessageTimestamp(Instant lastMessageTimestamp)The time at which a member sent the last message in the channel.Channel.BuilderlastUpdatedTimestamp(Instant lastUpdatedTimestamp)The time at which a channel was last updated.Channel.Buildermetadata(String metadata)The channel's metadata.Channel.Buildermode(String mode)The mode of the channel.Channel.Buildermode(ChannelMode mode)The mode of the channel.Channel.Buildername(String name)The name of the channel.Channel.Builderprivacy(String privacy)The channel's privacy setting.Channel.Builderprivacy(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 Detail
-
name
Channel.Builder name(String 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
Channel.Builder channelArn(String 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
Channel.Builder mode(String 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:
ChannelMode,ChannelMode
-
mode
Channel.Builder mode(ChannelMode 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:
ChannelMode,ChannelMode
-
privacy
Channel.Builder privacy(String 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:
ChannelPrivacy,ChannelPrivacy
-
privacy
Channel.Builder privacy(ChannelPrivacy 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:
ChannelPrivacy,ChannelPrivacy
-
metadata
Channel.Builder metadata(String 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
Channel.Builder createdBy(Identity createdBy)
The
AppInstanceUserwho created the channel.- Parameters:
createdBy- TheAppInstanceUserwho created the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
default Channel.Builder createdBy(Consumer<Identity.Builder> createdBy)
The
This is a convenience method that creates an instance of theAppInstanceUserwho created the channel.Identity.Builderavoiding the need to create one manually viaIdentity.builder().When the
Consumercompletes,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:
createdBy(Identity)
-
createdTimestamp
Channel.Builder createdTimestamp(Instant createdTimestamp)
The time at which the
AppInstanceUsercreated the channel.- Parameters:
createdTimestamp- The time at which theAppInstanceUsercreated the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastMessageTimestamp
Channel.Builder lastMessageTimestamp(Instant 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
Channel.Builder lastUpdatedTimestamp(Instant 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.
-
-