Class EmailSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.subscriptions.EmailSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EmailSubscriptionProps>
- Enclosing interface:
EmailSubscriptionProps
@Stability(Stable)
public static final class EmailSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<EmailSubscriptionProps>
A builder for
EmailSubscriptionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deadLetterQueue
(IQueue deadLetterQueue) Sets the value ofSubscriptionProps.getDeadLetterQueue()
filterPolicy
(Map<String, ? extends SubscriptionFilter> filterPolicy) Sets the value ofSubscriptionProps.getFilterPolicy()
Sets the value ofEmailSubscriptionProps.getJson()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
json
Sets the value ofEmailSubscriptionProps.getJson()
- Parameters:
json
- Indicates if the full notification JSON should be sent to the email address or just the message text.- Returns:
this
-
deadLetterQueue
Sets the value ofSubscriptionProps.getDeadLetterQueue()
- Parameters:
deadLetterQueue
- Queue to be used as dead letter queue. If not passed no dead letter queue is enabled.- Returns:
this
-
filterPolicy
@Stability(Stable) public EmailSubscriptionProps.Builder filterPolicy(Map<String, ? extends SubscriptionFilter> filterPolicy) Sets the value ofSubscriptionProps.getFilterPolicy()
- Parameters:
filterPolicy
- The filter policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EmailSubscriptionProps>
- Returns:
- a new instance of
EmailSubscriptionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-