Class UrlSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.subscriptions.UrlSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UrlSubscriptionProps>
- Enclosing interface:
- UrlSubscriptionProps
@Stability(Stable)
public static final class UrlSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<UrlSubscriptionProps>
A builder for
UrlSubscriptionProps-
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()protocol(SubscriptionProtocol protocol) Sets the value ofUrlSubscriptionProps.getProtocol()rawMessageDelivery(Boolean rawMessageDelivery) Sets the value ofUrlSubscriptionProps.getRawMessageDelivery()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protocol
Sets the value ofUrlSubscriptionProps.getProtocol()- Parameters:
protocol- The subscription's protocol.- Returns:
this
-
rawMessageDelivery
@Stability(Stable) public UrlSubscriptionProps.Builder rawMessageDelivery(Boolean rawMessageDelivery) Sets the value ofUrlSubscriptionProps.getRawMessageDelivery()- Parameters:
rawMessageDelivery- The message to the queue is the same as it was sent to the topic. If false, the message will be wrapped in an SNS envelope.- 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 UrlSubscriptionProps.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:
buildin interfacesoftware.amazon.jsii.Builder<UrlSubscriptionProps>- Returns:
- a new instance of
UrlSubscriptionProps - Throws:
NullPointerException- if any required attribute was not provided
-