Class CfnEventSubscriptionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.neptune.mixins.CfnEventSubscriptionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
- Enclosing interface:
CfnEventSubscriptionMixinProps
@Stability(Stable)
public static final class CfnEventSubscriptionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSubscriptionMixinProps>
A builder for
CfnEventSubscriptionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.getEventCategories()snsTopicArn(String snsTopicArn) Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()Sets the value ofCfnEventSubscriptionMixinProps.getSourceIds()sourceType(String sourceType) Sets the value ofCfnEventSubscriptionMixinProps.getSourceType()subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.getSubscriptionName()Sets the value ofCfnEventSubscriptionMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.- Returns:
this
-
enabled
Sets the value ofCfnEventSubscriptionMixinProps.getEnabled()- Parameters:
enabled- A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.- Returns:
this
-
eventCategories
@Stability(Stable) public CfnEventSubscriptionMixinProps.Builder eventCategories(List<String> eventCategories) Sets the value ofCfnEventSubscriptionMixinProps.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
-
snsTopicArn
Sets the value ofCfnEventSubscriptionMixinProps.getSnsTopicArn()- Parameters:
snsTopicArn- The topic ARN of the event notification subscription.- Returns:
this
-
sourceIds
Sets the value ofCfnEventSubscriptionMixinProps.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 ofCfnEventSubscriptionMixinProps.getSourceType()- Parameters:
sourceType- The source type for the event notification subscription.- Returns:
this
-
subscriptionName
@Stability(Stable) public CfnEventSubscriptionMixinProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnEventSubscriptionMixinProps.getSubscriptionName()- Parameters:
subscriptionName- The name of the subscription.- Returns:
this
-
tags
Sets the value ofCfnEventSubscriptionMixinProps.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<CfnEventSubscriptionMixinProps>- Returns:
- a new instance of
CfnEventSubscriptionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-