AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PutTemplateActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mgn/Mgn_EXPORTS.h>
12#include <aws/mgn/model/ActionCategory.h>
13#include <aws/mgn/model/SsmExternalParameter.h>
14#include <aws/mgn/model/SsmParameterStoreParameter.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace mgn {
28namespace Model {
30 public:
31 AWS_MGN_API PutTemplateActionResult() = default;
34
36
39 inline const Aws::String& GetActionID() const { return m_actionID; }
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 template <typename ActionNameT = Aws::String>
58 void SetActionName(ActionNameT&& value) {
59 m_actionNameHasBeenSet = true;
60 m_actionName = std::forward<ActionNameT>(value);
61 }
62 template <typename ActionNameT = Aws::String>
64 SetActionName(std::forward<ActionNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
74 template <typename DocumentIdentifierT = Aws::String>
75 void SetDocumentIdentifier(DocumentIdentifierT&& value) {
76 m_documentIdentifierHasBeenSet = true;
77 m_documentIdentifier = std::forward<DocumentIdentifierT>(value);
78 }
79 template <typename DocumentIdentifierT = Aws::String>
80 PutTemplateActionResult& WithDocumentIdentifier(DocumentIdentifierT&& value) {
81 SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value));
82 return *this;
83 }
85
87
90 inline int GetOrder() const { return m_order; }
91 inline void SetOrder(int value) {
92 m_orderHasBeenSet = true;
93 m_order = value;
94 }
96 SetOrder(value);
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
106 template <typename DocumentVersionT = Aws::String>
107 void SetDocumentVersion(DocumentVersionT&& value) {
108 m_documentVersionHasBeenSet = true;
109 m_documentVersion = std::forward<DocumentVersionT>(value);
110 }
111 template <typename DocumentVersionT = Aws::String>
112 PutTemplateActionResult& WithDocumentVersion(DocumentVersionT&& value) {
113 SetDocumentVersion(std::forward<DocumentVersionT>(value));
114 return *this;
115 }
117
119
122 inline bool GetActive() const { return m_active; }
123 inline void SetActive(bool value) {
124 m_activeHasBeenSet = true;
125 m_active = value;
126 }
128 SetActive(value);
129 return *this;
130 }
132
134
137 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
138 inline void SetTimeoutSeconds(int value) {
139 m_timeoutSecondsHasBeenSet = true;
140 m_timeoutSeconds = value;
141 }
143 SetTimeoutSeconds(value);
144 return *this;
145 }
147
149
152 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
153 inline void SetMustSucceedForCutover(bool value) {
154 m_mustSucceedForCutoverHasBeenSet = true;
155 m_mustSucceedForCutover = value;
156 }
159 return *this;
160 }
162
164
168 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
169 void SetParameters(ParametersT&& value) {
170 m_parametersHasBeenSet = true;
171 m_parameters = std::forward<ParametersT>(value);
172 }
173 template <typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
175 SetParameters(std::forward<ParametersT>(value));
176 return *this;
177 }
178 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
179 PutTemplateActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
180 m_parametersHasBeenSet = true;
181 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetOperatingSystem() const { return m_operatingSystem; }
191 template <typename OperatingSystemT = Aws::String>
192 void SetOperatingSystem(OperatingSystemT&& value) {
193 m_operatingSystemHasBeenSet = true;
194 m_operatingSystem = std::forward<OperatingSystemT>(value);
195 }
196 template <typename OperatingSystemT = Aws::String>
197 PutTemplateActionResult& WithOperatingSystem(OperatingSystemT&& value) {
198 SetOperatingSystem(std::forward<OperatingSystemT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
208 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
209 void SetExternalParameters(ExternalParametersT&& value) {
210 m_externalParametersHasBeenSet = true;
211 m_externalParameters = std::forward<ExternalParametersT>(value);
212 }
213 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
214 PutTemplateActionResult& WithExternalParameters(ExternalParametersT&& value) {
215 SetExternalParameters(std::forward<ExternalParametersT>(value));
216 return *this;
217 }
218 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
219 PutTemplateActionResult& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
220 m_externalParametersHasBeenSet = true;
221 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::String& GetDescription() const { return m_description; }
231 template <typename DescriptionT = Aws::String>
232 void SetDescription(DescriptionT&& value) {
233 m_descriptionHasBeenSet = true;
234 m_description = std::forward<DescriptionT>(value);
235 }
236 template <typename DescriptionT = Aws::String>
238 SetDescription(std::forward<DescriptionT>(value));
239 return *this;
240 }
242
244
247 inline ActionCategory GetCategory() const { return m_category; }
248 inline void SetCategory(ActionCategory value) {
249 m_categoryHasBeenSet = true;
250 m_category = value;
251 }
253 SetCategory(value);
254 return *this;
255 }
257
259
260 inline const Aws::String& GetRequestId() const { return m_requestId; }
261 template <typename RequestIdT = Aws::String>
262 void SetRequestId(RequestIdT&& value) {
263 m_requestIdHasBeenSet = true;
264 m_requestId = std::forward<RequestIdT>(value);
265 }
266 template <typename RequestIdT = Aws::String>
268 SetRequestId(std::forward<RequestIdT>(value));
269 return *this;
270 }
272 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
273
274 private:
275 Aws::String m_actionID;
276
277 Aws::String m_actionName;
278
279 Aws::String m_documentIdentifier;
280
281 int m_order{0};
282
283 Aws::String m_documentVersion;
284
285 bool m_active{false};
286
287 int m_timeoutSeconds{0};
288
289 bool m_mustSucceedForCutover{false};
290
292
293 Aws::String m_operatingSystem;
294
296
297 Aws::String m_description;
298
300
301 Aws::String m_requestId;
302 Aws::Http::HttpResponseCode m_HttpResponseCode;
303 bool m_actionIDHasBeenSet = false;
304 bool m_actionNameHasBeenSet = false;
305 bool m_documentIdentifierHasBeenSet = false;
306 bool m_orderHasBeenSet = false;
307 bool m_documentVersionHasBeenSet = false;
308 bool m_activeHasBeenSet = false;
309 bool m_timeoutSecondsHasBeenSet = false;
310 bool m_mustSucceedForCutoverHasBeenSet = false;
311 bool m_parametersHasBeenSet = false;
312 bool m_operatingSystemHasBeenSet = false;
313 bool m_externalParametersHasBeenSet = false;
314 bool m_descriptionHasBeenSet = false;
315 bool m_categoryHasBeenSet = false;
316 bool m_requestIdHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace mgn
321} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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