Class CfnComponentVersion.LambdaEventSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaEventSourceProperty.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnComponentVersion.LambdaEventSourceProperty>
- Enclosing interface:
 - CfnComponentVersion.LambdaEventSourceProperty
 
@Stability(Stable)
public static final class CfnComponentVersion.LambdaEventSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentVersion.LambdaEventSourceProperty>
A builder for 
CfnComponentVersion.LambdaEventSourceProperty- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnComponentVersion.LambdaEventSourceProperty.getTopic()Sets the value ofCfnComponentVersion.LambdaEventSourceProperty.getType() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
topic
Sets the value ofCfnComponentVersion.LambdaEventSourceProperty.getTopic()- Parameters:
 topic- The topic to which to subscribe to receive event messages.- Returns:
 this
 - 
type
Sets the value ofCfnComponentVersion.LambdaEventSourceProperty.getType()- Parameters:
 type- The type of event source. Choose from the following options:.PUB_SUB– Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+and#) in the event source topic.IOT_CORE– Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+and#) in the event source topic.
- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnComponentVersion.LambdaEventSourceProperty>- Returns:
 - a new instance of 
CfnComponentVersion.LambdaEventSourceProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -