AWS SDK for C++  1.9.71
AWS SDK for C++
Runbook.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
11 #include <aws/ssm/model/Target.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace SSM
26 {
27 namespace Model
28 {
29 
39  {
40  public:
45 
46 
50  inline const Aws::String& GetDocumentName() const{ return m_documentName; }
51 
55  inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
56 
60  inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
61 
65  inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
66 
70  inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
71 
75  inline Runbook& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
76 
80  inline Runbook& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
81 
85  inline Runbook& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
86 
87 
91  inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
92 
96  inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
97 
101  inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
102 
106  inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
107 
111  inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
112 
116  inline Runbook& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
117 
121  inline Runbook& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
122 
126  inline Runbook& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
127 
128 
133  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
134 
139  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
140 
145  inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
146 
151  inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
152 
157  inline Runbook& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
158 
163  inline Runbook& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
164 
169  inline Runbook& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
170 
175  inline Runbook& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
176 
181  inline Runbook& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
182 
187  inline Runbook& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
188 
193  inline Runbook& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
194 
199  inline Runbook& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
200 
201 
206  inline const Aws::String& GetTargetParameterName() const{ return m_targetParameterName; }
207 
212  inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
213 
218  inline void SetTargetParameterName(const Aws::String& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = value; }
219 
224  inline void SetTargetParameterName(Aws::String&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::move(value); }
225 
230  inline void SetTargetParameterName(const char* value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName.assign(value); }
231 
236  inline Runbook& WithTargetParameterName(const Aws::String& value) { SetTargetParameterName(value); return *this;}
237 
242  inline Runbook& WithTargetParameterName(Aws::String&& value) { SetTargetParameterName(std::move(value)); return *this;}
243 
248  inline Runbook& WithTargetParameterName(const char* value) { SetTargetParameterName(value); return *this;}
249 
250 
255  inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
256 
261  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
262 
267  inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
268 
273  inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
274 
279  inline Runbook& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
280 
285  inline Runbook& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
286 
291  inline Runbook& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
292 
297  inline Runbook& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
298 
299 
305  inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
306 
312  inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
313 
319  inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
320 
326  inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
327 
333  inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
334 
340  inline Runbook& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
341 
347  inline Runbook& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
348 
354  inline Runbook& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
355 
356 
362  inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
363 
369  inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
370 
376  inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
377 
383  inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
384 
390  inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
391 
397  inline Runbook& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
398 
404  inline Runbook& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
405 
411  inline Runbook& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
412 
413 
418  inline const Aws::Vector<TargetLocation>& GetTargetLocations() const{ return m_targetLocations; }
419 
424  inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
425 
430  inline void SetTargetLocations(const Aws::Vector<TargetLocation>& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; }
431 
436  inline void SetTargetLocations(Aws::Vector<TargetLocation>&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); }
437 
442  inline Runbook& WithTargetLocations(const Aws::Vector<TargetLocation>& value) { SetTargetLocations(value); return *this;}
443 
448  inline Runbook& WithTargetLocations(Aws::Vector<TargetLocation>&& value) { SetTargetLocations(std::move(value)); return *this;}
449 
454  inline Runbook& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; }
455 
460  inline Runbook& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; }
461 
462  private:
463 
464  Aws::String m_documentName;
465  bool m_documentNameHasBeenSet;
466 
467  Aws::String m_documentVersion;
468  bool m_documentVersionHasBeenSet;
469 
471  bool m_parametersHasBeenSet;
472 
473  Aws::String m_targetParameterName;
474  bool m_targetParameterNameHasBeenSet;
475 
476  Aws::Vector<Target> m_targets;
477  bool m_targetsHasBeenSet;
478 
479  Aws::String m_maxConcurrency;
480  bool m_maxConcurrencyHasBeenSet;
481 
482  Aws::String m_maxErrors;
483  bool m_maxErrorsHasBeenSet;
484 
485  Aws::Vector<TargetLocation> m_targetLocations;
486  bool m_targetLocationsHasBeenSet;
487  };
488 
489 } // namespace Model
490 } // namespace SSM
491 } // namespace Aws
Aws::SSM::Model::Runbook::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSM::Model::Runbook::WithDocumentVersion
Runbook & WithDocumentVersion(const char *value)
Definition: Runbook.h:126
Aws::SSM::Model::Runbook::GetMaxConcurrency
const Aws::String & GetMaxConcurrency() const
Definition: Runbook.h:305
Aws::SSM::Model::Runbook::WithDocumentVersion
Runbook & WithDocumentVersion(Aws::String &&value)
Definition: Runbook.h:121
Aws::SSM::Model::Runbook::GetTargetParameterName
const Aws::String & GetTargetParameterName() const
Definition: Runbook.h:206
Aws::SSM::Model::Runbook::SetDocumentName
void SetDocumentName(const char *value)
Definition: Runbook.h:70
Aws::SSM::Model::Runbook::WithParameters
Runbook & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Runbook.h:163
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::Runbook::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: Runbook.h:139
Aws::SSM::Model::Runbook::GetParameters
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition: Runbook.h:133
Aws::SSM::Model::Runbook::SetDocumentName
void SetDocumentName(Aws::String &&value)
Definition: Runbook.h:65
Aws::SSM::Model::Runbook::SetDocumentVersion
void SetDocumentVersion(const char *value)
Definition: Runbook.h:111
Aws::SSM::Model::Runbook::AddTargetLocations
Runbook & AddTargetLocations(const TargetLocation &value)
Definition: Runbook.h:454
Aws::SSM::Model::Runbook::WithMaxErrors
Runbook & WithMaxErrors(const char *value)
Definition: Runbook.h:411
Aws::SSM::Model::Runbook::WithTargets
Runbook & WithTargets(Aws::Vector< Target > &&value)
Definition: Runbook.h:285
Aws::SSM::Model::Runbook::MaxConcurrencyHasBeenSet
bool MaxConcurrencyHasBeenSet() const
Definition: Runbook.h:312
Aws::SSM::Model::TargetLocation
Definition: TargetLocation.h:34
Aws::SSM::Model::Runbook::GetTargets
const Aws::Vector< Target > & GetTargets() const
Definition: Runbook.h:255
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::Runbook
Definition: Runbook.h:39
Aws::SSM::Model::Runbook::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: Runbook.h:151
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: Runbook.h:181
AWSVector.h
Aws::SSM::Model::Runbook::SetTargetParameterName
void SetTargetParameterName(Aws::String &&value)
Definition: Runbook.h:224
Aws::SSM::Model::Runbook::WithTargetParameterName
Runbook & WithTargetParameterName(Aws::String &&value)
Definition: Runbook.h:242
Aws::SSM::Model::Runbook::WithTargetParameterName
Runbook & WithTargetParameterName(const Aws::String &value)
Definition: Runbook.h:236
Aws::SSM::Model::Runbook::SetDocumentName
void SetDocumentName(const Aws::String &value)
Definition: Runbook.h:60
Aws::SSM::Model::Runbook::WithDocumentVersion
Runbook & WithDocumentVersion(const Aws::String &value)
Definition: Runbook.h:116
Aws::SSM::Model::Runbook::WithTargetParameterName
Runbook & WithTargetParameterName(const char *value)
Definition: Runbook.h:248
Aws::SSM::Model::Runbook::WithTargets
Runbook & WithTargets(const Aws::Vector< Target > &value)
Definition: Runbook.h:279
Aws::SSM::Model::Runbook::SetDocumentVersion
void SetDocumentVersion(const Aws::String &value)
Definition: Runbook.h:101
Aws::SSM::Model::Target
Definition: Target.h:76
Aws::SSM::Model::Runbook::WithParameters
Runbook & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Runbook.h:157
Aws::SSM::Model::Runbook::operator=
Runbook & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::Runbook::SetTargetParameterName
void SetTargetParameterName(const char *value)
Definition: Runbook.h:230
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
Definition: Runbook.h:199
Aws::SSM::Model::Runbook::SetMaxErrors
void SetMaxErrors(const Aws::String &value)
Definition: Runbook.h:376
Aws::SSM::Model::Runbook::SetTargetParameterName
void SetTargetParameterName(const Aws::String &value)
Definition: Runbook.h:218
Aws::SSM::Model::Runbook::AddTargetLocations
Runbook & AddTargetLocations(TargetLocation &&value)
Definition: Runbook.h:460
Aws::SSM::Model::Runbook::GetTargetLocations
const Aws::Vector< TargetLocation > & GetTargetLocations() const
Definition: Runbook.h:418
Aws::SSM::Model::Runbook::SetTargets
void SetTargets(const Aws::Vector< Target > &value)
Definition: Runbook.h:267
Aws::SSM::Model::Runbook::MaxErrorsHasBeenSet
bool MaxErrorsHasBeenSet() const
Definition: Runbook.h:369
Aws::SSM::Model::Runbook::WithMaxErrors
Runbook & WithMaxErrors(const Aws::String &value)
Definition: Runbook.h:397
Aws::SSM::Model::Runbook::SetDocumentVersion
void SetDocumentVersion(Aws::String &&value)
Definition: Runbook.h:106
Target.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::SSM::Model::Runbook::SetMaxConcurrency
void SetMaxConcurrency(Aws::String &&value)
Definition: Runbook.h:326
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::Runbook::WithTargetLocations
Runbook & WithTargetLocations(const Aws::Vector< TargetLocation > &value)
Definition: Runbook.h:442
Aws::SSM::Model::Runbook::SetTargetLocations
void SetTargetLocations(Aws::Vector< TargetLocation > &&value)
Definition: Runbook.h:436
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: Runbook.h:187
Aws::SSM::Model::Runbook::TargetsHasBeenSet
bool TargetsHasBeenSet() const
Definition: Runbook.h:261
Aws::SSM::Model::Runbook::SetMaxErrors
void SetMaxErrors(Aws::String &&value)
Definition: Runbook.h:383
Aws::SSM::Model::Runbook::DocumentNameHasBeenSet
bool DocumentNameHasBeenSet() const
Definition: Runbook.h:55
Aws::SSM::Model::Runbook::SetMaxConcurrency
void SetMaxConcurrency(const char *value)
Definition: Runbook.h:333
Aws::SSM::Model::Runbook::DocumentVersionHasBeenSet
bool DocumentVersionHasBeenSet() const
Definition: Runbook.h:96
Aws::SSM::Model::Runbook::WithMaxConcurrency
Runbook & WithMaxConcurrency(Aws::String &&value)
Definition: Runbook.h:347
Aws::SSM::Model::Runbook::SetMaxErrors
void SetMaxErrors(const char *value)
Definition: Runbook.h:390
Aws::SSM::Model::Runbook::WithDocumentName
Runbook & WithDocumentName(const Aws::String &value)
Definition: Runbook.h:75
Aws::SSM::Model::Runbook::GetDocumentName
const Aws::String & GetDocumentName() const
Definition: Runbook.h:50
Aws::SSM::Model::Runbook::WithMaxErrors
Runbook & WithMaxErrors(Aws::String &&value)
Definition: Runbook.h:404
Aws::SSM::Model::Runbook::SetTargetLocations
void SetTargetLocations(const Aws::Vector< TargetLocation > &value)
Definition: Runbook.h:430
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::Runbook::Runbook
Runbook(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::Runbook::SetMaxConcurrency
void SetMaxConcurrency(const Aws::String &value)
Definition: Runbook.h:319
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::Runbook::TargetParameterNameHasBeenSet
bool TargetParameterNameHasBeenSet() const
Definition: Runbook.h:212
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: Runbook.h:175
Aws::SSM::Model::Runbook::WithMaxConcurrency
Runbook & WithMaxConcurrency(const char *value)
Definition: Runbook.h:354
Aws::SSM::Model::Runbook::WithMaxConcurrency
Runbook & WithMaxConcurrency(const Aws::String &value)
Definition: Runbook.h:340
Aws::SSM::Model::Runbook::Runbook
Runbook()
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
Definition: Runbook.h:193
Aws::SSM::Model::Runbook::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: Runbook.h:145
Aws::SSM::Model::Runbook::WithTargetLocations
Runbook & WithTargetLocations(Aws::Vector< TargetLocation > &&value)
Definition: Runbook.h:448
Aws::SSM::Model::Runbook::SetTargets
void SetTargets(Aws::Vector< Target > &&value)
Definition: Runbook.h:273
Aws::SSM::Model::Runbook::TargetLocationsHasBeenSet
bool TargetLocationsHasBeenSet() const
Definition: Runbook.h:424
Aws::SSM::Model::Runbook::AddParameters
Runbook & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: Runbook.h:169
Aws::SSM::Model::Runbook::GetMaxErrors
const Aws::String & GetMaxErrors() const
Definition: Runbook.h:362
AWSMap.h
Aws::SSM::Model::Runbook::WithDocumentName
Runbook & WithDocumentName(Aws::String &&value)
Definition: Runbook.h:80
Aws::SSM::Model::Runbook::AddTargets
Runbook & AddTargets(Target &&value)
Definition: Runbook.h:297
TargetLocation.h
Aws::SSM::Model::Runbook::GetDocumentVersion
const Aws::String & GetDocumentVersion() const
Definition: Runbook.h:91
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::SSM::Model::Runbook::AddTargets
Runbook & AddTargets(const Target &value)
Definition: Runbook.h:291
Aws::SSM::Model::Runbook::WithDocumentName
Runbook & WithDocumentName(const char *value)
Definition: Runbook.h:85