Interface Action.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Action.Builder,Action>, SdkBuilder<Action.Builder,Action>, SdkPojo
Enclosing class:
Action

public static interface Action.Builder extends SdkPojo, CopyableBuilder<Action.Builder,Action>
  • Method Details

    • setVariable

      Action.Builder setVariable(SetVariableAction setVariable)

      Sets a variable to a specified value.

      Parameters:
      setVariable - Sets a variable to a specified value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVariable

      default Action.Builder setVariable(Consumer<SetVariableAction.Builder> setVariable)

      Sets a variable to a specified value.

      This is a convenience method that creates an instance of the SetVariableAction.Builder avoiding the need to create one manually via SetVariableAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to setVariable(SetVariableAction).

      Parameters:
      setVariable - a consumer that will call methods on SetVariableAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sns

      Sends an Amazon SNS message.

      Parameters:
      sns - Sends an Amazon SNS message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sns

      Sends an Amazon SNS message.

      This is a convenience method that creates an instance of the SNSTopicPublishAction.Builder avoiding the need to create one manually via SNSTopicPublishAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sns(SNSTopicPublishAction).

      Parameters:
      sns - a consumer that will call methods on SNSTopicPublishAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • iotTopicPublish

      Action.Builder iotTopicPublish(IotTopicPublishAction iotTopicPublish)

      Publishes an MQTT message with the given topic to the AWS IoT message broker.

      Parameters:
      iotTopicPublish - Publishes an MQTT message with the given topic to the AWS IoT message broker.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iotTopicPublish

      default Action.Builder iotTopicPublish(Consumer<IotTopicPublishAction.Builder> iotTopicPublish)

      Publishes an MQTT message with the given topic to the AWS IoT message broker.

      This is a convenience method that creates an instance of the IotTopicPublishAction.Builder avoiding the need to create one manually via IotTopicPublishAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to iotTopicPublish(IotTopicPublishAction).

      Parameters:
      iotTopicPublish - a consumer that will call methods on IotTopicPublishAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTimer

      Action.Builder setTimer(SetTimerAction setTimer)

      Information needed to set the timer.

      Parameters:
      setTimer - Information needed to set the timer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTimer

      default Action.Builder setTimer(Consumer<SetTimerAction.Builder> setTimer)

      Information needed to set the timer.

      This is a convenience method that creates an instance of the SetTimerAction.Builder avoiding the need to create one manually via SetTimerAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to setTimer(SetTimerAction).

      Parameters:
      setTimer - a consumer that will call methods on SetTimerAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clearTimer

      Action.Builder clearTimer(ClearTimerAction clearTimer)

      Information needed to clear the timer.

      Parameters:
      clearTimer - Information needed to clear the timer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clearTimer

      default Action.Builder clearTimer(Consumer<ClearTimerAction.Builder> clearTimer)

      Information needed to clear the timer.

      This is a convenience method that creates an instance of the ClearTimerAction.Builder avoiding the need to create one manually via ClearTimerAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to clearTimer(ClearTimerAction).

      Parameters:
      clearTimer - a consumer that will call methods on ClearTimerAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resetTimer

      Action.Builder resetTimer(ResetTimerAction resetTimer)

      Information needed to reset the timer.

      Parameters:
      resetTimer - Information needed to reset the timer.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resetTimer

      default Action.Builder resetTimer(Consumer<ResetTimerAction.Builder> resetTimer)

      Information needed to reset the timer.

      This is a convenience method that creates an instance of the ResetTimerAction.Builder avoiding the need to create one manually via ResetTimerAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resetTimer(ResetTimerAction).

      Parameters:
      resetTimer - a consumer that will call methods on ResetTimerAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lambda

      Action.Builder lambda(LambdaAction lambda)

      Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

      Parameters:
      lambda - Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lambda

      default Action.Builder lambda(Consumer<LambdaAction.Builder> lambda)

      Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.

      This is a convenience method that creates an instance of the LambdaAction.Builder avoiding the need to create one manually via LambdaAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lambda(LambdaAction).

      Parameters:
      lambda - a consumer that will call methods on LambdaAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • iotEvents

      Action.Builder iotEvents(IotEventsAction iotEvents)

      Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

      Parameters:
      iotEvents - Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iotEvents

      default Action.Builder iotEvents(Consumer<IotEventsAction.Builder> iotEvents)

      Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.

      This is a convenience method that creates an instance of the IotEventsAction.Builder avoiding the need to create one manually via IotEventsAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to iotEvents(IotEventsAction).

      Parameters:
      iotEvents - a consumer that will call methods on IotEventsAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sqs

      Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

      Parameters:
      sqs - Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sqs

      Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.

      This is a convenience method that creates an instance of the SqsAction.Builder avoiding the need to create one manually via SqsAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sqs(SqsAction).

      Parameters:
      sqs - a consumer that will call methods on SqsAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firehose

      Action.Builder firehose(FirehoseAction firehose)

      Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

      Parameters:
      firehose - Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firehose

      default Action.Builder firehose(Consumer<FirehoseAction.Builder> firehose)

      Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.

      This is a convenience method that creates an instance of the FirehoseAction.Builder avoiding the need to create one manually via FirehoseAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to firehose(FirehoseAction).

      Parameters:
      firehose - a consumer that will call methods on FirehoseAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dynamoDB

      Action.Builder dynamoDB(DynamoDBAction dynamoDB)

      Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

      Parameters:
      dynamoDB - Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dynamoDB

      default Action.Builder dynamoDB(Consumer<DynamoDBAction.Builder> dynamoDB)

      Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

      This is a convenience method that creates an instance of the DynamoDBAction.Builder avoiding the need to create one manually via DynamoDBAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dynamoDB(DynamoDBAction).

      Parameters:
      dynamoDB - a consumer that will call methods on DynamoDBAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dynamoDBv2

      Action.Builder dynamoDBv2(DynamoDBv2Action dynamoDBv2)

      Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

      Parameters:
      dynamoDBv2 - Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dynamoDBv2

      default Action.Builder dynamoDBv2(Consumer<DynamoDBv2Action.Builder> dynamoDBv2)

      Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.

      This is a convenience method that creates an instance of the DynamoDBv2Action.Builder avoiding the need to create one manually via DynamoDBv2Action.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dynamoDBv2(DynamoDBv2Action).

      Parameters:
      dynamoDBv2 - a consumer that will call methods on DynamoDBv2Action.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • iotSiteWise

      Action.Builder iotSiteWise(IotSiteWiseAction iotSiteWise)

      Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

      Parameters:
      iotSiteWise - Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • iotSiteWise

      default Action.Builder iotSiteWise(Consumer<IotSiteWiseAction.Builder> iotSiteWise)

      Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .

      This is a convenience method that creates an instance of the IotSiteWiseAction.Builder avoiding the need to create one manually via IotSiteWiseAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to iotSiteWise(IotSiteWiseAction).

      Parameters:
      iotSiteWise - a consumer that will call methods on IotSiteWiseAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: