AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreatePipelineRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/CodePipelineRequest.h>
9#include <aws/codepipeline/model/PipelineDeclaration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codepipeline/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodePipeline
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEPIPELINE_API CreatePipelineRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreatePipeline"; }
37
38 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
39
40 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
48 inline const PipelineDeclaration& GetPipeline() const { return m_pipeline; }
49 inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; }
50 template<typename PipelineT = PipelineDeclaration>
51 void SetPipeline(PipelineT&& value) { m_pipelineHasBeenSet = true; m_pipeline = std::forward<PipelineT>(value); }
52 template<typename PipelineT = PipelineDeclaration>
53 CreatePipelineRequest& WithPipeline(PipelineT&& value) { SetPipeline(std::forward<PipelineT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template<typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
64 template<typename TagsT = Aws::Vector<Tag>>
65 CreatePipelineRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
66 template<typename TagsT = Tag>
67 CreatePipelineRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
69 private:
70
71 PipelineDeclaration m_pipeline;
72 bool m_pipelineHasBeenSet = false;
73
74 Aws::Vector<Tag> m_tags;
75 bool m_tagsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodePipeline
80} // namespace Aws
CreatePipelineRequest & AddTags(TagsT &&value)
const PipelineDeclaration & GetPipeline() const
CreatePipelineRequest & WithTags(TagsT &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePipelineRequest & WithPipeline(PipelineT &&value)
AWS_CODEPIPELINE_API CreatePipelineRequest()=default
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector