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