AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreatePipelineRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/codepipeline/model/PipelineDeclaration.h>
10#include <aws/codepipeline/model/Tag.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodePipeline {
17namespace Model {
18
26 public:
27 AWS_CODEPIPELINE_API CreatePipelineRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePipeline"; }
34
35 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
36
37 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
44 inline const PipelineDeclaration& GetPipeline() const { return m_pipeline; }
45 inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; }
46 template <typename PipelineT = PipelineDeclaration>
47 void SetPipeline(PipelineT&& value) {
48 m_pipelineHasBeenSet = true;
49 m_pipeline = std::forward<PipelineT>(value);
50 }
51 template <typename PipelineT = PipelineDeclaration>
52 CreatePipelineRequest& WithPipeline(PipelineT&& value) {
53 SetPipeline(std::forward<PipelineT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
63 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
64 template <typename TagsT = Aws::Vector<Tag>>
65 void SetTags(TagsT&& value) {
66 m_tagsHasBeenSet = true;
67 m_tags = std::forward<TagsT>(value);
68 }
69 template <typename TagsT = Aws::Vector<Tag>>
71 SetTags(std::forward<TagsT>(value));
72 return *this;
73 }
74 template <typename TagsT = Tag>
76 m_tagsHasBeenSet = true;
77 m_tags.emplace_back(std::forward<TagsT>(value));
78 return *this;
79 }
81 private:
82 PipelineDeclaration m_pipeline;
83
84 Aws::Vector<Tag> m_tags;
85 bool m_pipelineHasBeenSet = false;
86 bool m_tagsHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CodePipeline
91} // 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