Interface CustomActionAttachment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomActionAttachment.Builder,,CustomActionAttachment> SdkBuilder<CustomActionAttachment.Builder,,CustomActionAttachment> SdkPojo
- Enclosing class:
CustomActionAttachment
@Mutable
@NotThreadSafe
public static interface CustomActionAttachment.Builder
extends SdkPojo, CopyableBuilder<CustomActionAttachment.Builder,CustomActionAttachment>
-
Method Summary
Modifier and TypeMethodDescriptionbuttonText(String buttonText) The text of the button that appears on the notification.criteria(Collection<CustomActionAttachmentCriteria> criteria) The criteria for when a button should be shown based on values in the notification.criteria(Consumer<CustomActionAttachmentCriteria.Builder>... criteria) The criteria for when a button should be shown based on values in the notification.criteria(CustomActionAttachmentCriteria... criteria) The criteria for when a button should be shown based on values in the notification.notificationType(String notificationType) The type of notification that the custom action should be attached to.The variables to extract from 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
-
notificationType
The type of notification that the custom action should be attached to.
- Parameters:
notificationType- The type of notification that the custom action should be attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
buttonText
The text of the button that appears on the notification.
- Parameters:
buttonText- The text of the button that appears on the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
The criteria for when a button should be shown based on values in the notification.
- Parameters:
criteria- The criteria for when a button should be shown based on values in the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
The criteria for when a button should be shown based on values in the notification.
- Parameters:
criteria- The criteria for when a button should be shown based on values in the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
criteria
CustomActionAttachment.Builder criteria(Consumer<CustomActionAttachmentCriteria.Builder>... criteria) The criteria for when a button should be shown based on values in the notification.
This is a convenience method that creates an instance of theCustomActionAttachmentCriteria.Builderavoiding the need to create one manually viaCustomActionAttachmentCriteria.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocriteria(List<CustomActionAttachmentCriteria>).- Parameters:
criteria- a consumer that will call methods onCustomActionAttachmentCriteria.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
variables
The variables to extract from the notification.
- Parameters:
variables- The variables to extract from the notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-