AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ActionDeclaration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/ActionTypeId.h>
9#include <aws/codepipeline/model/EnvironmentVariable.h>
10#include <aws/codepipeline/model/InputArtifact.h>
11#include <aws/codepipeline/model/OutputArtifact.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodePipeline {
26namespace Model {
27
35 public:
36 AWS_CODEPIPELINE_API ActionDeclaration() = default;
37 AWS_CODEPIPELINE_API ActionDeclaration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEPIPELINE_API ActionDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
53 ActionDeclaration& WithName(NameT&& value) {
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const ActionTypeId& GetActionTypeId() const { return m_actionTypeId; }
64 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
65 template <typename ActionTypeIdT = ActionTypeId>
66 void SetActionTypeId(ActionTypeIdT&& value) {
67 m_actionTypeIdHasBeenSet = true;
68 m_actionTypeId = std::forward<ActionTypeIdT>(value);
69 }
70 template <typename ActionTypeIdT = ActionTypeId>
71 ActionDeclaration& WithActionTypeId(ActionTypeIdT&& value) {
72 SetActionTypeId(std::forward<ActionTypeIdT>(value));
73 return *this;
74 }
76
78
81 inline int GetRunOrder() const { return m_runOrder; }
82 inline bool RunOrderHasBeenSet() const { return m_runOrderHasBeenSet; }
83 inline void SetRunOrder(int value) {
84 m_runOrderHasBeenSet = true;
85 m_runOrder = value;
86 }
87 inline ActionDeclaration& WithRunOrder(int value) {
88 SetRunOrder(value);
89 return *this;
90 }
92
94
110 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
111 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
112 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
113 void SetConfiguration(ConfigurationT&& value) {
114 m_configurationHasBeenSet = true;
115 m_configuration = std::forward<ConfigurationT>(value);
116 }
117 template <typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
118 ActionDeclaration& WithConfiguration(ConfigurationT&& value) {
119 SetConfiguration(std::forward<ConfigurationT>(value));
120 return *this;
121 }
122 template <typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
123 ActionDeclaration& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
124 m_configurationHasBeenSet = true;
125 m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::Vector<Aws::String>& GetCommands() const { return m_commands; }
139 inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; }
140 template <typename CommandsT = Aws::Vector<Aws::String>>
141 void SetCommands(CommandsT&& value) {
142 m_commandsHasBeenSet = true;
143 m_commands = std::forward<CommandsT>(value);
144 }
145 template <typename CommandsT = Aws::Vector<Aws::String>>
146 ActionDeclaration& WithCommands(CommandsT&& value) {
147 SetCommands(std::forward<CommandsT>(value));
148 return *this;
149 }
150 template <typename CommandsT = Aws::String>
151 ActionDeclaration& AddCommands(CommandsT&& value) {
152 m_commandsHasBeenSet = true;
153 m_commands.emplace_back(std::forward<CommandsT>(value));
154 return *this;
155 }
157
159
163 inline const Aws::Vector<OutputArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
164 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
165 template <typename OutputArtifactsT = Aws::Vector<OutputArtifact>>
166 void SetOutputArtifacts(OutputArtifactsT&& value) {
167 m_outputArtifactsHasBeenSet = true;
168 m_outputArtifacts = std::forward<OutputArtifactsT>(value);
169 }
170 template <typename OutputArtifactsT = Aws::Vector<OutputArtifact>>
171 ActionDeclaration& WithOutputArtifacts(OutputArtifactsT&& value) {
172 SetOutputArtifacts(std::forward<OutputArtifactsT>(value));
173 return *this;
174 }
175 template <typename OutputArtifactsT = OutputArtifact>
176 ActionDeclaration& AddOutputArtifacts(OutputArtifactsT&& value) {
177 m_outputArtifactsHasBeenSet = true;
178 m_outputArtifacts.emplace_back(std::forward<OutputArtifactsT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
189 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
190 template <typename InputArtifactsT = Aws::Vector<InputArtifact>>
191 void SetInputArtifacts(InputArtifactsT&& value) {
192 m_inputArtifactsHasBeenSet = true;
193 m_inputArtifacts = std::forward<InputArtifactsT>(value);
194 }
195 template <typename InputArtifactsT = Aws::Vector<InputArtifact>>
196 ActionDeclaration& WithInputArtifacts(InputArtifactsT&& value) {
197 SetInputArtifacts(std::forward<InputArtifactsT>(value));
198 return *this;
199 }
200 template <typename InputArtifactsT = InputArtifact>
201 ActionDeclaration& AddInputArtifacts(InputArtifactsT&& value) {
202 m_inputArtifactsHasBeenSet = true;
203 m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value));
204 return *this;
205 }
207
209
213 inline const Aws::Vector<Aws::String>& GetOutputVariables() const { return m_outputVariables; }
214 inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; }
215 template <typename OutputVariablesT = Aws::Vector<Aws::String>>
216 void SetOutputVariables(OutputVariablesT&& value) {
217 m_outputVariablesHasBeenSet = true;
218 m_outputVariables = std::forward<OutputVariablesT>(value);
219 }
220 template <typename OutputVariablesT = Aws::Vector<Aws::String>>
221 ActionDeclaration& WithOutputVariables(OutputVariablesT&& value) {
222 SetOutputVariables(std::forward<OutputVariablesT>(value));
223 return *this;
224 }
225 template <typename OutputVariablesT = Aws::String>
226 ActionDeclaration& AddOutputVariables(OutputVariablesT&& value) {
227 m_outputVariablesHasBeenSet = true;
228 m_outputVariables.emplace_back(std::forward<OutputVariablesT>(value));
229 return *this;
230 }
232
234
238 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
239 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
240 template <typename RoleArnT = Aws::String>
241 void SetRoleArn(RoleArnT&& value) {
242 m_roleArnHasBeenSet = true;
243 m_roleArn = std::forward<RoleArnT>(value);
244 }
245 template <typename RoleArnT = Aws::String>
246 ActionDeclaration& WithRoleArn(RoleArnT&& value) {
247 SetRoleArn(std::forward<RoleArnT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetRegion() const { return m_region; }
257 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
258 template <typename RegionT = Aws::String>
259 void SetRegion(RegionT&& value) {
260 m_regionHasBeenSet = true;
261 m_region = std::forward<RegionT>(value);
262 }
263 template <typename RegionT = Aws::String>
264 ActionDeclaration& WithRegion(RegionT&& value) {
265 SetRegion(std::forward<RegionT>(value));
266 return *this;
267 }
269
271
275 inline const Aws::String& GetNamespace() const { return m_namespace; }
276 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
277 template <typename NamespaceT = Aws::String>
278 void SetNamespace(NamespaceT&& value) {
279 m_namespaceHasBeenSet = true;
280 m_namespace = std::forward<NamespaceT>(value);
281 }
282 template <typename NamespaceT = Aws::String>
283 ActionDeclaration& WithNamespace(NamespaceT&& value) {
284 SetNamespace(std::forward<NamespaceT>(value));
285 return *this;
286 }
288
290
297 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
298 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
299 inline void SetTimeoutInMinutes(int value) {
300 m_timeoutInMinutesHasBeenSet = true;
301 m_timeoutInMinutes = value;
302 }
304 SetTimeoutInMinutes(value);
305 return *this;
306 }
308
310
313 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
314 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
315 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
316 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
317 m_environmentVariablesHasBeenSet = true;
318 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
319 }
320 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
321 ActionDeclaration& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
322 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
323 return *this;
324 }
325 template <typename EnvironmentVariablesT = EnvironmentVariable>
326 ActionDeclaration& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
327 m_environmentVariablesHasBeenSet = true;
328 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
329 return *this;
330 }
332 private:
333 Aws::String m_name;
334
335 ActionTypeId m_actionTypeId;
336
337 int m_runOrder{0};
338
340
341 Aws::Vector<Aws::String> m_commands;
342
343 Aws::Vector<OutputArtifact> m_outputArtifacts;
344
345 Aws::Vector<InputArtifact> m_inputArtifacts;
346
347 Aws::Vector<Aws::String> m_outputVariables;
348
349 Aws::String m_roleArn;
350
351 Aws::String m_region;
352
353 Aws::String m_namespace;
354
355 int m_timeoutInMinutes{0};
356
357 Aws::Vector<EnvironmentVariable> m_environmentVariables;
358 bool m_nameHasBeenSet = false;
359 bool m_actionTypeIdHasBeenSet = false;
360 bool m_runOrderHasBeenSet = false;
361 bool m_configurationHasBeenSet = false;
362 bool m_commandsHasBeenSet = false;
363 bool m_outputArtifactsHasBeenSet = false;
364 bool m_inputArtifactsHasBeenSet = false;
365 bool m_outputVariablesHasBeenSet = false;
366 bool m_roleArnHasBeenSet = false;
367 bool m_regionHasBeenSet = false;
368 bool m_namespaceHasBeenSet = false;
369 bool m_timeoutInMinutesHasBeenSet = false;
370 bool m_environmentVariablesHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace CodePipeline
375} // namespace Aws
const Aws::Vector< OutputArtifact > & GetOutputArtifacts() const
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ActionDeclaration & AddOutputVariables(OutputVariablesT &&value)
ActionDeclaration & WithNamespace(NamespaceT &&value)
ActionDeclaration & WithActionTypeId(ActionTypeIdT &&value)
void SetOutputArtifacts(OutputArtifactsT &&value)
ActionDeclaration & WithName(NameT &&value)
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
ActionDeclaration & WithInputArtifacts(InputArtifactsT &&value)
const Aws::Vector< Aws::String > & GetCommands() const
ActionDeclaration & WithRoleArn(RoleArnT &&value)
const Aws::Vector< Aws::String > & GetOutputVariables() const
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
ActionDeclaration & AddCommands(CommandsT &&value)
ActionDeclaration & WithRunOrder(int value)
ActionDeclaration & AddInputArtifacts(InputArtifactsT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
ActionDeclaration & AddEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_CODEPIPELINE_API ActionDeclaration(Aws::Utils::Json::JsonView jsonValue)
ActionDeclaration & WithOutputVariables(OutputVariablesT &&value)
ActionDeclaration & AddOutputArtifacts(OutputArtifactsT &&value)
AWS_CODEPIPELINE_API ActionDeclaration()=default
void SetInputArtifacts(InputArtifactsT &&value)
ActionDeclaration & WithOutputArtifacts(OutputArtifactsT &&value)
AWS_CODEPIPELINE_API ActionDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
ActionDeclaration & WithConfiguration(ConfigurationT &&value)
ActionDeclaration & WithTimeoutInMinutes(int value)
void SetOutputVariables(OutputVariablesT &&value)
void SetConfiguration(ConfigurationT &&value)
ActionDeclaration & WithEnvironmentVariables(EnvironmentVariablesT &&value)
ActionDeclaration & WithRegion(RegionT &&value)
ActionDeclaration & AddConfiguration(ConfigurationKeyT &&key, ConfigurationValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
ActionDeclaration & WithCommands(CommandsT &&value)
const ActionTypeId & GetActionTypeId() const
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