AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Runbook.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/SSM_EXPORTS.h>
11#include <aws/ssm/model/Target.h>
12#include <aws/ssm/model/TargetLocation.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
25
34class Runbook {
35 public:
36 AWS_SSM_API Runbook() = default;
37 AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline const Aws::String& GetDocumentName() const { return m_documentName; }
46 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
47 template <typename DocumentNameT = Aws::String>
48 void SetDocumentName(DocumentNameT&& value) {
49 m_documentNameHasBeenSet = true;
50 m_documentName = std::forward<DocumentNameT>(value);
51 }
52 template <typename DocumentNameT = Aws::String>
53 Runbook& WithDocumentName(DocumentNameT&& value) {
54 SetDocumentName(std::forward<DocumentNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
64 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
65 template <typename DocumentVersionT = Aws::String>
66 void SetDocumentVersion(DocumentVersionT&& value) {
67 m_documentVersionHasBeenSet = true;
68 m_documentVersion = std::forward<DocumentVersionT>(value);
69 }
70 template <typename DocumentVersionT = Aws::String>
71 Runbook& WithDocumentVersion(DocumentVersionT&& value) {
72 SetDocumentVersion(std::forward<DocumentVersionT>(value));
73 return *this;
74 }
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 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
85 void SetParameters(ParametersT&& value) {
86 m_parametersHasBeenSet = true;
87 m_parameters = std::forward<ParametersT>(value);
88 }
89 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
90 Runbook& WithParameters(ParametersT&& value) {
91 SetParameters(std::forward<ParametersT>(value));
92 return *this;
93 }
94 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<Aws::String>>
95 Runbook& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
96 m_parametersHasBeenSet = true;
97 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetTargetParameterName() const { return m_targetParameterName; }
108 inline bool TargetParameterNameHasBeenSet() const { return m_targetParameterNameHasBeenSet; }
109 template <typename TargetParameterNameT = Aws::String>
110 void SetTargetParameterName(TargetParameterNameT&& value) {
111 m_targetParameterNameHasBeenSet = true;
112 m_targetParameterName = std::forward<TargetParameterNameT>(value);
113 }
114 template <typename TargetParameterNameT = Aws::String>
115 Runbook& WithTargetParameterName(TargetParameterNameT&& value) {
116 SetTargetParameterName(std::forward<TargetParameterNameT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
127 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
128 template <typename TargetsT = Aws::Vector<Target>>
129 void SetTargets(TargetsT&& value) {
130 m_targetsHasBeenSet = true;
131 m_targets = std::forward<TargetsT>(value);
132 }
133 template <typename TargetsT = Aws::Vector<Target>>
134 Runbook& WithTargets(TargetsT&& value) {
135 SetTargets(std::forward<TargetsT>(value));
136 return *this;
137 }
138 template <typename TargetsT = Target>
139 Runbook& AddTargets(TargetsT&& value) {
140 m_targetsHasBeenSet = true;
141 m_targets.emplace_back(std::forward<TargetsT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>& GetTargetMaps() const { return m_targetMaps; }
152 inline bool TargetMapsHasBeenSet() const { return m_targetMapsHasBeenSet; }
153 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
154 void SetTargetMaps(TargetMapsT&& value) {
155 m_targetMapsHasBeenSet = true;
156 m_targetMaps = std::forward<TargetMapsT>(value);
157 }
158 template <typename TargetMapsT = Aws::Vector<Aws::Map<Aws::String, Aws::Vector<Aws::String>>>>
159 Runbook& WithTargetMaps(TargetMapsT&& value) {
160 SetTargetMaps(std::forward<TargetMapsT>(value));
161 return *this;
162 }
163 template <typename TargetMapsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
164 Runbook& AddTargetMaps(TargetMapsT&& value) {
165 m_targetMapsHasBeenSet = true;
166 m_targetMaps.emplace_back(std::forward<TargetMapsT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::String& GetMaxConcurrency() const { return m_maxConcurrency; }
178 inline bool MaxConcurrencyHasBeenSet() const { return m_maxConcurrencyHasBeenSet; }
179 template <typename MaxConcurrencyT = Aws::String>
180 void SetMaxConcurrency(MaxConcurrencyT&& value) {
181 m_maxConcurrencyHasBeenSet = true;
182 m_maxConcurrency = std::forward<MaxConcurrencyT>(value);
183 }
184 template <typename MaxConcurrencyT = Aws::String>
185 Runbook& WithMaxConcurrency(MaxConcurrencyT&& value) {
186 SetMaxConcurrency(std::forward<MaxConcurrencyT>(value));
187 return *this;
188 }
190
192
197 inline const Aws::String& GetMaxErrors() const { return m_maxErrors; }
198 inline bool MaxErrorsHasBeenSet() const { return m_maxErrorsHasBeenSet; }
199 template <typename MaxErrorsT = Aws::String>
200 void SetMaxErrors(MaxErrorsT&& value) {
201 m_maxErrorsHasBeenSet = true;
202 m_maxErrors = std::forward<MaxErrorsT>(value);
203 }
204 template <typename MaxErrorsT = Aws::String>
205 Runbook& WithMaxErrors(MaxErrorsT&& value) {
206 SetMaxErrors(std::forward<MaxErrorsT>(value));
207 return *this;
208 }
210
212
216 inline const Aws::Vector<TargetLocation>& GetTargetLocations() const { return m_targetLocations; }
217 inline bool TargetLocationsHasBeenSet() const { return m_targetLocationsHasBeenSet; }
218 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
219 void SetTargetLocations(TargetLocationsT&& value) {
220 m_targetLocationsHasBeenSet = true;
221 m_targetLocations = std::forward<TargetLocationsT>(value);
222 }
223 template <typename TargetLocationsT = Aws::Vector<TargetLocation>>
224 Runbook& WithTargetLocations(TargetLocationsT&& value) {
225 SetTargetLocations(std::forward<TargetLocationsT>(value));
226 return *this;
227 }
228 template <typename TargetLocationsT = TargetLocation>
229 Runbook& AddTargetLocations(TargetLocationsT&& value) {
230 m_targetLocationsHasBeenSet = true;
231 m_targetLocations.emplace_back(std::forward<TargetLocationsT>(value));
232 return *this;
233 }
235 private:
236 Aws::String m_documentName;
237
238 Aws::String m_documentVersion;
239
241
242 Aws::String m_targetParameterName;
243
244 Aws::Vector<Target> m_targets;
245
247
248 Aws::String m_maxConcurrency;
249
250 Aws::String m_maxErrors;
251
252 Aws::Vector<TargetLocation> m_targetLocations;
253 bool m_documentNameHasBeenSet = false;
254 bool m_documentVersionHasBeenSet = false;
255 bool m_parametersHasBeenSet = false;
256 bool m_targetParameterNameHasBeenSet = false;
257 bool m_targetsHasBeenSet = false;
258 bool m_targetMapsHasBeenSet = false;
259 bool m_maxConcurrencyHasBeenSet = false;
260 bool m_maxErrorsHasBeenSet = false;
261 bool m_targetLocationsHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace SSM
266} // namespace Aws
Runbook & WithParameters(ParametersT &&value)
Definition Runbook.h:90
Runbook & AddTargets(TargetsT &&value)
Definition Runbook.h:139
void SetTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:219
bool ParametersHasBeenSet() const
Definition Runbook.h:83
void SetTargets(TargetsT &&value)
Definition Runbook.h:129
bool TargetMapsHasBeenSet() const
Definition Runbook.h:152
bool MaxConcurrencyHasBeenSet() const
Definition Runbook.h:178
Runbook & WithMaxErrors(MaxErrorsT &&value)
Definition Runbook.h:205
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
Definition Runbook.h:82
Runbook & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Definition Runbook.h:95
bool MaxErrorsHasBeenSet() const
Definition Runbook.h:198
const Aws::String & GetDocumentVersion() const
Definition Runbook.h:63
const Aws::Vector< Target > & GetTargets() const
Definition Runbook.h:126
Runbook & WithMaxConcurrency(MaxConcurrencyT &&value)
Definition Runbook.h:185
void SetDocumentVersion(DocumentVersionT &&value)
Definition Runbook.h:66
void SetMaxConcurrency(MaxConcurrencyT &&value)
Definition Runbook.h:180
Runbook & WithTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:224
const Aws::Vector< TargetLocation > & GetTargetLocations() const
Definition Runbook.h:216
void SetMaxErrors(MaxErrorsT &&value)
Definition Runbook.h:200
Runbook & WithTargets(TargetsT &&value)
Definition Runbook.h:134
void SetDocumentName(DocumentNameT &&value)
Definition Runbook.h:48
void SetTargetMaps(TargetMapsT &&value)
Definition Runbook.h:154
AWS_SSM_API Runbook & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DocumentNameHasBeenSet() const
Definition Runbook.h:46
const Aws::String & GetDocumentName() const
Definition Runbook.h:45
const Aws::String & GetMaxConcurrency() const
Definition Runbook.h:177
Runbook & WithTargetMaps(TargetMapsT &&value)
Definition Runbook.h:159
bool TargetParameterNameHasBeenSet() const
Definition Runbook.h:108
const Aws::String & GetMaxErrors() const
Definition Runbook.h:197
const Aws::Vector< Aws::Map< Aws::String, Aws::Vector< Aws::String > > > & GetTargetMaps() const
Definition Runbook.h:151
AWS_SSM_API Runbook(Aws::Utils::Json::JsonView jsonValue)
void SetTargetParameterName(TargetParameterNameT &&value)
Definition Runbook.h:110
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API Runbook()=default
Runbook & AddTargetMaps(TargetMapsT &&value)
Definition Runbook.h:164
Runbook & WithTargetParameterName(TargetParameterNameT &&value)
Definition Runbook.h:115
Runbook & AddTargetLocations(TargetLocationsT &&value)
Definition Runbook.h:229
bool TargetsHasBeenSet() const
Definition Runbook.h:127
void SetParameters(ParametersT &&value)
Definition Runbook.h:85
Runbook & WithDocumentName(DocumentNameT &&value)
Definition Runbook.h:53
const Aws::String & GetTargetParameterName() const
Definition Runbook.h:107
bool TargetLocationsHasBeenSet() const
Definition Runbook.h:217
bool DocumentVersionHasBeenSet() const
Definition Runbook.h:64
Runbook & WithDocumentVersion(DocumentVersionT &&value)
Definition Runbook.h:71
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