AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutTemplateActionResult.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 {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace mgn {
27namespace Model {
29 public:
30 AWS_MGN_API PutTemplateActionResult() = default;
33
35
38 inline const Aws::String& GetActionID() const { return m_actionID; }
39 template <typename ActionIDT = Aws::String>
40 void SetActionID(ActionIDT&& value) {
41 m_actionIDHasBeenSet = true;
42 m_actionID = std::forward<ActionIDT>(value);
43 }
44 template <typename ActionIDT = Aws::String>
46 SetActionID(std::forward<ActionIDT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetActionName() const { return m_actionName; }
56 template <typename ActionNameT = Aws::String>
57 void SetActionName(ActionNameT&& value) {
58 m_actionNameHasBeenSet = true;
59 m_actionName = std::forward<ActionNameT>(value);
60 }
61 template <typename ActionNameT = Aws::String>
63 SetActionName(std::forward<ActionNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
73 template <typename DocumentIdentifierT = Aws::String>
74 void SetDocumentIdentifier(DocumentIdentifierT&& value) {
75 m_documentIdentifierHasBeenSet = true;
76 m_documentIdentifier = std::forward<DocumentIdentifierT>(value);
77 }
78 template <typename DocumentIdentifierT = Aws::String>
79 PutTemplateActionResult& WithDocumentIdentifier(DocumentIdentifierT&& value) {
80 SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value));
81 return *this;
82 }
84
86
89 inline int GetOrder() const { return m_order; }
90 inline void SetOrder(int value) {
91 m_orderHasBeenSet = true;
92 m_order = value;
93 }
95 SetOrder(value);
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
105 template <typename DocumentVersionT = Aws::String>
106 void SetDocumentVersion(DocumentVersionT&& value) {
107 m_documentVersionHasBeenSet = true;
108 m_documentVersion = std::forward<DocumentVersionT>(value);
109 }
110 template <typename DocumentVersionT = Aws::String>
111 PutTemplateActionResult& WithDocumentVersion(DocumentVersionT&& value) {
112 SetDocumentVersion(std::forward<DocumentVersionT>(value));
113 return *this;
114 }
116
118
121 inline bool GetActive() const { return m_active; }
122 inline void SetActive(bool value) {
123 m_activeHasBeenSet = true;
124 m_active = value;
125 }
127 SetActive(value);
128 return *this;
129 }
131
133
136 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
137 inline void SetTimeoutSeconds(int value) {
138 m_timeoutSecondsHasBeenSet = true;
139 m_timeoutSeconds = value;
140 }
142 SetTimeoutSeconds(value);
143 return *this;
144 }
146
148
151 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
152 inline void SetMustSucceedForCutover(bool value) {
153 m_mustSucceedForCutoverHasBeenSet = true;
154 m_mustSucceedForCutover = value;
155 }
158 return *this;
159 }
161
163
167 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
168 void SetParameters(ParametersT&& value) {
169 m_parametersHasBeenSet = true;
170 m_parameters = std::forward<ParametersT>(value);
171 }
172 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
174 SetParameters(std::forward<ParametersT>(value));
175 return *this;
176 }
177 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
178 PutTemplateActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
179 m_parametersHasBeenSet = true;
180 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
190 template <typename OperatingSystemT = Aws::String>
191 void SetOperatingSystem(OperatingSystemT&& value) {
192 m_operatingSystemHasBeenSet = true;
193 m_operatingSystem = std::forward<OperatingSystemT>(value);
194 }
195 template <typename OperatingSystemT = Aws::String>
196 PutTemplateActionResult& WithOperatingSystem(OperatingSystemT&& value) {
197 SetOperatingSystem(std::forward<OperatingSystemT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
207 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
208 void SetExternalParameters(ExternalParametersT&& value) {
209 m_externalParametersHasBeenSet = true;
210 m_externalParameters = std::forward<ExternalParametersT>(value);
211 }
212 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
213 PutTemplateActionResult& WithExternalParameters(ExternalParametersT&& value) {
214 SetExternalParameters(std::forward<ExternalParametersT>(value));
215 return *this;
216 }
217 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
218 PutTemplateActionResult& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
219 m_externalParametersHasBeenSet = true;
220 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetDescription() const { return m_description; }
230 template <typename DescriptionT = Aws::String>
231 void SetDescription(DescriptionT&& value) {
232 m_descriptionHasBeenSet = true;
233 m_description = std::forward<DescriptionT>(value);
234 }
235 template <typename DescriptionT = Aws::String>
237 SetDescription(std::forward<DescriptionT>(value));
238 return *this;
239 }
241
243
246 inline ActionCategory GetCategory() const { return m_category; }
247 inline void SetCategory(ActionCategory value) {
248 m_categoryHasBeenSet = true;
249 m_category = value;
250 }
252 SetCategory(value);
253 return *this;
254 }
256
258
259 inline const Aws::String& GetRequestId() const { return m_requestId; }
260 template <typename RequestIdT = Aws::String>
261 void SetRequestId(RequestIdT&& value) {
262 m_requestIdHasBeenSet = true;
263 m_requestId = std::forward<RequestIdT>(value);
264 }
265 template <typename RequestIdT = Aws::String>
267 SetRequestId(std::forward<RequestIdT>(value));
268 return *this;
269 }
271 private:
272 Aws::String m_actionID;
273
274 Aws::String m_actionName;
275
276 Aws::String m_documentIdentifier;
277
278 int m_order{0};
279
280 Aws::String m_documentVersion;
281
282 bool m_active{false};
283
284 int m_timeoutSeconds{0};
285
286 bool m_mustSucceedForCutover{false};
287
289
290 Aws::String m_operatingSystem;
291
293
294 Aws::String m_description;
295
297
298 Aws::String m_requestId;
299 bool m_actionIDHasBeenSet = false;
300 bool m_actionNameHasBeenSet = false;
301 bool m_documentIdentifierHasBeenSet = false;
302 bool m_orderHasBeenSet = false;
303 bool m_documentVersionHasBeenSet = false;
304 bool m_activeHasBeenSet = false;
305 bool m_timeoutSecondsHasBeenSet = false;
306 bool m_mustSucceedForCutoverHasBeenSet = false;
307 bool m_parametersHasBeenSet = false;
308 bool m_operatingSystemHasBeenSet = false;
309 bool m_externalParametersHasBeenSet = false;
310 bool m_descriptionHasBeenSet = false;
311 bool m_categoryHasBeenSet = false;
312 bool m_requestIdHasBeenSet = false;
313};
314
315} // namespace Model
316} // namespace mgn
317} // namespace Aws
void SetDocumentIdentifier(DocumentIdentifierT &&value)
AWS_MGN_API PutTemplateActionResult()=default
PutTemplateActionResult & WithParameters(ParametersT &&value)
PutTemplateActionResult & WithActionID(ActionIDT &&value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
PutTemplateActionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
PutTemplateActionResult & WithActionName(ActionNameT &&value)
void SetOperatingSystem(OperatingSystemT &&value)
void SetExternalParameters(ExternalParametersT &&value)
PutTemplateActionResult & WithDocumentIdentifier(DocumentIdentifierT &&value)
AWS_MGN_API PutTemplateActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutTemplateActionResult & WithMustSucceedForCutover(bool value)
PutTemplateActionResult & WithRequestId(RequestIdT &&value)
PutTemplateActionResult & WithTimeoutSeconds(int value)
PutTemplateActionResult & WithDocumentVersion(DocumentVersionT &&value)
PutTemplateActionResult & WithExternalParameters(ExternalParametersT &&value)
PutTemplateActionResult & WithCategory(ActionCategory value)
AWS_MGN_API PutTemplateActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDocumentVersion(DocumentVersionT &&value)
PutTemplateActionResult & WithDescription(DescriptionT &&value)
PutTemplateActionResult & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
PutTemplateActionResult & WithOperatingSystem(OperatingSystemT &&value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
PutTemplateActionResult & WithActive(bool value)
PutTemplateActionResult & WithOrder(int 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