/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoTAnalytics { namespace Model { /** */ class RunPipelineActivityRequest : public IoTAnalyticsRequest { public: AWS_IOTANALYTICS_API RunPipelineActivityRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RunPipelineActivity"; } AWS_IOTANALYTICS_API Aws::String SerializePayload() const override; /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline const PipelineActivity& GetPipelineActivity() const{ return m_pipelineActivity; } /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline bool PipelineActivityHasBeenSet() const { return m_pipelineActivityHasBeenSet; } /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline void SetPipelineActivity(const PipelineActivity& value) { m_pipelineActivityHasBeenSet = true; m_pipelineActivity = value; } /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline void SetPipelineActivity(PipelineActivity&& value) { m_pipelineActivityHasBeenSet = true; m_pipelineActivity = std::move(value); } /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline RunPipelineActivityRequest& WithPipelineActivity(const PipelineActivity& value) { SetPipelineActivity(value); return *this;} /** *

The pipeline activity that is run. This must not be a channel activity or a * data store activity because these activities are used in a pipeline only to load * the original message and to store the (possibly) transformed message. If a * Lambda activity is specified, only short-running Lambda functions (those with a * timeout of less than 30 seconds or less) can be used.

*/ inline RunPipelineActivityRequest& WithPipelineActivity(PipelineActivity&& value) { SetPipelineActivity(std::move(value)); return *this;} /** *

The sample message payloads on which the pipeline activity is run.

*/ inline const Aws::Vector& GetPayloads() const{ return m_payloads; } /** *

The sample message payloads on which the pipeline activity is run.

*/ inline bool PayloadsHasBeenSet() const { return m_payloadsHasBeenSet; } /** *

The sample message payloads on which the pipeline activity is run.

*/ inline void SetPayloads(const Aws::Vector& value) { m_payloadsHasBeenSet = true; m_payloads = value; } /** *

The sample message payloads on which the pipeline activity is run.

*/ inline void SetPayloads(Aws::Vector&& value) { m_payloadsHasBeenSet = true; m_payloads = std::move(value); } /** *

The sample message payloads on which the pipeline activity is run.

*/ inline RunPipelineActivityRequest& WithPayloads(const Aws::Vector& value) { SetPayloads(value); return *this;} /** *

The sample message payloads on which the pipeline activity is run.

*/ inline RunPipelineActivityRequest& WithPayloads(Aws::Vector&& value) { SetPayloads(std::move(value)); return *this;} /** *

The sample message payloads on which the pipeline activity is run.

*/ inline RunPipelineActivityRequest& AddPayloads(const Aws::Utils::ByteBuffer& value) { m_payloadsHasBeenSet = true; m_payloads.push_back(value); return *this; } /** *

The sample message payloads on which the pipeline activity is run.

*/ inline RunPipelineActivityRequest& AddPayloads(Aws::Utils::ByteBuffer&& value) { m_payloadsHasBeenSet = true; m_payloads.push_back(std::move(value)); return *this; } private: PipelineActivity m_pipelineActivity; bool m_pipelineActivityHasBeenSet = false; Aws::Vector m_payloads; bool m_payloadsHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws