@Stability(value=Stable) public static final class SubscriptionProps.Builder extends Object implements software.amazon.jsii.Builder<SubscriptionProps>
SubscriptionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionProps |
build()
Builds the configured instance.
|
SubscriptionProps.Builder |
deadLetterQueue(IQueue deadLetterQueue)
Sets the value of
SubscriptionOptions.getDeadLetterQueue() |
SubscriptionProps.Builder |
endpoint(String endpoint)
Sets the value of
SubscriptionOptions.getEndpoint() |
SubscriptionProps.Builder |
filterPolicy(Map<String,? extends SubscriptionFilter> filterPolicy)
Sets the value of
SubscriptionOptions.getFilterPolicy() |
SubscriptionProps.Builder |
protocol(SubscriptionProtocol protocol)
Sets the value of
SubscriptionOptions.getProtocol() |
SubscriptionProps.Builder |
rawMessageDelivery(Boolean rawMessageDelivery)
Sets the value of
SubscriptionOptions.getRawMessageDelivery() |
SubscriptionProps.Builder |
region(String region)
Sets the value of
SubscriptionOptions.getRegion() |
SubscriptionProps.Builder |
topic(ITopic topic)
Sets the value of
SubscriptionProps.getTopic() |
@Stability(value=Stable) public SubscriptionProps.Builder topic(ITopic topic)
SubscriptionProps.getTopic()topic - The topic to subscribe to. This parameter is required.this@Stability(value=Stable) public SubscriptionProps.Builder endpoint(String endpoint)
SubscriptionOptions.getEndpoint()endpoint - The subscription endpoint. This parameter is required.
The meaning of this value depends on the value for 'protocol'.this@Stability(value=Stable) public SubscriptionProps.Builder protocol(SubscriptionProtocol protocol)
SubscriptionOptions.getProtocol()protocol - What type of subscription to add. This parameter is required.this@Stability(value=Stable) public SubscriptionProps.Builder deadLetterQueue(IQueue deadLetterQueue)
SubscriptionOptions.getDeadLetterQueue()deadLetterQueue - Queue to be used as dead letter queue.
If not passed no dead letter queue is enabled.this@Stability(value=Stable) public SubscriptionProps.Builder filterPolicy(Map<String,? extends SubscriptionFilter> filterPolicy)
SubscriptionOptions.getFilterPolicy()filterPolicy - The filter policy.this@Stability(value=Stable) public SubscriptionProps.Builder rawMessageDelivery(Boolean rawMessageDelivery)
SubscriptionOptions.getRawMessageDelivery()rawMessageDelivery - true if raw message delivery is enabled for the subscription.
Raw messages are free of JSON formatting and can be
sent to HTTP/S and Amazon SQS endpoints. For more information, see GetSubscriptionAttributes in the Amazon Simple
Notification Service API Reference.this@Stability(value=Stable) public SubscriptionProps.Builder region(String region)
SubscriptionOptions.getRegion()region - The region where the topic resides, in the case of cross-region subscriptions.this@Stability(value=Stable) public SubscriptionProps build()
build in interface software.amazon.jsii.Builder<SubscriptionProps>SubscriptionPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.