Class CfnEventSourceMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnEventSourceMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourceMixinProps>
- Enclosing interface:
CfnEventSourceMixinProps
@Stability(Stable)
public static final class CfnEventSourceMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourceMixinProps>
A builder for
CfnEventSourceMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnEventSourceMixinProps.getConfiguration()configuration(IResolvable configuration) Sets the value ofCfnEventSourceMixinProps.getConfiguration()description(String description) Sets the value ofCfnEventSourceMixinProps.getDescription()eventBusArn(String eventBusArn) Sets the value ofCfnEventSourceMixinProps.getEventBusArn()Sets the value ofCfnEventSourceMixinProps.getName()Sets the value ofCfnEventSourceMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configuration
Sets the value ofCfnEventSourceMixinProps.getConfiguration()- Parameters:
configuration- Event source configuration. Exactly one of the two variants must be set.- Returns:
this
-
configuration
@Stability(Stable) public CfnEventSourceMixinProps.Builder configuration(CfnEventSourcePropsMixin.EventSourceConfigurationProperty configuration) Sets the value ofCfnEventSourceMixinProps.getConfiguration()- Parameters:
configuration- Event source configuration. Exactly one of the two variants must be set.- Returns:
this
-
description
Sets the value ofCfnEventSourceMixinProps.getDescription()- Parameters:
description- A description of the event source. Control characters and Unicode line separators are not allowed.- Returns:
this
-
eventBusArn
Sets the value ofCfnEventSourceMixinProps.getEventBusArn()- Parameters:
eventBusArn- The ARN of the custom event bus the event source forwards onto.- Returns:
this
-
name
Sets the value ofCfnEventSourceMixinProps.getName()- Parameters:
name- The name of the event source. The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. Names cannot begin with the reserved aws. prefix.- Returns:
this
-
tags
Sets the value ofCfnEventSourceMixinProps.getTags()- Parameters:
tags- The tags assigned to the event source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSourceMixinProps>- Returns:
- a new instance of
CfnEventSourceMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-