Class DeliveryPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.sns.DeliveryPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeliveryPolicy>
- Enclosing interface:
DeliveryPolicy
@Stability(Stable)
public static final class DeliveryPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<DeliveryPolicy>
A builder for
DeliveryPolicy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.healthyRetryPolicy(HealthyRetryPolicy healthyRetryPolicy) Sets the value ofDeliveryPolicy.getHealthyRetryPolicy()requestPolicy(RequestPolicy requestPolicy) Sets the value ofDeliveryPolicy.getRequestPolicy()throttlePolicy(ThrottlePolicy throttlePolicy) Sets the value ofDeliveryPolicy.getThrottlePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
healthyRetryPolicy
@Stability(Stable) public DeliveryPolicy.Builder healthyRetryPolicy(HealthyRetryPolicy healthyRetryPolicy) Sets the value ofDeliveryPolicy.getHealthyRetryPolicy()- Parameters:
healthyRetryPolicy- The retry policy of the delivery of SNS messages to HTTP/S endpoints.- Returns:
this
-
requestPolicy
Sets the value ofDeliveryPolicy.getRequestPolicy()- Parameters:
requestPolicy- The request of the content sent in AWS SNS HTTP/S requests.- Returns:
this
-
throttlePolicy
Sets the value ofDeliveryPolicy.getThrottlePolicy()- Parameters:
throttlePolicy- The throttling policy of the delivery of SNS messages to HTTP/S endpoints.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeliveryPolicy>- Returns:
- a new instance of
DeliveryPolicy - Throws:
NullPointerException- if any required attribute was not provided
-