Class CfnTopic.SubscriptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sns.CfnTopic.SubscriptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopic.SubscriptionProperty>
- Enclosing interface:
CfnTopic.SubscriptionProperty
@Stability(Stable)
public static final class CfnTopic.SubscriptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopic.SubscriptionProperty>
A builder for
CfnTopic.SubscriptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTopic.SubscriptionProperty.getEndpoint()Sets the value ofCfnTopic.SubscriptionProperty.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpoint
Sets the value ofCfnTopic.SubscriptionProperty.getEndpoint()- Parameters:
endpoint- The endpoint that receives notifications from the Amazon topic. This parameter is required. The endpoint value depends on the protocol that you specify. For more information, see theEndpointparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
protocol
Sets the value ofCfnTopic.SubscriptionProperty.getProtocol()- Parameters:
protocol- The subscription's protocol. This parameter is required. For more information, see theProtocolparameter of the[Subscribe](https://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)action in the Amazon API Reference .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopic.SubscriptionProperty>- Returns:
- a new instance of
CfnTopic.SubscriptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-