Interface ChannelMembershipPreferences.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ChannelMembershipPreferences.Builder,
,ChannelMembershipPreferences> SdkBuilder<ChannelMembershipPreferences.Builder,
,ChannelMembershipPreferences> SdkPojo
- Enclosing class:
ChannelMembershipPreferences
@Mutable
@NotThreadSafe
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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaPushNotificationPreferences.builder()
.When the
Consumer
completes,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:
-