AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PipelineDeclaration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codepipeline/model/ArtifactStore.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/ExecutionMode.h>
13#include <aws/codepipeline/model/PipelineType.h>
14#include <aws/codepipeline/model/StageDeclaration.h>
15#include <aws/codepipeline/model/PipelineVariableDeclaration.h>
16#include <aws/codepipeline/model/PipelineTriggerDeclaration.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace CodePipeline
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_CODEPIPELINE_API PipelineDeclaration();
44 AWS_CODEPIPELINE_API PipelineDeclaration(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline PipelineDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline PipelineDeclaration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline PipelineDeclaration& WithName(const char* value) { SetName(value); return *this;}
62
64
69 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
70 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
71 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
72 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
73 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
74 inline PipelineDeclaration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
75 inline PipelineDeclaration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
76 inline PipelineDeclaration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78
80
87 inline const ArtifactStore& GetArtifactStore() const{ return m_artifactStore; }
88 inline bool ArtifactStoreHasBeenSet() const { return m_artifactStoreHasBeenSet; }
89 inline void SetArtifactStore(const ArtifactStore& value) { m_artifactStoreHasBeenSet = true; m_artifactStore = value; }
90 inline void SetArtifactStore(ArtifactStore&& value) { m_artifactStoreHasBeenSet = true; m_artifactStore = std::move(value); }
91 inline PipelineDeclaration& WithArtifactStore(const ArtifactStore& value) { SetArtifactStore(value); return *this;}
92 inline PipelineDeclaration& WithArtifactStore(ArtifactStore&& value) { SetArtifactStore(std::move(value)); return *this;}
94
96
104 inline const Aws::Map<Aws::String, ArtifactStore>& GetArtifactStores() const{ return m_artifactStores; }
105 inline bool ArtifactStoresHasBeenSet() const { return m_artifactStoresHasBeenSet; }
106 inline void SetArtifactStores(const Aws::Map<Aws::String, ArtifactStore>& value) { m_artifactStoresHasBeenSet = true; m_artifactStores = value; }
107 inline void SetArtifactStores(Aws::Map<Aws::String, ArtifactStore>&& value) { m_artifactStoresHasBeenSet = true; m_artifactStores = std::move(value); }
110 inline PipelineDeclaration& AddArtifactStores(const Aws::String& key, const ArtifactStore& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(key, value); return *this; }
111 inline PipelineDeclaration& AddArtifactStores(Aws::String&& key, const ArtifactStore& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(std::move(key), value); return *this; }
112 inline PipelineDeclaration& AddArtifactStores(const Aws::String& key, ArtifactStore&& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(key, std::move(value)); return *this; }
113 inline PipelineDeclaration& AddArtifactStores(Aws::String&& key, ArtifactStore&& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(std::move(key), std::move(value)); return *this; }
114 inline PipelineDeclaration& AddArtifactStores(const char* key, ArtifactStore&& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(key, std::move(value)); return *this; }
115 inline PipelineDeclaration& AddArtifactStores(const char* key, const ArtifactStore& value) { m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(key, value); return *this; }
117
119
122 inline const Aws::Vector<StageDeclaration>& GetStages() const{ return m_stages; }
123 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
124 inline void SetStages(const Aws::Vector<StageDeclaration>& value) { m_stagesHasBeenSet = true; m_stages = value; }
125 inline void SetStages(Aws::Vector<StageDeclaration>&& value) { m_stagesHasBeenSet = true; m_stages = std::move(value); }
126 inline PipelineDeclaration& WithStages(const Aws::Vector<StageDeclaration>& value) { SetStages(value); return *this;}
127 inline PipelineDeclaration& WithStages(Aws::Vector<StageDeclaration>&& value) { SetStages(std::move(value)); return *this;}
128 inline PipelineDeclaration& AddStages(const StageDeclaration& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
129 inline PipelineDeclaration& AddStages(StageDeclaration&& value) { m_stagesHasBeenSet = true; m_stages.push_back(std::move(value)); return *this; }
131
133
137 inline int GetVersion() const{ return m_version; }
138 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
139 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
140 inline PipelineDeclaration& WithVersion(int value) { SetVersion(value); return *this;}
142
144
148 inline const ExecutionMode& GetExecutionMode() const{ return m_executionMode; }
149 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
150 inline void SetExecutionMode(const ExecutionMode& value) { m_executionModeHasBeenSet = true; m_executionMode = value; }
151 inline void SetExecutionMode(ExecutionMode&& value) { m_executionModeHasBeenSet = true; m_executionMode = std::move(value); }
152 inline PipelineDeclaration& WithExecutionMode(const ExecutionMode& value) { SetExecutionMode(value); return *this;}
153 inline PipelineDeclaration& WithExecutionMode(ExecutionMode&& value) { SetExecutionMode(std::move(value)); return *this;}
155
157
173 inline const PipelineType& GetPipelineType() const{ return m_pipelineType; }
174 inline bool PipelineTypeHasBeenSet() const { return m_pipelineTypeHasBeenSet; }
175 inline void SetPipelineType(const PipelineType& value) { m_pipelineTypeHasBeenSet = true; m_pipelineType = value; }
176 inline void SetPipelineType(PipelineType&& value) { m_pipelineTypeHasBeenSet = true; m_pipelineType = std::move(value); }
177 inline PipelineDeclaration& WithPipelineType(const PipelineType& value) { SetPipelineType(value); return *this;}
178 inline PipelineDeclaration& WithPipelineType(PipelineType&& value) { SetPipelineType(std::move(value)); return *this;}
180
182
187 inline const Aws::Vector<PipelineVariableDeclaration>& GetVariables() const{ return m_variables; }
188 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
189 inline void SetVariables(const Aws::Vector<PipelineVariableDeclaration>& value) { m_variablesHasBeenSet = true; m_variables = value; }
190 inline void SetVariables(Aws::Vector<PipelineVariableDeclaration>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
193 inline PipelineDeclaration& AddVariables(const PipelineVariableDeclaration& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
194 inline PipelineDeclaration& AddVariables(PipelineVariableDeclaration&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
196
198
204 inline const Aws::Vector<PipelineTriggerDeclaration>& GetTriggers() const{ return m_triggers; }
205 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
206 inline void SetTriggers(const Aws::Vector<PipelineTriggerDeclaration>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
207 inline void SetTriggers(Aws::Vector<PipelineTriggerDeclaration>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
209 inline PipelineDeclaration& WithTriggers(Aws::Vector<PipelineTriggerDeclaration>&& value) { SetTriggers(std::move(value)); return *this;}
210 inline PipelineDeclaration& AddTriggers(const PipelineTriggerDeclaration& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
211 inline PipelineDeclaration& AddTriggers(PipelineTriggerDeclaration&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
213 private:
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 Aws::String m_roleArn;
219 bool m_roleArnHasBeenSet = false;
220
221 ArtifactStore m_artifactStore;
222 bool m_artifactStoreHasBeenSet = false;
223
225 bool m_artifactStoresHasBeenSet = false;
226
228 bool m_stagesHasBeenSet = false;
229
230 int m_version;
231 bool m_versionHasBeenSet = false;
232
233 ExecutionMode m_executionMode;
234 bool m_executionModeHasBeenSet = false;
235
236 PipelineType m_pipelineType;
237 bool m_pipelineTypeHasBeenSet = false;
238
240 bool m_variablesHasBeenSet = false;
241
243 bool m_triggersHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace CodePipeline
248} // namespace Aws
PipelineDeclaration & AddStages(StageDeclaration &&value)
PipelineDeclaration & WithName(const Aws::String &value)
PipelineDeclaration & AddVariables(PipelineVariableDeclaration &&value)
const Aws::Vector< PipelineTriggerDeclaration > & GetTriggers() const
PipelineDeclaration & WithRoleArn(const Aws::String &value)
PipelineDeclaration & WithVariables(const Aws::Vector< PipelineVariableDeclaration > &value)
PipelineDeclaration & AddVariables(const PipelineVariableDeclaration &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< StageDeclaration > & GetStages() const
PipelineDeclaration & WithTriggers(const Aws::Vector< PipelineTriggerDeclaration > &value)
void SetTriggers(Aws::Vector< PipelineTriggerDeclaration > &&value)
void SetStages(Aws::Vector< StageDeclaration > &&value)
void SetPipelineType(const PipelineType &value)
PipelineDeclaration & AddArtifactStores(Aws::String &&key, const ArtifactStore &value)
PipelineDeclaration & AddArtifactStores(Aws::String &&key, ArtifactStore &&value)
AWS_CODEPIPELINE_API PipelineDeclaration(Aws::Utils::Json::JsonView jsonValue)
PipelineDeclaration & WithTriggers(Aws::Vector< PipelineTriggerDeclaration > &&value)
PipelineDeclaration & WithArtifactStore(ArtifactStore &&value)
AWS_CODEPIPELINE_API PipelineDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineDeclaration & WithExecutionMode(const ExecutionMode &value)
PipelineDeclaration & WithPipelineType(const PipelineType &value)
PipelineDeclaration & WithArtifactStores(Aws::Map< Aws::String, ArtifactStore > &&value)
PipelineDeclaration & WithPipelineType(PipelineType &&value)
void SetVariables(Aws::Vector< PipelineVariableDeclaration > &&value)
PipelineDeclaration & WithRoleArn(const char *value)
PipelineDeclaration & AddTriggers(PipelineTriggerDeclaration &&value)
PipelineDeclaration & WithStages(Aws::Vector< StageDeclaration > &&value)
PipelineDeclaration & WithName(Aws::String &&value)
PipelineDeclaration & AddArtifactStores(const Aws::String &key, ArtifactStore &&value)
void SetArtifactStores(const Aws::Map< Aws::String, ArtifactStore > &value)
PipelineDeclaration & WithArtifactStore(const ArtifactStore &value)
PipelineDeclaration & WithVariables(Aws::Vector< PipelineVariableDeclaration > &&value)
PipelineDeclaration & AddArtifactStores(const char *key, const ArtifactStore &value)
PipelineDeclaration & AddTriggers(const PipelineTriggerDeclaration &value)
const Aws::Map< Aws::String, ArtifactStore > & GetArtifactStores() const
void SetArtifactStores(Aws::Map< Aws::String, ArtifactStore > &&value)
void SetStages(const Aws::Vector< StageDeclaration > &value)
PipelineDeclaration & WithRoleArn(Aws::String &&value)
PipelineDeclaration & WithStages(const Aws::Vector< StageDeclaration > &value)
PipelineDeclaration & AddArtifactStores(const char *key, ArtifactStore &&value)
PipelineDeclaration & AddArtifactStores(const Aws::String &key, const ArtifactStore &value)
PipelineDeclaration & WithExecutionMode(ExecutionMode &&value)
void SetVariables(const Aws::Vector< PipelineVariableDeclaration > &value)
void SetExecutionMode(const ExecutionMode &value)
PipelineDeclaration & WithArtifactStores(const Aws::Map< Aws::String, ArtifactStore > &value)
PipelineDeclaration & AddStages(const StageDeclaration &value)
PipelineDeclaration & WithName(const char *value)
void SetArtifactStore(const ArtifactStore &value)
const Aws::Vector< PipelineVariableDeclaration > & GetVariables() const
void SetTriggers(const Aws::Vector< PipelineTriggerDeclaration > &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