AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartPipelineExecutionRequest.h
1
6#pragma once
7#include <aws/codepipeline/CodePipelineRequest.h>
8#include <aws/codepipeline/CodePipeline_EXPORTS.h>
9#include <aws/codepipeline/model/PipelineVariable.h>
10#include <aws/codepipeline/model/SourceRevisionOverride.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodePipeline {
19namespace Model {
20
28 public:
29 AWS_CODEPIPELINE_API StartPipelineExecutionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartPipelineExecution"; }
36
37 AWS_CODEPIPELINE_API Aws::String SerializePayload() const override;
38
39 AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::Vector<PipelineVariable>& GetVariables() const { return m_variables; }
66 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
67 template <typename VariablesT = Aws::Vector<PipelineVariable>>
68 void SetVariables(VariablesT&& value) {
69 m_variablesHasBeenSet = true;
70 m_variables = std::forward<VariablesT>(value);
71 }
72 template <typename VariablesT = Aws::Vector<PipelineVariable>>
74 SetVariables(std::forward<VariablesT>(value));
75 return *this;
76 }
77 template <typename VariablesT = PipelineVariable>
79 m_variablesHasBeenSet = true;
80 m_variables.emplace_back(std::forward<VariablesT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
91 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
92 template <typename ClientRequestTokenT = Aws::String>
93 void SetClientRequestToken(ClientRequestTokenT&& value) {
94 m_clientRequestTokenHasBeenSet = true;
95 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
96 }
97 template <typename ClientRequestTokenT = Aws::String>
99 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
100 return *this;
101 }
103
105
111 inline const Aws::Vector<SourceRevisionOverride>& GetSourceRevisions() const { return m_sourceRevisions; }
112 inline bool SourceRevisionsHasBeenSet() const { return m_sourceRevisionsHasBeenSet; }
113 template <typename SourceRevisionsT = Aws::Vector<SourceRevisionOverride>>
114 void SetSourceRevisions(SourceRevisionsT&& value) {
115 m_sourceRevisionsHasBeenSet = true;
116 m_sourceRevisions = std::forward<SourceRevisionsT>(value);
117 }
118 template <typename SourceRevisionsT = Aws::Vector<SourceRevisionOverride>>
120 SetSourceRevisions(std::forward<SourceRevisionsT>(value));
121 return *this;
122 }
123 template <typename SourceRevisionsT = SourceRevisionOverride>
125 m_sourceRevisionsHasBeenSet = true;
126 m_sourceRevisions.emplace_back(std::forward<SourceRevisionsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_name;
132
134
135 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
136
137 Aws::Vector<SourceRevisionOverride> m_sourceRevisions;
138 bool m_nameHasBeenSet = false;
139 bool m_variablesHasBeenSet = false;
140 bool m_clientRequestTokenHasBeenSet = true;
141 bool m_sourceRevisionsHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace CodePipeline
146} // namespace Aws
const Aws::Vector< SourceRevisionOverride > & GetSourceRevisions() const
const Aws::Vector< PipelineVariable > & GetVariables() const
StartPipelineExecutionRequest & WithSourceRevisions(SourceRevisionsT &&value)
StartPipelineExecutionRequest & AddSourceRevisions(SourceRevisionsT &&value)
AWS_CODEPIPELINE_API Aws::String SerializePayload() const override
StartPipelineExecutionRequest & WithVariables(VariablesT &&value)
StartPipelineExecutionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_CODEPIPELINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CODEPIPELINE_API StartPipelineExecutionRequest()=default
StartPipelineExecutionRequest & WithName(NameT &&value)
StartPipelineExecutionRequest & AddVariables(VariablesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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