Interface CustomActionAttachment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomActionAttachment.Builder,CustomActionAttachment>,SdkBuilder<CustomActionAttachment.Builder,CustomActionAttachment>,SdkPojo
- Enclosing class:
- CustomActionAttachment
public static interface CustomActionAttachment.Builder extends SdkPojo, CopyableBuilder<CustomActionAttachment.Builder,CustomActionAttachment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomActionAttachment.BuilderbuttonText(String buttonText)The text of the button that appears on the notification.CustomActionAttachment.Buildercriteria(Collection<CustomActionAttachmentCriteria> criteria)The criteria for when a button should be shown based on values in the notification.CustomActionAttachment.Buildercriteria(Consumer<CustomActionAttachmentCriteria.Builder>... criteria)The criteria for when a button should be shown based on values in the notification.CustomActionAttachment.Buildercriteria(CustomActionAttachmentCriteria... criteria)The criteria for when a button should be shown based on values in the notification.CustomActionAttachment.BuildernotificationType(String notificationType)The type of notification that the custom action should be attached to.CustomActionAttachment.Buildervariables(Map<String,String> variables)The variables to extract from the notification.-
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 Detail
-
notificationType
CustomActionAttachment.Builder notificationType(String 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
CustomActionAttachment.Builder buttonText(String 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
CustomActionAttachment.Builder criteria(Collection<CustomActionAttachmentCriteria> 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(CustomActionAttachmentCriteria... 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 to#criteria(List.) - 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:
#criteria(java.util.Collection)
-
variables
CustomActionAttachment.Builder variables(Map<String,String> 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.
-
-