Interface ChannelMembershipPreferences.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ChannelMembershipPreferences.Builder,,ChannelMembershipPreferences> SdkBuilder<ChannelMembershipPreferences.Builder,,ChannelMembershipPreferences> SdkPojo
- Enclosing class:
ChannelMembershipPreferences
public static interface ChannelMembershipPreferences.Builder
extends SdkPojo, CopyableBuilder<ChannelMembershipPreferences.Builder,ChannelMembershipPreferences>
-
Method Summary
Modifier and TypeMethodDescriptionpushNotifications(Consumer<PushNotificationPreferences.Builder> pushNotifications) The push notification configuration of a message.pushNotifications(PushNotificationPreferences pushNotifications) The push notification configuration of a message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
pushNotifications
ChannelMembershipPreferences.Builder pushNotifications(PushNotificationPreferences pushNotifications) The push notification configuration of a message.
- Parameters:
pushNotifications- The push notification configuration of a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pushNotifications
default ChannelMembershipPreferences.Builder pushNotifications(Consumer<PushNotificationPreferences.Builder> pushNotifications) The push notification configuration of a message.
This is a convenience method that creates an instance of thePushNotificationPreferences.Builderavoiding the need to create one manually viaPushNotificationPreferences.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topushNotifications(PushNotificationPreferences).- Parameters:
pushNotifications- a consumer that will call methods onPushNotificationPreferences.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-