Class CfnEventSource.EventSourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnEventSource.EventSourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSource.EventSourceConfigurationProperty>
- Enclosing interface:
CfnEventSource.EventSourceConfigurationProperty
@Stability(Stable)
public static final class CfnEventSource.EventSourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSource.EventSourceConfigurationProperty>
A builder for
CfnEventSource.EventSourceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsServiceEventsConfiguration(IResolvable awsServiceEventsConfiguration) awsServiceEventsConfiguration(CfnEventSource.AwsServiceEventsConfigurationProperty awsServiceEventsConfiguration) build()Builds the configured instance.partnerEventsConfiguration(IResolvable partnerEventsConfiguration) partnerEventsConfiguration(CfnEventSource.PartnerEventsConfigurationProperty partnerEventsConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsServiceEventsConfiguration
@Stability(Stable) public CfnEventSource.EventSourceConfigurationProperty.Builder awsServiceEventsConfiguration(IResolvable awsServiceEventsConfiguration) Sets the value ofCfnEventSource.EventSourceConfigurationProperty.getAwsServiceEventsConfiguration()- Parameters:
awsServiceEventsConfiguration- Forward a single AWS service's events from the account's default event bus.- Returns:
this
-
awsServiceEventsConfiguration
@Stability(Stable) public CfnEventSource.EventSourceConfigurationProperty.Builder awsServiceEventsConfiguration(CfnEventSource.AwsServiceEventsConfigurationProperty awsServiceEventsConfiguration) Sets the value ofCfnEventSource.EventSourceConfigurationProperty.getAwsServiceEventsConfiguration()- Parameters:
awsServiceEventsConfiguration- Forward a single AWS service's events from the account's default event bus.- Returns:
this
-
partnerEventsConfiguration
@Stability(Stable) public CfnEventSource.EventSourceConfigurationProperty.Builder partnerEventsConfiguration(IResolvable partnerEventsConfiguration) - Parameters:
partnerEventsConfiguration- Forward a partner event source's events through a managed partner event bus.- Returns:
this
-
partnerEventsConfiguration
@Stability(Stable) public CfnEventSource.EventSourceConfigurationProperty.Builder partnerEventsConfiguration(CfnEventSource.PartnerEventsConfigurationProperty partnerEventsConfiguration) - Parameters:
partnerEventsConfiguration- Forward a partner event source's events through a managed partner event bus.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSource.EventSourceConfigurationProperty>- Returns:
- a new instance of
CfnEventSource.EventSourceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-