Interface ChannelBan.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ChannelBan.Builder,
,ChannelBan> SdkBuilder<ChannelBan.Builder,
,ChannelBan> SdkPojo
- Enclosing class:
ChannelBan
public static interface ChannelBan.Builder
extends SdkPojo, CopyableBuilder<ChannelBan.Builder,ChannelBan>
-
Method Summary
Modifier and TypeMethodDescriptionchannelArn
(String channelArn) The ARN of the channel from which a member is being banned.default ChannelBan.Builder
createdBy
(Consumer<Identity.Builder> createdBy) TheAppInstanceUser
who created the ban.TheAppInstanceUser
who created the ban.createdTimestamp
(Instant createdTimestamp) The time at which the ban was created.default ChannelBan.Builder
member
(Consumer<Identity.Builder> member) The member being banned from the channel.The member being banned from the channel.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
-
member
The member being banned from the channel.
- Parameters:
member
- The member being banned from the channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
member
The member being banned from the channel.
This is a convenience method that creates an instance of theIdentity.Builder
avoiding the need to create one manually viaIdentity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomember(Identity)
.- Parameters:
member
- 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:
-
channelArn
The ARN of the channel from which a member is being banned.
- Parameters:
channelArn
- The ARN of the channel from which a member is being banned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTimestamp
The time at which the ban was created.
- Parameters:
createdTimestamp
- The time at which the ban was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
The
AppInstanceUser
who created the ban.- Parameters:
createdBy
- TheAppInstanceUser
who created the ban.- 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 ban.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:
-