AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 PipelineDeclaration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
71 template<typename RoleArnT = Aws::String>
72 PipelineDeclaration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
74
76
83 inline const ArtifactStore& GetArtifactStore() const { return m_artifactStore; }
84 inline bool ArtifactStoreHasBeenSet() const { return m_artifactStoreHasBeenSet; }
85 template<typename ArtifactStoreT = ArtifactStore>
86 void SetArtifactStore(ArtifactStoreT&& value) { m_artifactStoreHasBeenSet = true; m_artifactStore = std::forward<ArtifactStoreT>(value); }
87 template<typename ArtifactStoreT = ArtifactStore>
88 PipelineDeclaration& WithArtifactStore(ArtifactStoreT&& value) { SetArtifactStore(std::forward<ArtifactStoreT>(value)); return *this;}
90
92
100 inline const Aws::Map<Aws::String, ArtifactStore>& GetArtifactStores() const { return m_artifactStores; }
101 inline bool ArtifactStoresHasBeenSet() const { return m_artifactStoresHasBeenSet; }
102 template<typename ArtifactStoresT = Aws::Map<Aws::String, ArtifactStore>>
103 void SetArtifactStores(ArtifactStoresT&& value) { m_artifactStoresHasBeenSet = true; m_artifactStores = std::forward<ArtifactStoresT>(value); }
104 template<typename ArtifactStoresT = Aws::Map<Aws::String, ArtifactStore>>
105 PipelineDeclaration& WithArtifactStores(ArtifactStoresT&& value) { SetArtifactStores(std::forward<ArtifactStoresT>(value)); return *this;}
106 template<typename ArtifactStoresKeyT = Aws::String, typename ArtifactStoresValueT = ArtifactStore>
107 PipelineDeclaration& AddArtifactStores(ArtifactStoresKeyT&& key, ArtifactStoresValueT&& value) {
108 m_artifactStoresHasBeenSet = true; m_artifactStores.emplace(std::forward<ArtifactStoresKeyT>(key), std::forward<ArtifactStoresValueT>(value)); return *this;
109 }
111
113
116 inline const Aws::Vector<StageDeclaration>& GetStages() const { return m_stages; }
117 inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
118 template<typename StagesT = Aws::Vector<StageDeclaration>>
119 void SetStages(StagesT&& value) { m_stagesHasBeenSet = true; m_stages = std::forward<StagesT>(value); }
120 template<typename StagesT = Aws::Vector<StageDeclaration>>
121 PipelineDeclaration& WithStages(StagesT&& value) { SetStages(std::forward<StagesT>(value)); return *this;}
122 template<typename StagesT = StageDeclaration>
123 PipelineDeclaration& AddStages(StagesT&& value) { m_stagesHasBeenSet = true; m_stages.emplace_back(std::forward<StagesT>(value)); return *this; }
125
127
131 inline int GetVersion() const { return m_version; }
132 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
133 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
134 inline PipelineDeclaration& WithVersion(int value) { SetVersion(value); return *this;}
136
138
142 inline ExecutionMode GetExecutionMode() const { return m_executionMode; }
143 inline bool ExecutionModeHasBeenSet() const { return m_executionModeHasBeenSet; }
144 inline void SetExecutionMode(ExecutionMode value) { m_executionModeHasBeenSet = true; m_executionMode = value; }
147
149
165 inline PipelineType GetPipelineType() const { return m_pipelineType; }
166 inline bool PipelineTypeHasBeenSet() const { return m_pipelineTypeHasBeenSet; }
167 inline void SetPipelineType(PipelineType value) { m_pipelineTypeHasBeenSet = true; m_pipelineType = value; }
168 inline PipelineDeclaration& WithPipelineType(PipelineType value) { SetPipelineType(value); return *this;}
170
172
177 inline const Aws::Vector<PipelineVariableDeclaration>& GetVariables() const { return m_variables; }
178 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
179 template<typename VariablesT = Aws::Vector<PipelineVariableDeclaration>>
180 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
181 template<typename VariablesT = Aws::Vector<PipelineVariableDeclaration>>
182 PipelineDeclaration& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
183 template<typename VariablesT = PipelineVariableDeclaration>
184 PipelineDeclaration& AddVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables.emplace_back(std::forward<VariablesT>(value)); return *this; }
186
188
194 inline const Aws::Vector<PipelineTriggerDeclaration>& GetTriggers() const { return m_triggers; }
195 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
196 template<typename TriggersT = Aws::Vector<PipelineTriggerDeclaration>>
197 void SetTriggers(TriggersT&& value) { m_triggersHasBeenSet = true; m_triggers = std::forward<TriggersT>(value); }
198 template<typename TriggersT = Aws::Vector<PipelineTriggerDeclaration>>
199 PipelineDeclaration& WithTriggers(TriggersT&& value) { SetTriggers(std::forward<TriggersT>(value)); return *this;}
200 template<typename TriggersT = PipelineTriggerDeclaration>
201 PipelineDeclaration& AddTriggers(TriggersT&& value) { m_triggersHasBeenSet = true; m_triggers.emplace_back(std::forward<TriggersT>(value)); return *this; }
203 private:
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 Aws::String m_roleArn;
209 bool m_roleArnHasBeenSet = false;
210
211 ArtifactStore m_artifactStore;
212 bool m_artifactStoreHasBeenSet = false;
213
215 bool m_artifactStoresHasBeenSet = false;
216
218 bool m_stagesHasBeenSet = false;
219
220 int m_version{0};
221 bool m_versionHasBeenSet = false;
222
223 ExecutionMode m_executionMode{ExecutionMode::NOT_SET};
224 bool m_executionModeHasBeenSet = false;
225
226 PipelineType m_pipelineType{PipelineType::NOT_SET};
227 bool m_pipelineTypeHasBeenSet = false;
228
230 bool m_variablesHasBeenSet = false;
231
233 bool m_triggersHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace CodePipeline
238} // 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