Interface WebNotificationContent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<WebNotificationContent.Builder,,WebNotificationContent> SdkBuilder<WebNotificationContent.Builder,,WebNotificationContent> SdkPojo
- Enclosing class:
WebNotificationContent
@Mutable
@NotThreadSafe
public static interface WebNotificationContent.Builder
extends SdkPojo, CopyableBuilder<WebNotificationContent.Builder,WebNotificationContent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault WebNotificationContent.Builderattributes(Consumer<ContentAttributes.Builder> attributes) Optional attributes used to populate the notification content, such as recommender configuration for personalized content.attributes(ContentAttributes attributes) Optional attributes used to populate the notification content, such as recommender configuration for personalized content.The type of web notification to send.type(NotificationType type) The type of web notification to send.The Amazon Resource Name (ARN) of the view to render for the notification.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, sdkFieldNameToField, sdkFields
-
Method Details
-
type
The type of web notification to send.
- Parameters:
type- The type of web notification to send.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of web notification to send.
- Parameters:
type- The type of web notification to send.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
viewArn
The Amazon Resource Name (ARN) of the view to render for the notification.
- Parameters:
viewArn- The Amazon Resource Name (ARN) of the view to render for the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Optional attributes used to populate the notification content, such as recommender configuration for personalized content.
- Parameters:
attributes- Optional attributes used to populate the notification content, such as recommender configuration for personalized content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Optional attributes used to populate the notification content, such as recommender configuration for personalized content.
This is a convenience method that creates an instance of theContentAttributes.Builderavoiding the need to create one manually viaContentAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributes(ContentAttributes).- Parameters:
attributes- a consumer that will call methods onContentAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-