Class SmsSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.subscriptions.SmsSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SmsSubscriptionProps>
- Enclosing interface:
SmsSubscriptionProps
@Stability(Stable)
public static final class SmsSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<SmsSubscriptionProps>
A builder for
SmsSubscriptionProps-
Constructor Summary
Constructors -
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()filterPolicyWithMessageBody(Map<String, ? extends FilterOrPolicy> filterPolicyWithMessageBody) Sets the value ofSubscriptionProps.getFilterPolicyWithMessageBody()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 SmsSubscriptionProps.Builder filterPolicy(Map<String, ? extends SubscriptionFilter> filterPolicy) Sets the value ofSubscriptionProps.getFilterPolicy()- Parameters:
filterPolicy- The filter policy.- Returns:
this
-
filterPolicyWithMessageBody
@Stability(Stable) public SmsSubscriptionProps.Builder filterPolicyWithMessageBody(Map<String, ? extends FilterOrPolicy> filterPolicyWithMessageBody) Sets the value ofSubscriptionProps.getFilterPolicyWithMessageBody()- Parameters:
filterPolicyWithMessageBody- The filter policy that is applied on the message body. To apply a filter policy to the message attributes, usefilterPolicy. A maximum of one offilterPolicyWithMessageBodyandfilterPolicymay be used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SmsSubscriptionProps>- Returns:
- a new instance of
SmsSubscriptionProps - Throws:
NullPointerException- if any required attribute was not provided
-