Class CfnEventSubscriptionProps.Builder
java.lang.Object
software.amazon.awscdk.services.neptune.CfnEventSubscriptionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionProps>
- Enclosing interface:
CfnEventSubscriptionProps
@Stability(Stable)
public static final class CfnEventSubscriptionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionProps>
A builder for
CfnEventSubscriptionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSubscriptionProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSubscriptionProps.getEnabled()eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()snsTopicArn(String snsTopicArn) Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()Sets the value ofCfnEventSubscriptionProps.getSourceIds()sourceType(String sourceType) Sets the value ofCfnEventSubscriptionProps.getSourceType()subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()Sets the value ofCfnEventSubscriptionProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snsTopicArn
Sets the value ofCfnEventSubscriptionProps.getSnsTopicArn()- Parameters:
snsTopicArn- The topic ARN of the event notification subscription. This parameter is required.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionProps.getEnabled()- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionProps.getEventCategories()- Parameters:
eventCategories- A list of event categories for a SourceType that you want to subscribe to. You can see a list of the categories for a given SourceType in the Events topic in the Amazon Neptune User Guide or by using the DescribeEventCategories action.- Returns:
this
-
sourceIds
Sets the value ofCfnEventSubscriptionProps.getSourceIds()- Parameters:
sourceIds- The list of identifiers of the event sources for which events will be returned. If not specified, then all sources are included in the response. An identifier must begin with a letter and must contain only ASCII letters, digits, and hyphens; it cannot end with a hyphen or contain two consecutive hyphens.- Returns:
this
-
sourceType
Sets the value ofCfnEventSubscriptionProps.getSourceType()- Parameters:
sourceType- The source type for the event notification subscription.- Returns:
this
-
subscriptionName
@Stability(Stable) public CfnEventSubscriptionProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionProps.getSubscriptionName()- Parameters:
subscriptionName- The name of the subscription.- Returns:
this
-
tags
Sets the value ofCfnEventSubscriptionProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSubscriptionProps>- Returns:
- a new instance of
CfnEventSubscriptionProps - Throws:
NullPointerException- if any required attribute was not provided
-