AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PipelineDeclaration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ArtifactStore.h>
9#include <aws/codepipeline/model/ExecutionMode.h>
10#include <aws/codepipeline/model/PipelineTriggerDeclaration.h>
11#include <aws/codepipeline/model/PipelineType.h>
12#include <aws/codepipeline/model/PipelineVariableDeclaration.h>
13#include <aws/codepipeline/model/StageDeclaration.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodePipeline {
28namespace Model {
29
37 public:
38 AWS_CODEPIPELINE_API PipelineDeclaration() = default;
39 AWS_CODEPIPELINE_API PipelineDeclaration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 PipelineDeclaration& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
68 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
69 template <typename RoleArnT = Aws::String>
70 void SetRoleArn(RoleArnT&& value) {
71 m_roleArnHasBeenSet = true;
72 m_roleArn = std::forward<RoleArnT>(value);
73 }
74 template <typename RoleArnT = Aws::String>
75 PipelineDeclaration& WithRoleArn(RoleArnT&& value) {
76 SetRoleArn(std::forward<RoleArnT>(value));
77 return *this;
78 }
80
82
89 inline const ArtifactStore& GetArtifactStore() const { return m_artifactStore; }
90 inline bool ArtifactStoreHasBeenSet() const { return m_artifactStoreHasBeenSet; }
91 template <typename ArtifactStoreT = ArtifactStore>
92 void SetArtifactStore(ArtifactStoreT&& value) {
93 m_artifactStoreHasBeenSet = true;
94 m_artifactStore = std::forward<ArtifactStoreT>(value);
95 }
96 template <typename ArtifactStoreT = ArtifactStore>
97 PipelineDeclaration& WithArtifactStore(ArtifactStoreT&& value) {
98 SetArtifactStore(std::forward<ArtifactStoreT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::Map<Aws::String, ArtifactStore>& GetArtifactStores() const { return m_artifactStores; }
113 inline bool ArtifactStoresHasBeenSet() const { return m_artifactStoresHasBeenSet; }
114 template <typename ArtifactStoresT = Aws::Map<Aws::String, ArtifactStore>>
115 void SetArtifactStores(ArtifactStoresT&& value) {
116 m_artifactStoresHasBeenSet = true;
117 m_artifactStores = std::forward<ArtifactStoresT>(value);
118 }
119 template <typename ArtifactStoresT = Aws::Map<Aws::String, ArtifactStore>>
120 PipelineDeclaration& WithArtifactStores(ArtifactStoresT&& value) {
121 SetArtifactStores(std::forward<ArtifactStoresT>(value));
122 return *this;
123 }
124 template <typename ArtifactStoresKeyT = Aws::String, typename ArtifactStoresValueT = ArtifactStore>
125 PipelineDeclaration& AddArtifactStores(ArtifactStoresKeyT&& key, ArtifactStoresValueT&& value) {
126 m_artifactStoresHasBeenSet = true;
127 m_artifactStores.emplace(std::forward<ArtifactStoresKeyT>(key), std::forward<ArtifactStoresValueT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<StageDeclaration>& GetStages() const { return m_stages; }
137 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
138 template <typename StagesT = Aws::Vector<StageDeclaration>>
139 void SetStages(StagesT&& value) {
140 m_stagesHasBeenSet = true;
141 m_stages = std::forward<StagesT>(value);
142 }
143 template <typename StagesT = Aws::Vector<StageDeclaration>>
144 PipelineDeclaration& WithStages(StagesT&& value) {
145 SetStages(std::forward<StagesT>(value));
146 return *this;
147 }
148 template <typename StagesT = StageDeclaration>
149 PipelineDeclaration& AddStages(StagesT&& value) {
150 m_stagesHasBeenSet = true;
151 m_stages.emplace_back(std::forward<StagesT>(value));
152 return *this;
153 }
155
157
161 inline int GetVersion() const { return m_version; }
162 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
163 inline void SetVersion(int value) {
164 m_versionHasBeenSet = true;
165 m_version = value;
166 }
167 inline PipelineDeclaration& WithVersion(int value) {
168 SetVersion(value);
169 return *this;
170 }
172
174
178 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
179 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
180 inline void SetExecutionMode(ExecutionMode value) {
181 m_executionModeHasBeenSet = true;
182 m_executionMode = value;
183 }
185 SetExecutionMode(value);
186 return *this;
187 }
189
191
207 inline PipelineType GetPipelineType() const { return m_pipelineType; }
208 inline bool PipelineTypeHasBeenSet() const { return m_pipelineTypeHasBeenSet; }
209 inline void SetPipelineType(PipelineType value) {
210 m_pipelineTypeHasBeenSet = true;
211 m_pipelineType = value;
212 }
214 SetPipelineType(value);
215 return *this;
216 }
218
220
225 inline const Aws::Vector<PipelineVariableDeclaration>& GetVariables() const { return m_variables; }
226 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
227 template <typename VariablesT = Aws::Vector<PipelineVariableDeclaration>>
228 void SetVariables(VariablesT&& value) {
229 m_variablesHasBeenSet = true;
230 m_variables = std::forward<VariablesT>(value);
231 }
232 template <typename VariablesT = Aws::Vector<PipelineVariableDeclaration>>
233 PipelineDeclaration& WithVariables(VariablesT&& value) {
234 SetVariables(std::forward<VariablesT>(value));
235 return *this;
236 }
237 template <typename VariablesT = PipelineVariableDeclaration>
238 PipelineDeclaration& AddVariables(VariablesT&& value) {
239 m_variablesHasBeenSet = true;
240 m_variables.emplace_back(std::forward<VariablesT>(value));
241 return *this;
242 }
244
246
252 inline const Aws::Vector<PipelineTriggerDeclaration>& GetTriggers() const { return m_triggers; }
253 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
254 template <typename TriggersT = Aws::Vector<PipelineTriggerDeclaration>>
255 void SetTriggers(TriggersT&& value) {
256 m_triggersHasBeenSet = true;
257 m_triggers = std::forward<TriggersT>(value);
258 }
259 template <typename TriggersT = Aws::Vector<PipelineTriggerDeclaration>>
260 PipelineDeclaration& WithTriggers(TriggersT&& value) {
261 SetTriggers(std::forward<TriggersT>(value));
262 return *this;
263 }
264 template <typename TriggersT = PipelineTriggerDeclaration>
265 PipelineDeclaration& AddTriggers(TriggersT&& value) {
266 m_triggersHasBeenSet = true;
267 m_triggers.emplace_back(std::forward<TriggersT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_name;
273
274 Aws::String m_roleArn;
275
276 ArtifactStore m_artifactStore;
277
279
281
282 int m_version{0};
283
284 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
285
286 PipelineType m_pipelineType{PipelineType::NOT_SET};
287
289
291 bool m_nameHasBeenSet = false;
292 bool m_roleArnHasBeenSet = false;
293 bool m_artifactStoreHasBeenSet = false;
294 bool m_artifactStoresHasBeenSet = false;
295 bool m_stagesHasBeenSet = false;
296 bool m_versionHasBeenSet = false;
297 bool m_executionModeHasBeenSet = false;
298 bool m_pipelineTypeHasBeenSet = false;
299 bool m_variablesHasBeenSet = false;
300 bool m_triggersHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace CodePipeline
305} // namespace Aws
PipelineDeclaration & AddArtifactStores(ArtifactStoresKeyT &&key, ArtifactStoresValueT &&value)
const Aws::Vector< PipelineTriggerDeclaration > & GetTriggers() const
PipelineDeclaration & AddVariables(VariablesT &&value)
PipelineDeclaration & WithVariables(VariablesT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< StageDeclaration > & GetStages() const
AWS_CODEPIPELINE_API PipelineDeclaration(Aws::Utils::Json::JsonView jsonValue)
PipelineDeclaration & WithStages(StagesT &&value)
AWS_CODEPIPELINE_API PipelineDeclaration()=default
AWS_CODEPIPELINE_API PipelineDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineDeclaration & WithArtifactStore(ArtifactStoreT &&value)
PipelineDeclaration & AddStages(StagesT &&value)
PipelineDeclaration & WithArtifactStores(ArtifactStoresT &&value)
PipelineDeclaration & WithPipelineType(PipelineType value)
const Aws::Map< Aws::String, ArtifactStore > & GetArtifactStores() const
PipelineDeclaration & WithName(NameT &&value)
PipelineDeclaration & AddTriggers(TriggersT &&value)
PipelineDeclaration & WithTriggers(TriggersT &&value)
PipelineDeclaration & WithRoleArn(RoleArnT &&value)
const Aws::Vector< PipelineVariableDeclaration > & GetVariables() const
PipelineDeclaration & WithExecutionMode(ExecutionMode value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue