AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Runbook.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ssm/model/Target.h>
12#include <aws/ssm/model/TargetLocation.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
29
38 class Runbook
39 {
40 public:
41 AWS_SSM_API Runbook();
42 AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
52 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
53 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
54 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
55 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
56 inline Runbook& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
57 inline Runbook& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
58 inline Runbook& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
60
62
65 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
66 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
67 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
68 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
69 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
70 inline Runbook& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
71 inline Runbook& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
72 inline Runbook& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
74
76
80 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
81 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
82 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
83 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
84 inline Runbook& WithParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetParameters(value); return *this;}
85 inline Runbook& WithParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetParameters(std::move(value)); return *this;}
86 inline Runbook& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
87 inline Runbook& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
88 inline Runbook& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
89 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; }
90 inline Runbook& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
91 inline Runbook& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
93
95
99 inline const Aws::String& GetTargetParameterName() const{ return m_targetParameterName; }
100 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
101 inline void SetTargetParameterName(const Aws::String& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = value; }
102 inline void SetTargetParameterName(Aws::String&& value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName = std::move(value); }
103 inline void SetTargetParameterName(const char* value) { m_targetParameterNameHasBeenSet = true; m_targetParameterName.assign(value); }
104 inline Runbook& WithTargetParameterName(const Aws::String& value) { SetTargetParameterName(value); return *this;}
105 inline Runbook& WithTargetParameterName(Aws::String&& value) { SetTargetParameterName(std::move(value)); return *this;}
106 inline Runbook& WithTargetParameterName(const char* value) { SetTargetParameterName(value); return *this;}
108
110
114 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
115 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
116 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
117 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
118 inline Runbook& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
119 inline Runbook& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
120 inline Runbook& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
121 inline Runbook& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
123
125
129 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const{ return m_targetMaps; }
130 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
131 inline void SetTargetMaps(const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps = value; }
132 inline void SetTargetMaps(Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps = std::move(value); }
134 inline Runbook& WithTargetMaps(Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>&& value) { SetTargetMaps(std::move(value)); return *this;}
135 inline Runbook& AddTargetMaps(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(value); return *this; }
136 inline Runbook& AddTargetMaps(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_targetMapsHasBeenSet = true; m_targetMaps.push_back(std::move(value)); return *this; }
138
140
145 inline const Aws::String& GetMaxConcurrency() const{ return m_maxConcurrency; }
146 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
147 inline void SetMaxConcurrency(const Aws::String& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = value; }
148 inline void SetMaxConcurrency(Aws::String&& value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency = std::move(value); }
149 inline void SetMaxConcurrency(const char* value) { m_maxConcurrencyHasBeenSet = true; m_maxConcurrency.assign(value); }
150 inline Runbook& WithMaxConcurrency(const Aws::String& value) { SetMaxConcurrency(value); return *this;}
151 inline Runbook& WithMaxConcurrency(Aws::String&& value) { SetMaxConcurrency(std::move(value)); return *this;}
152 inline Runbook& WithMaxConcurrency(const char* value) { SetMaxConcurrency(value); return *this;}
154
156
161 inline const Aws::String& GetMaxErrors() const{ return m_maxErrors; }
162 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
163 inline void SetMaxErrors(const Aws::String& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = value; }
164 inline void SetMaxErrors(Aws::String&& value) { m_maxErrorsHasBeenSet = true; m_maxErrors = std::move(value); }
165 inline void SetMaxErrors(const char* value) { m_maxErrorsHasBeenSet = true; m_maxErrors.assign(value); }
166 inline Runbook& WithMaxErrors(const Aws::String& value) { SetMaxErrors(value); return *this;}
167 inline Runbook& WithMaxErrors(Aws::String&& value) { SetMaxErrors(std::move(value)); return *this;}
168 inline Runbook& WithMaxErrors(const char* value) { SetMaxErrors(value); return *this;}
170
172
176 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const{ return m_targetLocations; }
177 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
178 inline void SetTargetLocations(const Aws::Vector<TargetLocation>& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = value; }
179 inline void SetTargetLocations(Aws::Vector<TargetLocation>&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations = std::move(value); }
180 inline Runbook& WithTargetLocations(const Aws::Vector<TargetLocation>& value) { SetTargetLocations(value); return *this;}
181 inline Runbook& WithTargetLocations(Aws::Vector<TargetLocation>&& value) { SetTargetLocations(std::move(value)); return *this;}
182 inline Runbook& AddTargetLocations(const TargetLocation& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(value); return *this; }
183 inline Runbook& AddTargetLocations(TargetLocation&& value) { m_targetLocationsHasBeenSet = true; m_targetLocations.push_back(std::move(value)); return *this; }
185 private:
186
187 Aws::String m_documentName;
188 bool m_documentNameHasBeenSet = false;
189
190 Aws::String m_documentVersion;
191 bool m_documentVersionHasBeenSet = false;
192
194 bool m_parametersHasBeenSet = false;
195
196 Aws::String m_targetParameterName;
197 bool m_targetParameterNameHasBeenSet = false;
198
199 Aws::Vector<Target> m_targets;
200 bool m_targetsHasBeenSet = false;
201
203 bool m_targetMapsHasBeenSet = false;
204
205 Aws::String m_maxConcurrency;
206 bool m_maxConcurrencyHasBeenSet = false;
207
208 Aws::String m_maxErrors;
209 bool m_maxErrorsHasBeenSet = false;
210
211 Aws::Vector<TargetLocation> m_targetLocations;
212 bool m_targetLocationsHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace SSM
217} // namespace Aws
Runbook & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Runbook.h:85
void SetTargets(const Aws::Vector< Target > &value)
Definition Runbook.h:116
Runbook & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition Runbook.h:88
bool ParametersHasBeenSet() const
Definition Runbook.h:81
Runbook & WithDocumentVersion(const Aws::String &value)
Definition Runbook.h:70
Runbook & WithMaxErrors(const Aws::String &value)
Definition Runbook.h:166
Runbook & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Runbook.h:84
void SetMaxConcurrency(const Aws::String &value)
Definition Runbook.h:147
bool TargetMapsHasBeenSet() const
Definition Runbook.h:130
bool MaxConcurrencyHasBeenSet() const
Definition Runbook.h:146
void SetTargetParameterName(Aws::String &&value)
Definition Runbook.h:102
Runbook & WithTargetLocations(Aws::Vector< TargetLocation > &&value)
Definition Runbook.h:181
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Runbook.h:80
Runbook & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition Runbook.h:89
Runbook & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition Runbook.h:87
void SetDocumentVersion(const char *value)
Definition Runbook.h:69
bool MaxErrorsHasBeenSet() const
Definition Runbook.h:162
const Aws::String & GetDocumentVersion() const
Definition Runbook.h:65
void SetMaxErrors(const char *value)
Definition Runbook.h:165
const Aws::Vector< Target > & GetTargets() const
Definition Runbook.h:114
Runbook & WithMaxConcurrency(Aws::String &&value)
Definition Runbook.h:151
void SetTargetLocations(Aws::Vector< TargetLocation > &&value)
Definition Runbook.h:179
Runbook & WithDocumentName(const Aws::String &value)
Definition Runbook.h:56
Runbook & AddTargetMaps(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Runbook.h:135
Runbook & WithMaxErrors(Aws::String &&value)
Definition Runbook.h:167
const Aws::Vector< TargetLocation > & GetTargetLocations() const
Definition Runbook.h:176
void SetDocumentName(const Aws::String &value)
Definition Runbook.h:53
void SetMaxErrors(const Aws::String &value)
Definition Runbook.h:163
Runbook & WithDocumentName(const char *value)
Definition Runbook.h:58
Runbook & WithTargets(Aws::Vector< Target > &&value)
Definition Runbook.h:119
AWS_SSM_API Runbook & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DocumentNameHasBeenSet() const
Definition Runbook.h:52
Runbook & WithTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
Definition Runbook.h:133
void SetTargets(Aws::Vector< Target > &&value)
Definition Runbook.h:117
const Aws::String & GetDocumentName() const
Definition Runbook.h:51
Runbook & WithMaxConcurrency(const char *value)
Definition Runbook.h:152
void SetTargetLocations(const Aws::Vector< TargetLocation > &value)
Definition Runbook.h:178
Runbook & WithTargetParameterName(const Aws::String &value)
Definition Runbook.h:104
Runbook & WithMaxErrors(const char *value)
Definition Runbook.h:168
void SetMaxErrors(Aws::String &&value)
Definition Runbook.h:164
Runbook & WithMaxConcurrency(const Aws::String &value)
Definition Runbook.h:150
const Aws::String & GetMaxConcurrency() const
Definition Runbook.h:145
Runbook & WithDocumentVersion(const char *value)
Definition Runbook.h:72
void SetDocumentName(Aws::String &&value)
Definition Runbook.h:54
Runbook & WithTargetParameterName(const char *value)
Definition Runbook.h:106
void SetDocumentVersion(const Aws::String &value)
Definition Runbook.h:67
bool TargetParameterNameHasBeenSet() const
Definition Runbook.h:100
Runbook & AddTargetLocations(const TargetLocation &value)
Definition Runbook.h:182
Runbook & AddTargets(const Target &value)
Definition Runbook.h:120
void SetMaxConcurrency(const char *value)
Definition Runbook.h:149
Runbook & WithTargetLocations(const Aws::Vector< TargetLocation > &value)
Definition Runbook.h:180
const Aws::String & GetMaxErrors() const
Definition Runbook.h:161
void SetDocumentName(const char *value)
Definition Runbook.h:55
Runbook & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
Definition Runbook.h:90
Runbook & WithTargets(const Aws::Vector< Target > &value)
Definition Runbook.h:118
Runbook & AddTargets(Target &&value)
Definition Runbook.h:121
void SetTargetParameterName(const char *value)
Definition Runbook.h:103
void SetDocumentVersion(Aws::String &&value)
Definition Runbook.h:68
Runbook & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
Definition Runbook.h:91
void SetMaxConcurrency(Aws::String &&value)
Definition Runbook.h:148
void SetTargetMaps(const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &value)
Definition Runbook.h:131
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
Definition Runbook.h:129
AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
Definition Runbook.h:132
Runbook & WithTargetParameterName(Aws::String &&value)
Definition Runbook.h:105
Runbook & WithTargetMaps(Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > &&value)
Definition Runbook.h:134
Runbook & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition Runbook.h:86
bool TargetsHasBeenSet() const
Definition Runbook.h:115
void SetTargetParameterName(const Aws::String &value)
Definition Runbook.h:101
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition Runbook.h:82
Runbook & WithDocumentVersion(Aws::String &&value)
Definition Runbook.h:71
Runbook & AddTargetLocations(TargetLocation &&value)
Definition Runbook.h:183
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Runbook.h:83
Runbook & WithDocumentName(Aws::String &&value)
Definition Runbook.h:57
const Aws::String & GetTargetParameterName() const
Definition Runbook.h:99
bool TargetLocationsHasBeenSet() const
Definition Runbook.h:177
bool DocumentVersionHasBeenSet() const
Definition Runbook.h:66
Runbook & AddTargetMaps(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition Runbook.h:136
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