Interface PipelineActivity.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PipelineActivity.Builder,,PipelineActivity> SdkBuilder<PipelineActivity.Builder,,PipelineActivity> SdkPojo
- Enclosing class:
PipelineActivity
-
Method Summary
Modifier and TypeMethodDescriptiondefault PipelineActivity.BuilderaddAttributes(Consumer<AddAttributesActivity.Builder> addAttributes) Adds other attributes based on existing attributes in the message.addAttributes(AddAttributesActivity addAttributes) Adds other attributes based on existing attributes in the message.default PipelineActivity.Builderchannel(Consumer<ChannelActivity.Builder> channel) Determines the source of the messages to be processed.channel(ChannelActivity channel) Determines the source of the messages to be processed.default PipelineActivity.Builderdatastore(Consumer<DatastoreActivity.Builder> datastore) Specifies where to store the processed message data.datastore(DatastoreActivity datastore) Specifies where to store the processed message data.default PipelineActivity.BuilderdeviceRegistryEnrich(Consumer<DeviceRegistryEnrichActivity.Builder> deviceRegistryEnrich) Adds data from the IoT device registry to your message.deviceRegistryEnrich(DeviceRegistryEnrichActivity deviceRegistryEnrich) Adds data from the IoT device registry to your message.default PipelineActivity.BuilderdeviceShadowEnrich(Consumer<DeviceShadowEnrichActivity.Builder> deviceShadowEnrich) Adds information from the IoT Device Shadow service to a message.deviceShadowEnrich(DeviceShadowEnrichActivity deviceShadowEnrich) Adds information from the IoT Device Shadow service to a message.default PipelineActivity.Builderfilter(Consumer<FilterActivity.Builder> filter) Filters a message based on its attributes.filter(FilterActivity filter) Filters a message based on its attributes.default PipelineActivity.Builderlambda(Consumer<LambdaActivity.Builder> lambda) Runs a Lambda function to modify the message.lambda(LambdaActivity lambda) Runs a Lambda function to modify the message.default PipelineActivity.Buildermath(Consumer<MathActivity.Builder> math) Computes an arithmetic expression using the message's attributes and adds it to the message.math(MathActivity math) Computes an arithmetic expression using the message's attributes and adds it to the message.default PipelineActivity.BuilderremoveAttributes(Consumer<RemoveAttributesActivity.Builder> removeAttributes) Removes attributes from a message.removeAttributes(RemoveAttributesActivity removeAttributes) Removes attributes from a message.default PipelineActivity.BuilderselectAttributes(Consumer<SelectAttributesActivity.Builder> selectAttributes) Used to create a new message using only the specified attributes from the original message.selectAttributes(SelectAttributesActivity selectAttributes) Used to create a new message using only the specified attributes from the original message.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
channel
Determines the source of the messages to be processed.
- Parameters:
channel- Determines the source of the messages to be processed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channel
Determines the source of the messages to be processed.
This is a convenience method that creates an instance of theChannelActivity.Builderavoiding the need to create one manually viaChannelActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochannel(ChannelActivity).- Parameters:
channel- a consumer that will call methods onChannelActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambda
Runs a Lambda function to modify the message.
- Parameters:
lambda- Runs a Lambda function to modify the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambda
Runs a Lambda function to modify the message.
This is a convenience method that creates an instance of theLambdaActivity.Builderavoiding the need to create one manually viaLambdaActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolambda(LambdaActivity).- Parameters:
lambda- a consumer that will call methods onLambdaActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
datastore
Specifies where to store the processed message data.
- Parameters:
datastore- Specifies where to store the processed message data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datastore
Specifies where to store the processed message data.
This is a convenience method that creates an instance of theDatastoreActivity.Builderavoiding the need to create one manually viaDatastoreActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todatastore(DatastoreActivity).- Parameters:
datastore- a consumer that will call methods onDatastoreActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
addAttributes
Adds other attributes based on existing attributes in the message.
- Parameters:
addAttributes- Adds other attributes based on existing attributes in the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addAttributes
default PipelineActivity.Builder addAttributes(Consumer<AddAttributesActivity.Builder> addAttributes) Adds other attributes based on existing attributes in the message.
This is a convenience method that creates an instance of theAddAttributesActivity.Builderavoiding the need to create one manually viaAddAttributesActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddAttributes(AddAttributesActivity).- Parameters:
addAttributes- a consumer that will call methods onAddAttributesActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeAttributes
Removes attributes from a message.
- Parameters:
removeAttributes- Removes attributes from a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeAttributes
default PipelineActivity.Builder removeAttributes(Consumer<RemoveAttributesActivity.Builder> removeAttributes) Removes attributes from a message.
This is a convenience method that creates an instance of theRemoveAttributesActivity.Builderavoiding the need to create one manually viaRemoveAttributesActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toremoveAttributes(RemoveAttributesActivity).- Parameters:
removeAttributes- a consumer that will call methods onRemoveAttributesActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
selectAttributes
Used to create a new message using only the specified attributes from the original message.
- Parameters:
selectAttributes- Used to create a new message using only the specified attributes from the original message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selectAttributes
default PipelineActivity.Builder selectAttributes(Consumer<SelectAttributesActivity.Builder> selectAttributes) Used to create a new message using only the specified attributes from the original message.
This is a convenience method that creates an instance of theSelectAttributesActivity.Builderavoiding the need to create one manually viaSelectAttributesActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toselectAttributes(SelectAttributesActivity).- Parameters:
selectAttributes- a consumer that will call methods onSelectAttributesActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
filter
Filters a message based on its attributes.
- Parameters:
filter- Filters a message based on its attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
Filters a message based on its attributes.
This is a convenience method that creates an instance of theFilterActivity.Builderavoiding the need to create one manually viaFilterActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(FilterActivity).- Parameters:
filter- a consumer that will call methods onFilterActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
math
Computes an arithmetic expression using the message's attributes and adds it to the message.
- Parameters:
math- Computes an arithmetic expression using the message's attributes and adds it to the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
math
Computes an arithmetic expression using the message's attributes and adds it to the message.
This is a convenience method that creates an instance of theMathActivity.Builderavoiding the need to create one manually viaMathActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomath(MathActivity).- Parameters:
math- a consumer that will call methods onMathActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deviceRegistryEnrich
Adds data from the IoT device registry to your message.
- Parameters:
deviceRegistryEnrich- Adds data from the IoT device registry to your message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceRegistryEnrich
default PipelineActivity.Builder deviceRegistryEnrich(Consumer<DeviceRegistryEnrichActivity.Builder> deviceRegistryEnrich) Adds data from the IoT device registry to your message.
This is a convenience method that creates an instance of theDeviceRegistryEnrichActivity.Builderavoiding the need to create one manually viaDeviceRegistryEnrichActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeviceRegistryEnrich(DeviceRegistryEnrichActivity).- Parameters:
deviceRegistryEnrich- a consumer that will call methods onDeviceRegistryEnrichActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deviceShadowEnrich
Adds information from the IoT Device Shadow service to a message.
- Parameters:
deviceShadowEnrich- Adds information from the IoT Device Shadow service to a message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deviceShadowEnrich
default PipelineActivity.Builder deviceShadowEnrich(Consumer<DeviceShadowEnrichActivity.Builder> deviceShadowEnrich) Adds information from the IoT Device Shadow service to a message.
This is a convenience method that creates an instance of theDeviceShadowEnrichActivity.Builderavoiding the need to create one manually viaDeviceShadowEnrichActivity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeviceShadowEnrich(DeviceShadowEnrichActivity).- Parameters:
deviceShadowEnrich- a consumer that will call methods onDeviceShadowEnrichActivity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-