/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace IoTAnalytics { namespace Model { /** */ class AWS_IOTANALYTICS_API CreatePipelineRequest : public IoTAnalyticsRequest { public: CreatePipelineRequest(); // 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 "CreatePipeline"; } Aws::String SerializePayload() const override; /** *

The name of the pipeline.

*/ inline const Aws::String& GetPipelineName() const{ return m_pipelineName; } /** *

The name of the pipeline.

*/ inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const Aws::String& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = value; } /** *

The name of the pipeline.

*/ inline void SetPipelineName(Aws::String&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::move(value); } /** *

The name of the pipeline.

*/ inline void SetPipelineName(const char* value) { m_pipelineNameHasBeenSet = true; m_pipelineName.assign(value); } /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(const Aws::String& value) { SetPipelineName(value); return *this;} /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(Aws::String&& value) { SetPipelineName(std::move(value)); return *this;} /** *

The name of the pipeline.

*/ inline CreatePipelineRequest& WithPipelineName(const char* value) { SetPipelineName(value); return *this;} /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline const Aws::Vector& GetPipelineActivities() const{ return m_pipelineActivities; } /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline bool PipelineActivitiesHasBeenSet() const { return m_pipelineActivitiesHasBeenSet; } /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline void SetPipelineActivities(const Aws::Vector& value) { m_pipelineActivitiesHasBeenSet = true; m_pipelineActivities = value; } /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline void SetPipelineActivities(Aws::Vector&& value) { m_pipelineActivitiesHasBeenSet = true; m_pipelineActivities = std::move(value); } /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline CreatePipelineRequest& WithPipelineActivities(const Aws::Vector& value) { SetPipelineActivities(value); return *this;} /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline CreatePipelineRequest& WithPipelineActivities(Aws::Vector&& value) { SetPipelineActivities(std::move(value)); return *this;} /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline CreatePipelineRequest& AddPipelineActivities(const PipelineActivity& value) { m_pipelineActivitiesHasBeenSet = true; m_pipelineActivities.push_back(value); return *this; } /** *

A list of "PipelineActivity" objects. Activities perform transformations on * your messages, such as removing, renaming or adding message attributes; * filtering messages based on attribute values; invoking your Lambda functions on * messages for advanced processing; or performing mathematical transformations to * normalize device data.

The list can be 2-25 PipelineActivity * objects and must contain both a channel and a * datastore activity. Each entry in the list must contain only one * activity, for example:

pipelineActivities = [ { "channel": { ... } * }, { "lambda": { ... } }, ... ]

*/ inline CreatePipelineRequest& AddPipelineActivities(PipelineActivity&& value) { m_pipelineActivitiesHasBeenSet = true; m_pipelineActivities.push_back(std::move(value)); return *this; } /** *

Metadata which can be used to manage the pipeline.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata which can be used to manage the pipeline.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata which can be used to manage the pipeline.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata which can be used to manage the pipeline.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata which can be used to manage the pipeline.

*/ inline CreatePipelineRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata which can be used to manage the pipeline.

*/ inline CreatePipelineRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata which can be used to manage the pipeline.

*/ inline CreatePipelineRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata which can be used to manage the pipeline.

*/ inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_pipelineName; bool m_pipelineNameHasBeenSet; Aws::Vector m_pipelineActivities; bool m_pipelineActivitiesHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws