AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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 <aws/codepipeline/model/EnvironmentVariable.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace CodePipeline
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_CODEPIPELINE_API ActionDeclaration() = default;
42 AWS_CODEPIPELINE_API ActionDeclaration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API ActionDeclaration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 ActionDeclaration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_actionTypeIdHasBeenSet = true; m_actionTypeId = std::forward<ActionTypeIdT>(value); }
67 template<typename ActionTypeIdT = ActionTypeId>
68 ActionDeclaration& WithActionTypeId(ActionTypeIdT&& value) { SetActionTypeId(std::forward<ActionTypeIdT>(value)); return *this;}
70
72
75 inline int GetRunOrder() const { return m_runOrder; }
76 inline bool RunOrderHasBeenSet() const { return m_runOrderHasBeenSet; }
77 inline void SetRunOrder(int value) { m_runOrderHasBeenSet = true; m_runOrder = value; }
78 inline ActionDeclaration& WithRunOrder(int value) { SetRunOrder(value); return *this;}
80
82
98 inline const Aws::Map<Aws::String, Aws::String>& GetConfiguration() const { return m_configuration; }
99 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
100 template<typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
101 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
102 template<typename ConfigurationT = Aws::Map<Aws::String, Aws::String>>
103 ActionDeclaration& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
104 template<typename ConfigurationKeyT = Aws::String, typename ConfigurationValueT = Aws::String>
105 ActionDeclaration& AddConfiguration(ConfigurationKeyT&& key, ConfigurationValueT&& value) {
106 m_configurationHasBeenSet = true; m_configuration.emplace(std::forward<ConfigurationKeyT>(key), std::forward<ConfigurationValueT>(value)); return *this;
107 }
109
111
118 inline const Aws::Vector<Aws::String>& GetCommands() const { return m_commands; }
119 inline bool CommandsHasBeenSet() const { return m_commandsHasBeenSet; }
120 template<typename CommandsT = Aws::Vector<Aws::String>>
121 void SetCommands(CommandsT&& value) { m_commandsHasBeenSet = true; m_commands = std::forward<CommandsT>(value); }
122 template<typename CommandsT = Aws::Vector<Aws::String>>
123 ActionDeclaration& WithCommands(CommandsT&& value) { SetCommands(std::forward<CommandsT>(value)); return *this;}
124 template<typename CommandsT = Aws::String>
125 ActionDeclaration& AddCommands(CommandsT&& value) { m_commandsHasBeenSet = true; m_commands.emplace_back(std::forward<CommandsT>(value)); return *this; }
127
129
133 inline const Aws::Vector<OutputArtifact>& GetOutputArtifacts() const { return m_outputArtifacts; }
134 inline bool OutputArtifactsHasBeenSet() const { return m_outputArtifactsHasBeenSet; }
135 template<typename OutputArtifactsT = Aws::Vector<OutputArtifact>>
136 void SetOutputArtifacts(OutputArtifactsT&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts = std::forward<OutputArtifactsT>(value); }
137 template<typename OutputArtifactsT = Aws::Vector<OutputArtifact>>
138 ActionDeclaration& WithOutputArtifacts(OutputArtifactsT&& value) { SetOutputArtifacts(std::forward<OutputArtifactsT>(value)); return *this;}
139 template<typename OutputArtifactsT = OutputArtifact>
140 ActionDeclaration& AddOutputArtifacts(OutputArtifactsT&& value) { m_outputArtifactsHasBeenSet = true; m_outputArtifacts.emplace_back(std::forward<OutputArtifactsT>(value)); return *this; }
142
144
148 inline const Aws::Vector<InputArtifact>& GetInputArtifacts() const { return m_inputArtifacts; }
149 inline bool InputArtifactsHasBeenSet() const { return m_inputArtifactsHasBeenSet; }
150 template<typename InputArtifactsT = Aws::Vector<InputArtifact>>
151 void SetInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts = std::forward<InputArtifactsT>(value); }
152 template<typename InputArtifactsT = Aws::Vector<InputArtifact>>
153 ActionDeclaration& WithInputArtifacts(InputArtifactsT&& value) { SetInputArtifacts(std::forward<InputArtifactsT>(value)); return *this;}
154 template<typename InputArtifactsT = InputArtifact>
155 ActionDeclaration& AddInputArtifacts(InputArtifactsT&& value) { m_inputArtifactsHasBeenSet = true; m_inputArtifacts.emplace_back(std::forward<InputArtifactsT>(value)); return *this; }
157
159
163 inline const Aws::Vector<Aws::String>& GetOutputVariables() const { return m_outputVariables; }
164 inline bool OutputVariablesHasBeenSet() const { return m_outputVariablesHasBeenSet; }
165 template<typename OutputVariablesT = Aws::Vector<Aws::String>>
166 void SetOutputVariables(OutputVariablesT&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables = std::forward<OutputVariablesT>(value); }
167 template<typename OutputVariablesT = Aws::Vector<Aws::String>>
168 ActionDeclaration& WithOutputVariables(OutputVariablesT&& value) { SetOutputVariables(std::forward<OutputVariablesT>(value)); return *this;}
169 template<typename OutputVariablesT = Aws::String>
170 ActionDeclaration& AddOutputVariables(OutputVariablesT&& value) { m_outputVariablesHasBeenSet = true; m_outputVariables.emplace_back(std::forward<OutputVariablesT>(value)); return *this; }
172
174
178 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
179 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
180 template<typename RoleArnT = Aws::String>
181 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
182 template<typename RoleArnT = Aws::String>
183 ActionDeclaration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
185
187
190 inline const Aws::String& GetRegion() const { return m_region; }
191 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
192 template<typename RegionT = Aws::String>
193 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
194 template<typename RegionT = Aws::String>
195 ActionDeclaration& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
197
199
203 inline const Aws::String& GetNamespace() const { return m_namespace; }
204 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
205 template<typename NamespaceT = Aws::String>
206 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
207 template<typename NamespaceT = Aws::String>
208 ActionDeclaration& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
210
212
219 inline int GetTimeoutInMinutes() const { return m_timeoutInMinutes; }
220 inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; }
221 inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; }
222 inline ActionDeclaration& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;}
224
226
229 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
230 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
231 template<typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
232 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
233 template<typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
234 ActionDeclaration& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
235 template<typename EnvironmentVariablesT = EnvironmentVariable>
236 ActionDeclaration& AddEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value)); return *this; }
238 private:
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 ActionTypeId m_actionTypeId;
244 bool m_actionTypeIdHasBeenSet = false;
245
246 int m_runOrder{0};
247 bool m_runOrderHasBeenSet = false;
248
250 bool m_configurationHasBeenSet = false;
251
252 Aws::Vector<Aws::String> m_commands;
253 bool m_commandsHasBeenSet = false;
254
255 Aws::Vector<OutputArtifact> m_outputArtifacts;
256 bool m_outputArtifactsHasBeenSet = false;
257
258 Aws::Vector<InputArtifact> m_inputArtifacts;
259 bool m_inputArtifactsHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_outputVariables;
262 bool m_outputVariablesHasBeenSet = false;
263
264 Aws::String m_roleArn;
265 bool m_roleArnHasBeenSet = false;
266
267 Aws::String m_region;
268 bool m_regionHasBeenSet = false;
269
270 Aws::String m_namespace;
271 bool m_namespaceHasBeenSet = false;
272
273 int m_timeoutInMinutes{0};
274 bool m_timeoutInMinutesHasBeenSet = false;
275
276 Aws::Vector<EnvironmentVariable> m_environmentVariables;
277 bool m_environmentVariablesHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace CodePipeline
282} // 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