/** * 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 CodePipeline { namespace Model { /** *

Represents the input of a CreatePipeline action.

See * Also:

AWS * API Reference

*/ class CreatePipelineRequest : public CodePipelineRequest { public: AWS_CODEPIPELINE_API 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_CODEPIPELINE_API Aws::String SerializePayload() const override; AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline const PipelineDeclaration& GetPipeline() const{ return m_pipeline; } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline void SetPipeline(const PipelineDeclaration& value) { m_pipelineHasBeenSet = true; m_pipeline = value; } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline void SetPipeline(PipelineDeclaration&& value) { m_pipelineHasBeenSet = true; m_pipeline = std::move(value); } /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline CreatePipelineRequest& WithPipeline(const PipelineDeclaration& value) { SetPipeline(value); return *this;} /** *

Represents the structure of actions and stages to be performed in the * pipeline.

*/ inline CreatePipelineRequest& WithPipeline(PipelineDeclaration&& value) { SetPipeline(std::move(value)); return *this;} /** *

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

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

The tags for the pipeline.

*/ inline CreatePipelineRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: PipelineDeclaration m_pipeline; bool m_pipelineHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws