AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartAutomationExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSMRequest.h>
11#include <aws/ssm/SSM_EXPORTS.h>
12#include <aws/ssm/model/AlarmConfiguration.h>
13#include <aws/ssm/model/ExecutionMode.h>
14#include <aws/ssm/model/Tag.h>
15#include <aws/ssm/model/Target.h>
16#include <aws/ssm/model/TargetLocation.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SSM {
22namespace Model {
23
27 public:
28 AWS_SSM_API StartAutomationExecutionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartAutomationExecution"; }
35
36 AWS_SSM_API Aws::String SerializePayload() const override;
37
39
41
49 inline const Aws::String& GetDocumentName() const { return m_documentName; }
50 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
51 template <typename DocumentNameT = Aws::String>
52 void SetDocumentName(DocumentNameT&& value) {
53 m_documentNameHasBeenSet = true;
54 m_documentName = std::forward<DocumentNameT>(value);
55 }
56 template <typename DocumentNameT = Aws::String>
58 SetDocumentName(std::forward<DocumentNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
68 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
69 template <typename DocumentVersionT = Aws::String>
70 void SetDocumentVersion(DocumentVersionT&& value) {
71 m_documentVersionHasBeenSet = true;
72 m_documentVersion = std::forward<DocumentVersionT>(value);
73 }
74 template <typename DocumentVersionT = Aws::String>
76 SetDocumentVersion(std::forward<DocumentVersionT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const { return m_parameters; }
87 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
88 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
89 void SetParameters(ParametersT&& value) {
90 m_parametersHasBeenSet = true;
91 m_parameters = std::forward<ParametersT>(value);
92 }
93 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
95 SetParameters(std::forward<ParametersT>(value));
96 return *this;
97 }
98 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
99 StartAutomationExecutionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
100 m_parametersHasBeenSet = true;
101 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
102 return *this;
103 }
105
107
111 inline const Aws::String& GetClientToken() const { return m_clientToken; }
112 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
113 template <typename ClientTokenT = Aws::String>
114 void SetClientToken(ClientTokenT&& value) {
115 m_clientTokenHasBeenSet = true;
116 m_clientToken = std::forward<ClientTokenT>(value);
117 }
118 template <typename ClientTokenT = Aws::String>
120 SetClientToken(std::forward<ClientTokenT>(value));
121 return *this;
122 }
124
126
130 inline ExecutionMode GetMode() const { return m_mode; }
131 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
132 inline void SetMode(ExecutionMode value) {
133 m_modeHasBeenSet = true;
134 m_mode = value;
135 }
137 SetMode(value);
138 return *this;
139 }
141
143
147 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
148 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
149 template <typename TargetParameterNameT = Aws::String>
150 void SetTargetParameterName(TargetParameterNameT&& value) {
151 m_targetParameterNameHasBeenSet = true;
152 m_targetParameterName = std::forward<TargetParameterNameT>(value);
153 }
154 template <typename TargetParameterNameT = Aws::String>
156 SetTargetParameterName(std::forward<TargetParameterNameT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
169 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
170 template <typename TargetsT = Aws::Vector<Target>>
171 void SetTargets(TargetsT&& value) {
172 m_targetsHasBeenSet = true;
173 m_targets = std::forward<TargetsT>(value);
174 }
175 template <typename TargetsT = Aws::Vector<Target>>
177 SetTargets(std::forward<TargetsT>(value));
178 return *this;
179 }
180 template <typename TargetsT = Target>
182 m_targetsHasBeenSet = true;
183 m_targets.emplace_back(std::forward<TargetsT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
194 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
195 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
196 void SetTargetMaps(TargetMapsT&& value) {
197 m_targetMapsHasBeenSet = true;
198 m_targetMaps = std::forward<TargetMapsT>(value);
199 }
200 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
202 SetTargetMaps(std::forward<TargetMapsT>(value));
203 return *this;
204 }
205 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
207 m_targetMapsHasBeenSet = true;
208 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
209 return *this;
210 }
212
214
221 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
222 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
223 template <typename MaxConcurrencyT = Aws::String>
224 void SetMaxConcurrency(MaxConcurrencyT&& value) {
225 m_maxConcurrencyHasBeenSet = true;
226 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
227 }
228 template <typename MaxConcurrencyT = Aws::String>
230 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
231 return *this;
232 }
234
236
253 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
254 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
255 template <typename MaxErrorsT = Aws::String>
256 void SetMaxErrors(MaxErrorsT&& value) {
257 m_maxErrorsHasBeenSet = true;
258 m_maxErrors = std::forward<MaxErrorsT>(value);
259 }
260 template <typename MaxErrorsT = Aws::String>
262 SetMaxErrors(std::forward<MaxErrorsT>(value));
263 return *this;
264 }
266
268
277 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
278 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
279 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
280 void SetTargetLocations(TargetLocationsT&& value) {
281 m_targetLocationsHasBeenSet = true;
282 m_targetLocations = std::forward<TargetLocationsT>(value);
283 }
284 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
286 SetTargetLocations(std::forward<TargetLocationsT>(value));
287 return *this;
288 }
289 template <typename TargetLocationsT = TargetLocation>
291 m_targetLocationsHasBeenSet = true;
292 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
293 return *this;
294 }
296
298
312 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
313 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
314 template <typename TagsT = Aws::Vector<Tag>>
315 void SetTags(TagsT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags = std::forward<TagsT>(value);
318 }
319 template <typename TagsT = Aws::Vector<Tag>>
321 SetTags(std::forward<TagsT>(value));
322 return *this;
323 }
324 template <typename TagsT = Tag>
326 m_tagsHasBeenSet = true;
327 m_tags.emplace_back(std::forward<TagsT>(value));
328 return *this;
329 }
331
333
336 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
337 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
338 template <typename AlarmConfigurationT = AlarmConfiguration>
339 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
340 m_alarmConfigurationHasBeenSet = true;
341 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
342 }
343 template <typename AlarmConfigurationT = AlarmConfiguration>
345 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
346 return *this;
347 }
349
351
356 inline const Aws::String& GetTargetLocationsURL() const { return m_targetLocationsURL; }
357 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
358 template <typename TargetLocationsURLT = Aws::String>
359 void SetTargetLocationsURL(TargetLocationsURLT&& value) {
360 m_targetLocationsURLHasBeenSet = true;
361 m_targetLocationsURL = std::forward<TargetLocationsURLT>(value);
362 }
363 template <typename TargetLocationsURLT = Aws::String>
365 SetTargetLocationsURL(std::forward<TargetLocationsURLT>(value));
366 return *this;
367 }
369 private:
370 Aws::String m_documentName;
371
372 Aws::String m_documentVersion;
373
375
376 Aws::String m_clientToken;
377
379
380 Aws::String m_targetParameterName;
381
382 Aws::Vector<Target> m_targets;
383
385
386 Aws::String m_maxConcurrency;
387
388 Aws::String m_maxErrors;
389
390 Aws::Vector<TargetLocation> m_targetLocations;
391
392 Aws::Vector<Tag> m_tags;
393
394 AlarmConfiguration m_alarmConfiguration;
395
396 Aws::String m_targetLocationsURL;
397 bool m_documentNameHasBeenSet = false;
398 bool m_documentVersionHasBeenSet = false;
399 bool m_parametersHasBeenSet = false;
400 bool m_clientTokenHasBeenSet = false;
401 bool m_modeHasBeenSet = false;
402 bool m_targetParameterNameHasBeenSet = false;
403 bool m_targetsHasBeenSet = false;
404 bool m_targetMapsHasBeenSet = false;
405 bool m_maxConcurrencyHasBeenSet = false;
406 bool m_maxErrorsHasBeenSet = false;
407 bool m_targetLocationsHasBeenSet = false;
408 bool m_tagsHasBeenSet = false;
409 bool m_alarmConfigurationHasBeenSet = false;
410 bool m_targetLocationsURLHasBeenSet = false;
411};
412
413} // namespace Model
414} // namespace SSM
415} // namespace Aws
StartAutomationExecutionRequest & WithParameters(ParametersT &&value)
StartAutomationExecutionRequest & WithMode(ExecutionMode value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
AWS_SSM_API Aws::String SerializePayload() const override
StartAutomationExecutionRequest & WithDocumentName(DocumentNameT &&value)
StartAutomationExecutionRequest & WithTargetMaps(TargetMapsT &&value)
StartAutomationExecutionRequest & WithTargetLocations(TargetLocationsT &&value)
StartAutomationExecutionRequest & WithTargetParameterName(TargetParameterNameT &&value)
StartAutomationExecutionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
StartAutomationExecutionRequest & AddTargetLocations(TargetLocationsT &&value)
StartAutomationExecutionRequest & WithTags(TagsT &&value)
StartAutomationExecutionRequest & WithClientToken(ClientTokenT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartAutomationExecutionRequest & AddTargets(TargetsT &&value)
StartAutomationExecutionRequest & WithMaxErrors(MaxErrorsT &&value)
StartAutomationExecutionRequest & AddTags(TagsT &&value)
StartAutomationExecutionRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
StartAutomationExecutionRequest & WithTargetLocationsURL(TargetLocationsURLT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
StartAutomationExecutionRequest & WithMaxConcurrency(MaxConcurrencyT &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
StartAutomationExecutionRequest & AddTargetMaps(TargetMapsT &&value)
StartAutomationExecutionRequest & WithTargets(TargetsT &&value)
StartAutomationExecutionRequest & WithDocumentVersion(DocumentVersionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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