AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TemplateActionDocument.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/mgn/Mgn_EXPORTS.h>
11#include <aws/mgn/model/ActionCategory.h>
12#include <aws/mgn/model/SsmExternalParameter.h>
13#include <aws/mgn/model/SsmParameterStoreParameter.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mgn {
25namespace Model {
26
28 public:
29 AWS_MGN_API TemplateActionDocument() = default;
33
35
38 inline const Aws::String& GetActionID() const { return m_actionID; }
39 inline bool ActionIDHasBeenSet() const { return m_actionIDHasBeenSet; }
40 template <typename ActionIDT = Aws::String>
41 void SetActionID(ActionIDT&& value) {
42 m_actionIDHasBeenSet = true;
43 m_actionID = std::forward<ActionIDT>(value);
44 }
45 template <typename ActionIDT = Aws::String>
47 SetActionID(std::forward<ActionIDT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetActionName() const { return m_actionName; }
57 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
58 template <typename ActionNameT = Aws::String>
59 void SetActionName(ActionNameT&& value) {
60 m_actionNameHasBeenSet = true;
61 m_actionName = std::forward<ActionNameT>(value);
62 }
63 template <typename ActionNameT = Aws::String>
64 TemplateActionDocument& WithActionName(ActionNameT&& value) {
65 SetActionName(std::forward<ActionNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
75 inline bool DocumentIdentifierHasBeenSet() const { return m_documentIdentifierHasBeenSet; }
76 template <typename DocumentIdentifierT = Aws::String>
77 void SetDocumentIdentifier(DocumentIdentifierT&& value) {
78 m_documentIdentifierHasBeenSet = true;
79 m_documentIdentifier = std::forward<DocumentIdentifierT>(value);
80 }
81 template <typename DocumentIdentifierT = Aws::String>
82 TemplateActionDocument& WithDocumentIdentifier(DocumentIdentifierT&& value) {
83 SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value));
84 return *this;
85 }
87
89
92 inline int GetOrder() const { return m_order; }
93 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
94 inline void SetOrder(int value) {
95 m_orderHasBeenSet = true;
96 m_order = value;
97 }
98 inline TemplateActionDocument& WithOrder(int value) {
99 SetOrder(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
109 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
110 template <typename DocumentVersionT = Aws::String>
111 void SetDocumentVersion(DocumentVersionT&& value) {
112 m_documentVersionHasBeenSet = true;
113 m_documentVersion = std::forward<DocumentVersionT>(value);
114 }
115 template <typename DocumentVersionT = Aws::String>
116 TemplateActionDocument& WithDocumentVersion(DocumentVersionT&& value) {
117 SetDocumentVersion(std::forward<DocumentVersionT>(value));
118 return *this;
119 }
121
123
126 inline bool GetActive() const { return m_active; }
127 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
128 inline void SetActive(bool value) {
129 m_activeHasBeenSet = true;
130 m_active = value;
131 }
132 inline TemplateActionDocument& WithActive(bool value) {
133 SetActive(value);
134 return *this;
135 }
137
139
142 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
143 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
144 inline void SetTimeoutSeconds(int value) {
145 m_timeoutSecondsHasBeenSet = true;
146 m_timeoutSeconds = value;
147 }
149 SetTimeoutSeconds(value);
150 return *this;
151 }
153
155
158 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
159 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
160 inline void SetMustSucceedForCutover(bool value) {
161 m_mustSucceedForCutoverHasBeenSet = true;
162 m_mustSucceedForCutover = value;
163 }
166 return *this;
167 }
169
171
175 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
176 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
177 void SetParameters(ParametersT&& value) {
178 m_parametersHasBeenSet = true;
179 m_parameters = std::forward<ParametersT>(value);
180 }
181 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
183 SetParameters(std::forward<ParametersT>(value));
184 return *this;
185 }
186 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
187 TemplateActionDocument& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
188 m_parametersHasBeenSet = true;
189 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
190 return *this;
191 }
193
195
198 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
199 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
200 template <typename OperatingSystemT = Aws::String>
201 void SetOperatingSystem(OperatingSystemT&& value) {
202 m_operatingSystemHasBeenSet = true;
203 m_operatingSystem = std::forward<OperatingSystemT>(value);
204 }
205 template <typename OperatingSystemT = Aws::String>
206 TemplateActionDocument& WithOperatingSystem(OperatingSystemT&& value) {
207 SetOperatingSystem(std::forward<OperatingSystemT>(value));
208 return *this;
209 }
211
213
216 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
217 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
218 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
219 void SetExternalParameters(ExternalParametersT&& value) {
220 m_externalParametersHasBeenSet = true;
221 m_externalParameters = std::forward<ExternalParametersT>(value);
222 }
223 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
224 TemplateActionDocument& WithExternalParameters(ExternalParametersT&& value) {
225 SetExternalParameters(std::forward<ExternalParametersT>(value));
226 return *this;
227 }
228 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
229 TemplateActionDocument& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
230 m_externalParametersHasBeenSet = true;
231 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetDescription() const { return m_description; }
241 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
242 template <typename DescriptionT = Aws::String>
243 void SetDescription(DescriptionT&& value) {
244 m_descriptionHasBeenSet = true;
245 m_description = std::forward<DescriptionT>(value);
246 }
247 template <typename DescriptionT = Aws::String>
249 SetDescription(std::forward<DescriptionT>(value));
250 return *this;
251 }
253
255
258 inline ActionCategory GetCategory() const { return m_category; }
259 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
260 inline void SetCategory(ActionCategory value) {
261 m_categoryHasBeenSet = true;
262 m_category = value;
263 }
265 SetCategory(value);
266 return *this;
267 }
269
271
272 inline const Aws::String& GetRequestId() const { return m_requestId; }
273 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
274 template <typename RequestIdT = Aws::String>
275 void SetRequestId(RequestIdT&& value) {
276 m_requestIdHasBeenSet = true;
277 m_requestId = std::forward<RequestIdT>(value);
278 }
279 template <typename RequestIdT = Aws::String>
281 SetRequestId(std::forward<RequestIdT>(value));
282 return *this;
283 }
285 private:
286 Aws::String m_actionID;
287
288 Aws::String m_actionName;
289
290 Aws::String m_documentIdentifier;
291
292 int m_order{0};
293
294 Aws::String m_documentVersion;
295
296 bool m_active{false};
297
298 int m_timeoutSeconds{0};
299
300 bool m_mustSucceedForCutover{false};
301
303
304 Aws::String m_operatingSystem;
305
307
308 Aws::String m_description;
309
311
312 Aws::String m_requestId;
313 bool m_actionIDHasBeenSet = false;
314 bool m_actionNameHasBeenSet = false;
315 bool m_documentIdentifierHasBeenSet = false;
316 bool m_orderHasBeenSet = false;
317 bool m_documentVersionHasBeenSet = false;
318 bool m_activeHasBeenSet = false;
319 bool m_timeoutSecondsHasBeenSet = false;
320 bool m_mustSucceedForCutoverHasBeenSet = false;
321 bool m_parametersHasBeenSet = false;
322 bool m_operatingSystemHasBeenSet = false;
323 bool m_externalParametersHasBeenSet = false;
324 bool m_descriptionHasBeenSet = false;
325 bool m_categoryHasBeenSet = false;
326 bool m_requestIdHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace mgn
331} // namespace Aws
void SetOperatingSystem(OperatingSystemT &&value)
TemplateActionDocument & WithDescription(DescriptionT &&value)
TemplateActionDocument & WithRequestId(RequestIdT &&value)
TemplateActionDocument & WithOperatingSystem(OperatingSystemT &&value)
TemplateActionDocument & WithActive(bool value)
TemplateActionDocument & WithActionName(ActionNameT &&value)
TemplateActionDocument & WithActionID(ActionIDT &&value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
void SetDocumentVersion(DocumentVersionT &&value)
TemplateActionDocument & WithMustSucceedForCutover(bool value)
AWS_MGN_API TemplateActionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
TemplateActionDocument & WithDocumentVersion(DocumentVersionT &&value)
TemplateActionDocument & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
TemplateActionDocument & WithParameters(ParametersT &&value)
TemplateActionDocument & WithTimeoutSeconds(int value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
TemplateActionDocument & WithCategory(ActionCategory value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
TemplateActionDocument & WithDocumentIdentifier(DocumentIdentifierT &&value)
const Aws::String & GetDocumentIdentifier() const
AWS_MGN_API TemplateActionDocument(Aws::Utils::Json::JsonView jsonValue)
void SetDocumentIdentifier(DocumentIdentifierT &&value)
TemplateActionDocument & WithExternalParameters(ExternalParametersT &&value)
void SetExternalParameters(ExternalParametersT &&value)
TemplateActionDocument & WithOrder(int value)
AWS_MGN_API TemplateActionDocument()=default
TemplateActionDocument & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
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
Aws::Utils::Json::JsonValue JsonValue