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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ChannelBan.BuilderchannelArn(String channelArn)The ARN of the channel from which a member is being banned.default ChannelBan.BuildercreatedBy(Consumer<Identity.Builder> createdBy)TheAppInstanceUserwho created the ban.ChannelBan.BuildercreatedBy(Identity createdBy)TheAppInstanceUserwho created the ban.ChannelBan.BuildercreatedTimestamp(Instant createdTimestamp)The time at which the ban was created.default ChannelBan.Buildermember(Consumer<Identity.Builder> member)The member being banned from the channel.ChannelBan.Buildermember(Identity member)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 Detail
-
member
ChannelBan.Builder member(Identity 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
default ChannelBan.Builder member(Consumer<Identity.Builder> member)
The member being banned from the channel.
This is a convenience method that creates an instance of theIdentity.Builderavoiding the need to create one manually viaIdentity.builder().When the
Consumercompletes,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:
member(Identity)
-
channelArn
ChannelBan.Builder channelArn(String 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
ChannelBan.Builder createdTimestamp(Instant 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
ChannelBan.Builder createdBy(Identity createdBy)
The
AppInstanceUserwho created the ban.- Parameters:
createdBy- TheAppInstanceUserwho created the ban.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
default ChannelBan.Builder createdBy(Consumer<Identity.Builder> createdBy)
The
This is a convenience method that creates an instance of theAppInstanceUserwho created the ban.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)
-
-