Interface PipelineActivity.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PipelineActivity.Builder,PipelineActivity>,SdkBuilder<PipelineActivity.Builder,PipelineActivity>,SdkPojo
- Enclosing class:
- PipelineActivity
public static interface PipelineActivity.Builder extends SdkPojo, CopyableBuilder<PipelineActivity.Builder,PipelineActivity>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PipelineActivity.BuilderaddAttributes(Consumer<AddAttributesActivity.Builder> addAttributes)Adds other attributes based on existing attributes in the message.PipelineActivity.BuilderaddAttributes(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.PipelineActivity.Builderchannel(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.PipelineActivity.Builderdatastore(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.PipelineActivity.BuilderdeviceRegistryEnrich(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.PipelineActivity.BuilderdeviceShadowEnrich(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.PipelineActivity.Builderfilter(FilterActivity filter)Filters a message based on its attributes.default PipelineActivity.Builderlambda(Consumer<LambdaActivity.Builder> lambda)Runs a Lambda function to modify the message.PipelineActivity.Builderlambda(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.PipelineActivity.Buildermath(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.PipelineActivity.BuilderremoveAttributes(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.PipelineActivity.BuilderselectAttributes(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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
channel
PipelineActivity.Builder channel(ChannelActivity 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
default PipelineActivity.Builder channel(Consumer<ChannelActivity.Builder> 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:
channel(ChannelActivity)
-
lambda
PipelineActivity.Builder lambda(LambdaActivity 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
default PipelineActivity.Builder lambda(Consumer<LambdaActivity.Builder> 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:
lambda(LambdaActivity)
-
datastore
PipelineActivity.Builder datastore(DatastoreActivity 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
default PipelineActivity.Builder datastore(Consumer<DatastoreActivity.Builder> 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:
datastore(DatastoreActivity)
-
addAttributes
PipelineActivity.Builder addAttributes(AddAttributesActivity 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:
addAttributes(AddAttributesActivity)
-
removeAttributes
PipelineActivity.Builder removeAttributes(RemoveAttributesActivity 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:
removeAttributes(RemoveAttributesActivity)
-
selectAttributes
PipelineActivity.Builder selectAttributes(SelectAttributesActivity 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:
selectAttributes(SelectAttributesActivity)
-
filter
PipelineActivity.Builder filter(FilterActivity 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
default PipelineActivity.Builder filter(Consumer<FilterActivity.Builder> 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:
filter(FilterActivity)
-
math
PipelineActivity.Builder math(MathActivity 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
default PipelineActivity.Builder math(Consumer<MathActivity.Builder> 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:
math(MathActivity)
-
deviceRegistryEnrich
PipelineActivity.Builder deviceRegistryEnrich(DeviceRegistryEnrichActivity 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:
deviceRegistryEnrich(DeviceRegistryEnrichActivity)
-
deviceShadowEnrich
PipelineActivity.Builder deviceShadowEnrich(DeviceShadowEnrichActivity 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:
deviceShadowEnrich(DeviceShadowEnrichActivity)
-
-