Interface AppInstanceRetentionSettings.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AppInstanceRetentionSettings.Builder,
,AppInstanceRetentionSettings> SdkBuilder<AppInstanceRetentionSettings.Builder,
,AppInstanceRetentionSettings> SdkPojo
- Enclosing class:
AppInstanceRetentionSettings
public static interface AppInstanceRetentionSettings.Builder
extends SdkPojo, CopyableBuilder<AppInstanceRetentionSettings.Builder,AppInstanceRetentionSettings>
-
Method Summary
Modifier and TypeMethodDescriptionchannelRetentionSettings
(Consumer<ChannelRetentionSettings.Builder> channelRetentionSettings) The length of time in days to retain the messages in a channel.channelRetentionSettings
(ChannelRetentionSettings channelRetentionSettings) The length of time in days to retain the messages in a 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
-
channelRetentionSettings
AppInstanceRetentionSettings.Builder channelRetentionSettings(ChannelRetentionSettings channelRetentionSettings) The length of time in days to retain the messages in a channel.
- Parameters:
channelRetentionSettings
- The length of time in days to retain the messages in a channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channelRetentionSettings
default AppInstanceRetentionSettings.Builder channelRetentionSettings(Consumer<ChannelRetentionSettings.Builder> channelRetentionSettings) The length of time in days to retain the messages in a channel.
This is a convenience method that creates an instance of theChannelRetentionSettings.Builder
avoiding the need to create one manually viaChannelRetentionSettings.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochannelRetentionSettings(ChannelRetentionSettings)
.- Parameters:
channelRetentionSettings
- a consumer that will call methods onChannelRetentionSettings.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-