AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartAutomationExecutionRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/ssm/model/ExecutionMode.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/ssm/model/AlarmConfiguration.h>
14#include <aws/ssm/model/Target.h>
15#include <aws/ssm/model/TargetLocation.h>
16#include <aws/ssm/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SSM
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "StartAutomationExecution"; }
38
39 AWS_SSM_API Aws::String SerializePayload() const override;
40
42
43
45
53 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
54 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
55 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
56 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
57 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
58 inline StartAutomationExecutionRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
59 inline StartAutomationExecutionRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
60 inline StartAutomationExecutionRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
62
64
67 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
68 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
69 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
70 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
71 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
73 inline StartAutomationExecutionRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
74 inline StartAutomationExecutionRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
76
78
82 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
83 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
84 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
85 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
88 inline StartAutomationExecutionRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
89 inline StartAutomationExecutionRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
90 inline StartAutomationExecutionRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
91 inline StartAutomationExecutionRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
92 inline StartAutomationExecutionRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
93 inline StartAutomationExecutionRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
95
97
101 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
102 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
103 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
104 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
105 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
106 inline StartAutomationExecutionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
107 inline StartAutomationExecutionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
108 inline StartAutomationExecutionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
110
112
116 inline const ExecutionMode& GetMode() const{ return m_mode; }
117 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
118 inline void SetMode(const ExecutionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
119 inline void SetMode(ExecutionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
120 inline StartAutomationExecutionRequest& WithMode(const ExecutionMode& value) { SetMode(value); return *this;}
121 inline StartAutomationExecutionRequest& WithMode(ExecutionMode&& value) { SetMode(std::move(value)); return *this;}
123
125
129 inline const Aws::String& GetTargetParameterName() const{ return m_targetParameterName; }
130 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
131 inline void SetTargetParameterName(const Aws::String& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = value; }
132 inline void SetTargetParameterName(Aws::String&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::move(value); }
133 inline void SetTargetParameterName(const char* value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName.assign(value); }
136 inline StartAutomationExecutionRequest& WithTargetParameterName(const char* value) { SetTargetParameterName(value); return *this;}
138
140
146 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
147 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
148 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
149 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
150 inline StartAutomationExecutionRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
151 inline StartAutomationExecutionRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
152 inline StartAutomationExecutionRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
153 inline StartAutomationExecutionRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
155
157
161 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const{ return m_targetMaps; }
162 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
163 inline void SetTargetMaps(const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps = value; }
164 inline void SetTargetMaps(Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::move(value); }
167 inline StartAutomationExecutionRequest& AddTargetMaps(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(value); return *this; }
168 inline StartAutomationExecutionRequest& AddTargetMaps(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(std::move(value)); return *this; }
170
172
179 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
180 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
181 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
182 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
183 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
185 inline StartAutomationExecutionRequest& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
186 inline StartAutomationExecutionRequest& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
188
190
207 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
208 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
209 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
210 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
211 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
212 inline StartAutomationExecutionRequest& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
213 inline StartAutomationExecutionRequest& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
214 inline StartAutomationExecutionRequest& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
216
218
227 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const{ return m_targetLocations; }
228 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
229 inline void SetTargetLocations(const Aws::Vector<TargetLocation>& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; }
230 inline void SetTargetLocations(Aws::Vector<TargetLocation>&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); }
233 inline StartAutomationExecutionRequest& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; }
234 inline StartAutomationExecutionRequest& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; }
236
238
248 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
249 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
250 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
251 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
252 inline StartAutomationExecutionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
253 inline StartAutomationExecutionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
254 inline StartAutomationExecutionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
255 inline StartAutomationExecutionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
257
259
262 inline const AlarmConfiguration& GetAlarmConfiguration() const{ return m_alarmConfiguration; }
263 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
264 inline void SetAlarmConfiguration(const AlarmConfiguration& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = value; }
265 inline void SetAlarmConfiguration(AlarmConfiguration&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::move(value); }
269
271
276 inline const Aws::String& GetTargetLocationsURL() const{ return m_targetLocationsURL; }
277 inline bool TargetLocationsURLHasBeenSet() const { return m_targetLocationsURLHasBeenSet; }
278 inline void SetTargetLocationsURL(const Aws::String& value) { m_targetLocationsURLHasBeenSet = true; m_targetLocationsURL = value; }
279 inline void SetTargetLocationsURL(Aws::String&& value) { m_targetLocationsURLHasBeenSet = true; m_targetLocationsURL = std::move(value); }
280 inline void SetTargetLocationsURL(const char* value) { m_targetLocationsURLHasBeenSet = true; m_targetLocationsURL.assign(value); }
283 inline StartAutomationExecutionRequest& WithTargetLocationsURL(const char* value) { SetTargetLocationsURL(value); return *this;}
285 private:
286
287 Aws::String m_documentName;
288 bool m_documentNameHasBeenSet = false;
289
290 Aws::String m_documentVersion;
291 bool m_documentVersionHasBeenSet = false;
292
294 bool m_parametersHasBeenSet = false;
295
296 Aws::String m_clientToken;
297 bool m_clientTokenHasBeenSet = false;
298
299 ExecutionMode m_mode;
300 bool m_modeHasBeenSet = false;
301
302 Aws::String m_targetParameterName;
303 bool m_targetParameterNameHasBeenSet = false;
304
305 Aws::Vector<Target> m_targets;
306 bool m_targetsHasBeenSet = false;
307
309 bool m_targetMapsHasBeenSet = false;
310
311 Aws::String m_maxConcurrency;
312 bool m_maxConcurrencyHasBeenSet = false;
313
314 Aws::String m_maxErrors;
315 bool m_maxErrorsHasBeenSet = false;
316
317 Aws::Vector<TargetLocation> m_targetLocations;
318 bool m_targetLocationsHasBeenSet = false;
319
320 Aws::Vector<Tag> m_tags;
321 bool m_tagsHasBeenSet = false;
322
323 AlarmConfiguration m_alarmConfiguration;
324 bool m_alarmConfigurationHasBeenSet = false;
325
326 Aws::String m_targetLocationsURL;
327 bool m_targetLocationsURLHasBeenSet = false;
328 };
329
330} // namespace Model
331} // namespace SSM
332} // namespace Aws
void SetTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
StartAutomationExecutionRequest & WithDocumentVersion(Aws::String &&value)
StartAutomationExecutionRequest & WithTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
StartAutomationExecutionRequest & WithTargetLocations(const Aws::Vector< TargetLocation > &value)
StartAutomationExecutionRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
StartAutomationExecutionRequest & WithMaxErrors(Aws::String &&value)
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
AWS_SSM_API Aws::String SerializePayload() const override
StartAutomationExecutionRequest & WithDocumentVersion(const char *value)
StartAutomationExecutionRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
StartAutomationExecutionRequest & WithMaxErrors(const char *value)
StartAutomationExecutionRequest & WithMaxConcurrency(Aws::String &&value)
StartAutomationExecutionRequest & WithTags(Aws::Vector< Tag > &&value)
StartAutomationExecutionRequest & AddTargetMaps(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
StartAutomationExecutionRequest & AddTags(const Tag &value)
StartAutomationExecutionRequest & WithMaxConcurrency(const Aws::String &value)
StartAutomationExecutionRequest & WithTargetParameterName(const char *value)
StartAutomationExecutionRequest & AddTargets(const Target &value)
StartAutomationExecutionRequest & WithTargetParameterName(Aws::String &&value)
StartAutomationExecutionRequest & WithDocumentName(Aws::String &&value)
StartAutomationExecutionRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
StartAutomationExecutionRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
StartAutomationExecutionRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
StartAutomationExecutionRequest & AddTags(Tag &&value)
StartAutomationExecutionRequest & WithTargetLocationsURL(Aws::String &&value)
StartAutomationExecutionRequest & WithMaxErrors(const Aws::String &value)
StartAutomationExecutionRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
StartAutomationExecutionRequest & AddTargets(Target &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTargetLocations(const Aws::Vector< TargetLocation > &value)
StartAutomationExecutionRequest & WithTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
StartAutomationExecutionRequest & WithTargets(Aws::Vector< Target > &&value)
void SetTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
StartAutomationExecutionRequest & WithAlarmConfiguration(AlarmConfiguration &&value)
StartAutomationExecutionRequest & WithClientToken(const char *value)
StartAutomationExecutionRequest & WithDocumentVersion(const Aws::String &value)
StartAutomationExecutionRequest & WithClientToken(const Aws::String &value)
StartAutomationExecutionRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
StartAutomationExecutionRequest & WithTargetLocations(Aws::Vector< TargetLocation > &&value)
StartAutomationExecutionRequest & WithMode(const ExecutionMode &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
StartAutomationExecutionRequest & WithAlarmConfiguration(const AlarmConfiguration &value)
StartAutomationExecutionRequest & WithTargetLocationsURL(const char *value)
void SetTargetLocations(Aws::Vector< TargetLocation > &&value)
StartAutomationExecutionRequest & AddTargetMaps(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
StartAutomationExecutionRequest & WithTargetParameterName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
StartAutomationExecutionRequest & AddTargetLocations(TargetLocation &&value)
StartAutomationExecutionRequest & WithTags(const Aws::Vector< Tag > &value)
StartAutomationExecutionRequest & WithTargetLocationsURL(const Aws::String &value)
StartAutomationExecutionRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< TargetLocation > & GetTargetLocations() const
StartAutomationExecutionRequest & WithDocumentName(const char *value)
StartAutomationExecutionRequest & AddTargetLocations(const TargetLocation &value)
StartAutomationExecutionRequest & WithDocumentName(const Aws::String &value)
StartAutomationExecutionRequest & WithMaxConcurrency(const char *value)
StartAutomationExecutionRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
StartAutomationExecutionRequest & WithTargets(const Aws::Vector< Target > &value)
StartAutomationExecutionRequest & WithMode(ExecutionMode &&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