Class CfnPipeline.ActivityProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnPipeline.ActivityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.ActivityProperty>
- Enclosing interface:
- CfnPipeline.ActivityProperty
@Stability(Stable)
public static final class CfnPipeline.ActivityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.ActivityProperty>
A builder for
CfnPipeline.ActivityProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttributes
(IResolvable addAttributes) Sets the value ofCfnPipeline.ActivityProperty.getAddAttributes()
addAttributes
(CfnPipeline.AddAttributesProperty addAttributes) Sets the value ofCfnPipeline.ActivityProperty.getAddAttributes()
build()
Builds the configured instance.channel
(IResolvable channel) Sets the value ofCfnPipeline.ActivityProperty.getChannel()
channel
(CfnPipeline.ChannelProperty channel) Sets the value ofCfnPipeline.ActivityProperty.getChannel()
datastore
(IResolvable datastore) Sets the value ofCfnPipeline.ActivityProperty.getDatastore()
datastore
(CfnPipeline.DatastoreProperty datastore) Sets the value ofCfnPipeline.ActivityProperty.getDatastore()
deviceRegistryEnrich
(IResolvable deviceRegistryEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceRegistryEnrich()
deviceRegistryEnrich
(CfnPipeline.DeviceRegistryEnrichProperty deviceRegistryEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceRegistryEnrich()
deviceShadowEnrich
(IResolvable deviceShadowEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceShadowEnrich()
deviceShadowEnrich
(CfnPipeline.DeviceShadowEnrichProperty deviceShadowEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceShadowEnrich()
filter
(IResolvable filter) Sets the value ofCfnPipeline.ActivityProperty.getFilter()
filter
(CfnPipeline.FilterProperty filter) Sets the value ofCfnPipeline.ActivityProperty.getFilter()
lambda
(IResolvable lambda) Sets the value ofCfnPipeline.ActivityProperty.getLambda()
lambda
(CfnPipeline.LambdaProperty lambda) Sets the value ofCfnPipeline.ActivityProperty.getLambda()
math
(IResolvable math) Sets the value ofCfnPipeline.ActivityProperty.getMath()
math
(CfnPipeline.MathProperty math) Sets the value ofCfnPipeline.ActivityProperty.getMath()
removeAttributes
(IResolvable removeAttributes) Sets the value ofCfnPipeline.ActivityProperty.getRemoveAttributes()
removeAttributes
(CfnPipeline.RemoveAttributesProperty removeAttributes) Sets the value ofCfnPipeline.ActivityProperty.getRemoveAttributes()
selectAttributes
(IResolvable selectAttributes) Sets the value ofCfnPipeline.ActivityProperty.getSelectAttributes()
selectAttributes
(CfnPipeline.SelectAttributesProperty selectAttributes) Sets the value ofCfnPipeline.ActivityProperty.getSelectAttributes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder addAttributes(IResolvable addAttributes) Sets the value ofCfnPipeline.ActivityProperty.getAddAttributes()
- Parameters:
addAttributes
- Adds other attributes based on existing attributes in the message.- Returns:
this
-
addAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder addAttributes(CfnPipeline.AddAttributesProperty addAttributes) Sets the value ofCfnPipeline.ActivityProperty.getAddAttributes()
- Parameters:
addAttributes
- Adds other attributes based on existing attributes in the message.- Returns:
this
-
channel
Sets the value ofCfnPipeline.ActivityProperty.getChannel()
- Parameters:
channel
- Determines the source of the messages to be processed.- Returns:
this
-
channel
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder channel(CfnPipeline.ChannelProperty channel) Sets the value ofCfnPipeline.ActivityProperty.getChannel()
- Parameters:
channel
- Determines the source of the messages to be processed.- Returns:
this
-
datastore
Sets the value ofCfnPipeline.ActivityProperty.getDatastore()
- Parameters:
datastore
- Specifies where to store the processed message data.- Returns:
this
-
datastore
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder datastore(CfnPipeline.DatastoreProperty datastore) Sets the value ofCfnPipeline.ActivityProperty.getDatastore()
- Parameters:
datastore
- Specifies where to store the processed message data.- Returns:
this
-
deviceRegistryEnrich
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder deviceRegistryEnrich(IResolvable deviceRegistryEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceRegistryEnrich()
- Parameters:
deviceRegistryEnrich
- Adds data from the AWS IoT device registry to your message.- Returns:
this
-
deviceRegistryEnrich
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder deviceRegistryEnrich(CfnPipeline.DeviceRegistryEnrichProperty deviceRegistryEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceRegistryEnrich()
- Parameters:
deviceRegistryEnrich
- Adds data from the AWS IoT device registry to your message.- Returns:
this
-
deviceShadowEnrich
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder deviceShadowEnrich(IResolvable deviceShadowEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceShadowEnrich()
- Parameters:
deviceShadowEnrich
- Adds information from the AWS IoT Device Shadows service to a message.- Returns:
this
-
deviceShadowEnrich
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder deviceShadowEnrich(CfnPipeline.DeviceShadowEnrichProperty deviceShadowEnrich) Sets the value ofCfnPipeline.ActivityProperty.getDeviceShadowEnrich()
- Parameters:
deviceShadowEnrich
- Adds information from the AWS IoT Device Shadows service to a message.- Returns:
this
-
filter
Sets the value ofCfnPipeline.ActivityProperty.getFilter()
- Parameters:
filter
- Filters a message based on its attributes.- Returns:
this
-
filter
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder filter(CfnPipeline.FilterProperty filter) Sets the value ofCfnPipeline.ActivityProperty.getFilter()
- Parameters:
filter
- Filters a message based on its attributes.- Returns:
this
-
lambda
Sets the value ofCfnPipeline.ActivityProperty.getLambda()
- Parameters:
lambda
- Runs a Lambda function to modify the message.- Returns:
this
-
lambda
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder lambda(CfnPipeline.LambdaProperty lambda) Sets the value ofCfnPipeline.ActivityProperty.getLambda()
- Parameters:
lambda
- Runs a Lambda function to modify the message.- Returns:
this
-
math
Sets the value ofCfnPipeline.ActivityProperty.getMath()
- Parameters:
math
- Computes an arithmetic expression using the message's attributes and adds it to the message.- Returns:
this
-
math
Sets the value ofCfnPipeline.ActivityProperty.getMath()
- Parameters:
math
- Computes an arithmetic expression using the message's attributes and adds it to the message.- Returns:
this
-
removeAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder removeAttributes(IResolvable removeAttributes) Sets the value ofCfnPipeline.ActivityProperty.getRemoveAttributes()
- Parameters:
removeAttributes
- Removes attributes from a message.- Returns:
this
-
removeAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder removeAttributes(CfnPipeline.RemoveAttributesProperty removeAttributes) Sets the value ofCfnPipeline.ActivityProperty.getRemoveAttributes()
- Parameters:
removeAttributes
- Removes attributes from a message.- Returns:
this
-
selectAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder selectAttributes(IResolvable selectAttributes) Sets the value ofCfnPipeline.ActivityProperty.getSelectAttributes()
- Parameters:
selectAttributes
- Creates a new message using only the specified attributes from the original message.- Returns:
this
-
selectAttributes
@Stability(Stable) public CfnPipeline.ActivityProperty.Builder selectAttributes(CfnPipeline.SelectAttributesProperty selectAttributes) Sets the value ofCfnPipeline.ActivityProperty.getSelectAttributes()
- Parameters:
selectAttributes
- Creates a new message using only the specified attributes from the original message.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.ActivityProperty>
- Returns:
- a new instance of
CfnPipeline.ActivityProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-