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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AppInstanceRetentionSettings.BuilderchannelRetentionSettings(Consumer<ChannelRetentionSettings.Builder> channelRetentionSettings)The length of time in days to retain the messages in a channel.AppInstanceRetentionSettings.BuilderchannelRetentionSettings(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 Detail
-
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.Builderavoiding the need to create one manually viaChannelRetentionSettings.builder().When the
Consumercompletes,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:
channelRetentionSettings(ChannelRetentionSettings)
-
-