AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActionDeclaration.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/ActionTypeId.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/OutputArtifact.h>
13#include <aws/codepipeline/model/InputArtifact.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodePipeline
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODEPIPELINE_API ActionDeclaration();
41 AWS_CODEPIPELINE_API ActionDeclaration(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API ActionDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline ActionDeclaration& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline ActionDeclaration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline ActionDeclaration& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const ActionTypeId& GetActionTypeId() const{ return m_actionTypeId; }
65 inline bool ActionTypeIdHasBeenSet() const { return m_actionTypeIdHasBeenSet; }
66 inline void SetActionTypeId(const ActionTypeId& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = value; }
67 inline void SetActionTypeId(ActionTypeId&& value) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::move(value); }
68 inline ActionDeclaration& WithActionTypeId(const ActionTypeId& value) { SetActionTypeId(value); return *this;}
69 inline ActionDeclaration& WithActionTypeId(ActionTypeId&& value) { SetActionTypeId(std::move(value)); return *this;}
71
73
76 inline int GetRunOrder() const{ return m_runOrder; }
77 inline bool RunOrderHasBeenSet() const { return m_runOrderHasBeenSet; }
78 inline void SetRunOrder(int value) { m_runOrderHasBeenSet = true; m_runOrder = value; }
79 inline ActionDeclaration& WithRunOrder(int value) { SetRunOrder(value); return *this;}
81
83
99 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const{ return m_configuration; }
100 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
101 inline void SetConfiguration(const Aws::Map<Aws::String, Aws::String>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
102 inline void SetConfiguration(Aws::Map<Aws::String, Aws::String>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
105 inline ActionDeclaration& AddConfiguration(const Aws::String& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
106 inline ActionDeclaration& AddConfiguration(Aws::String&& key, const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
107 inline ActionDeclaration& AddConfiguration(const Aws::String& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
108 inline ActionDeclaration& AddConfiguration(Aws::String&& key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), std::move(value)); return *this; }
109 inline ActionDeclaration& AddConfiguration(const char* key, Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, std::move(value)); return *this; }
110 inline ActionDeclaration& AddConfiguration(Aws::String&& key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(std::move(key), value); return *this; }
111 inline ActionDeclaration& AddConfiguration(const char* key, const char* value) { m_configurationHasBeenSet = true; m_configuration.emplace(key, value); return *this; }
113
115
122 inline const Aws::Vector<Aws::String>& GetCommands() const{ return m_commands; }
123 inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; }
124 inline void SetCommands(const Aws::Vector<Aws::String>& value) { m_commandsHasBeenSet = true; m_commands = value; }
125 inline void SetCommands(Aws::Vector<Aws::String>&& value) { m_commandsHasBeenSet = true; m_commands = std::move(value); }
126 inline ActionDeclaration& WithCommands(const Aws::Vector<Aws::String>& value) { SetCommands(value); return *this;}
127 inline ActionDeclaration& WithCommands(Aws::Vector<Aws::String>&& value) { SetCommands(std::move(value)); return *this;}
128 inline ActionDeclaration& AddCommands(const Aws::String& value) { m_commandsHasBeenSet = true; m_commands.push_back(value); return *this; }
129 inline ActionDeclaration& AddCommands(Aws::String&& value) { m_commandsHasBeenSet = true; m_commands.push_back(std::move(value)); return *this; }
130 inline ActionDeclaration& AddCommands(const char* value) { m_commandsHasBeenSet = true; m_commands.push_back(value); return *this; }
132
134
138 inline const Aws::Vector<OutputArtifact>& GetOutputArtifacts() const{ return m_outputArtifacts; }
139 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
140 inline void SetOutputArtifacts(const Aws::Vector<OutputArtifact>& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = value; }
141 inline void SetOutputArtifacts(Aws::Vector<OutputArtifact>&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = std::move(value); }
143 inline ActionDeclaration& WithOutputArtifacts(Aws::Vector<OutputArtifact>&& value) { SetOutputArtifacts(std::move(value)); return *this;}
144 inline ActionDeclaration& AddOutputArtifacts(const OutputArtifact& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.push_back(value); return *this; }
145 inline ActionDeclaration& AddOutputArtifacts(OutputArtifact&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.push_back(std::move(value)); return *this; }
147
149
153 inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const{ return m_inputArtifacts; }
154 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
155 inline void SetInputArtifacts(const Aws::Vector<InputArtifact>& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = value; }
156 inline void SetInputArtifacts(Aws::Vector<InputArtifact>&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::move(value); }
158 inline ActionDeclaration& WithInputArtifacts(Aws::Vector<InputArtifact>&& value) { SetInputArtifacts(std::move(value)); return *this;}
159 inline ActionDeclaration& AddInputArtifacts(const InputArtifact& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(value); return *this; }
160 inline ActionDeclaration& AddInputArtifacts(InputArtifact&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.push_back(std::move(value)); return *this; }
162
164
168 inline const Aws::Vector<Aws::String>& GetOutputVariables() const{ return m_outputVariables; }
169 inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; }
170 inline void SetOutputVariables(const Aws::Vector<Aws::String>& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = value; }
171 inline void SetOutputVariables(Aws::Vector<Aws::String>&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = std::move(value); }
173 inline ActionDeclaration& WithOutputVariables(Aws::Vector<Aws::String>&& value) { SetOutputVariables(std::move(value)); return *this;}
174 inline ActionDeclaration& AddOutputVariables(const Aws::String& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(value); return *this; }
175 inline ActionDeclaration& AddOutputVariables(Aws::String&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(std::move(value)); return *this; }
176 inline ActionDeclaration& AddOutputVariables(const char* value) { m_outputVariablesHasBeenSet = true; m_outputVariables.push_back(value); return *this; }
178
180
184 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
185 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
186 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
187 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
188 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
189 inline ActionDeclaration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
190 inline ActionDeclaration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
191 inline ActionDeclaration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
193
195
198 inline const Aws::String& GetRegion() const{ return m_region; }
199 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
200 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
201 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
202 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
203 inline ActionDeclaration& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
204 inline ActionDeclaration& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
205 inline ActionDeclaration& WithRegion(const char* value) { SetRegion(value); return *this;}
207
209
213 inline const Aws::String& GetNamespace() const{ return m_namespace; }
214 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
215 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
216 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
217 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
218 inline ActionDeclaration& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
219 inline ActionDeclaration& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
220 inline ActionDeclaration& WithNamespace(const char* value) { SetNamespace(value); return *this;}
222
224
231 inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; }
232 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
233 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
234 inline ActionDeclaration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
236 private:
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
241 ActionTypeId m_actionTypeId;
242 bool m_actionTypeIdHasBeenSet = false;
243
244 int m_runOrder;
245 bool m_runOrderHasBeenSet = false;
246
248 bool m_configurationHasBeenSet = false;
249
250 Aws::Vector<Aws::String> m_commands;
251 bool m_commandsHasBeenSet = false;
252
253 Aws::Vector<OutputArtifact> m_outputArtifacts;
254 bool m_outputArtifactsHasBeenSet = false;
255
256 Aws::Vector<InputArtifact> m_inputArtifacts;
257 bool m_inputArtifactsHasBeenSet = false;
258
259 Aws::Vector<Aws::String> m_outputVariables;
260 bool m_outputVariablesHasBeenSet = false;
261
262 Aws::String m_roleArn;
263 bool m_roleArnHasBeenSet = false;
264
265 Aws::String m_region;
266 bool m_regionHasBeenSet = false;
267
268 Aws::String m_namespace;
269 bool m_namespaceHasBeenSet = false;
270
271 int m_timeoutInMinutes;
272 bool m_timeoutInMinutesHasBeenSet = false;
273 };
274
275} // namespace Model
276} // namespace CodePipeline
277} // namespace Aws
const Aws::Vector< OutputArtifact > & GetOutputArtifacts() const
ActionDeclaration & WithNamespace(const Aws::String &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ActionDeclaration & AddConfiguration(Aws::String &&key, const Aws::String &value)
ActionDeclaration & WithInputArtifacts(Aws::Vector< InputArtifact > &&value)
ActionDeclaration & WithConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
void SetOutputArtifacts(const Aws::Vector< OutputArtifact > &value)
ActionDeclaration & WithNamespace(const char *value)
ActionDeclaration & WithName(const char *value)
ActionDeclaration & WithName(Aws::String &&value)
ActionDeclaration & WithRegion(Aws::String &&value)
ActionDeclaration & WithRoleArn(const char *value)
ActionDeclaration & WithConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
ActionDeclaration & WithOutputArtifacts(Aws::Vector< OutputArtifact > &&value)
ActionDeclaration & AddCommands(Aws::String &&value)
ActionDeclaration & WithOutputArtifacts(const Aws::Vector< OutputArtifact > &value)
const Aws::Vector< InputArtifact > & GetInputArtifacts() const
ActionDeclaration & WithOutputVariables(Aws::Vector< Aws::String > &&value)
void SetConfiguration(Aws::Map< Aws::String, Aws::String > &&value)
ActionDeclaration & WithOutputVariables(const Aws::Vector< Aws::String > &value)
ActionDeclaration & WithInputArtifacts(const Aws::Vector< InputArtifact > &value)
ActionDeclaration & WithNamespace(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCommands() const
ActionDeclaration & AddOutputArtifacts(OutputArtifact &&value)
void SetOutputArtifacts(Aws::Vector< OutputArtifact > &&value)
ActionDeclaration & AddCommands(const char *value)
void SetOutputVariables(Aws::Vector< Aws::String > &&value)
ActionDeclaration & AddCommands(const Aws::String &value)
ActionDeclaration & AddConfiguration(Aws::String &&key, Aws::String &&value)
const Aws::Vector< Aws::String > & GetOutputVariables() const
ActionDeclaration & AddConfiguration(Aws::String &&key, const char *value)
ActionDeclaration & WithRoleArn(Aws::String &&value)
ActionDeclaration & WithRunOrder(int value)
ActionDeclaration & AddInputArtifacts(InputArtifact &&value)
ActionDeclaration & WithCommands(const Aws::Vector< Aws::String > &value)
AWS_CODEPIPELINE_API ActionDeclaration(Aws::Utils::Json::JsonView jsonValue)
ActionDeclaration & WithRoleArn(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
void SetInputArtifacts(const Aws::Vector< InputArtifact > &value)
void SetConfiguration(const Aws::Map< Aws::String, Aws::String > &value)
ActionDeclaration & AddOutputVariables(const Aws::String &value)
ActionDeclaration & WithActionTypeId(const ActionTypeId &value)
ActionDeclaration & AddConfiguration(const Aws::String &key, const Aws::String &value)
AWS_CODEPIPELINE_API ActionDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInputArtifacts(Aws::Vector< InputArtifact > &&value)
ActionDeclaration & AddConfiguration(const Aws::String &key, Aws::String &&value)
ActionDeclaration & WithRegion(const Aws::String &value)
ActionDeclaration & AddConfiguration(const char *key, const char *value)
ActionDeclaration & WithTimeoutInMinutes(int value)
ActionDeclaration & AddOutputArtifacts(const OutputArtifact &value)
ActionDeclaration & WithCommands(Aws::Vector< Aws::String > &&value)
void SetActionTypeId(const ActionTypeId &value)
void SetCommands(const Aws::Vector< Aws::String > &value)
void SetNamespace(const Aws::String &value)
ActionDeclaration & AddInputArtifacts(const InputArtifact &value)
ActionDeclaration & WithName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetConfiguration() const
ActionDeclaration & AddOutputVariables(const char *value)
ActionDeclaration & AddOutputVariables(Aws::String &&value)
ActionDeclaration & WithActionTypeId(ActionTypeId &&value)
ActionDeclaration & WithRegion(const char *value)
void SetOutputVariables(const Aws::Vector< Aws::String > &value)
void SetCommands(Aws::Vector< Aws::String > &&value)
ActionDeclaration & AddConfiguration(const char *key, Aws::String &&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