AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
PutSourceServerActionResult.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 PutSourceServerActionResult() = 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>
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>
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 PutSourceServerActionResult& 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::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
191 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
192 void SetExternalParameters(ExternalParametersT&& value) {
193 m_externalParametersHasBeenSet = true;
194 m_externalParameters = std::forward<ExternalParametersT>(value);
195 }
196 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
198 SetExternalParameters(std::forward<ExternalParametersT>(value));
199 return *this;
200 }
201 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
202 PutSourceServerActionResult& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
203 m_externalParametersHasBeenSet = true;
204 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetDescription() const { return m_description; }
214 template <typename DescriptionT = Aws::String>
215 void SetDescription(DescriptionT&& value) {
216 m_descriptionHasBeenSet = true;
217 m_description = std::forward<DescriptionT>(value);
218 }
219 template <typename DescriptionT = Aws::String>
221 SetDescription(std::forward<DescriptionT>(value));
222 return *this;
223 }
225
227
230 inline ActionCategory GetCategory() const { return m_category; }
231 inline void SetCategory(ActionCategory value) {
232 m_categoryHasBeenSet = true;
233 m_category = value;
234 }
236 SetCategory(value);
237 return *this;
238 }
240
242
243 inline const Aws::String& GetRequestId() const { return m_requestId; }
244 template <typename RequestIdT = Aws::String>
245 void SetRequestId(RequestIdT&& value) {
246 m_requestIdHasBeenSet = true;
247 m_requestId = std::forward<RequestIdT>(value);
248 }
249 template <typename RequestIdT = Aws::String>
251 SetRequestId(std::forward<RequestIdT>(value));
252 return *this;
253 }
255 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
256
257 private:
258 Aws::String m_actionID;
259
260 Aws::String m_actionName;
261
262 Aws::String m_documentIdentifier;
263
264 int m_order{0};
265
266 Aws::String m_documentVersion;
267
268 bool m_active{false};
269
270 int m_timeoutSeconds{0};
271
272 bool m_mustSucceedForCutover{false};
273
275
277
278 Aws::String m_description;
279
281
282 Aws::String m_requestId;
283 Aws::Http::HttpResponseCode m_HttpResponseCode;
284 bool m_actionIDHasBeenSet = false;
285 bool m_actionNameHasBeenSet = false;
286 bool m_documentIdentifierHasBeenSet = false;
287 bool m_orderHasBeenSet = false;
288 bool m_documentVersionHasBeenSet = false;
289 bool m_activeHasBeenSet = false;
290 bool m_timeoutSecondsHasBeenSet = false;
291 bool m_mustSucceedForCutoverHasBeenSet = false;
292 bool m_parametersHasBeenSet = false;
293 bool m_externalParametersHasBeenSet = false;
294 bool m_descriptionHasBeenSet = false;
295 bool m_categoryHasBeenSet = false;
296 bool m_requestIdHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace mgn
301} // namespace Aws
AWS_MGN_API PutSourceServerActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutSourceServerActionResult & WithDescription(DescriptionT &&value)
PutSourceServerActionResult & WithExternalParameters(ExternalParametersT &&value)
PutSourceServerActionResult & WithActionName(ActionNameT &&value)
PutSourceServerActionResult & WithMustSucceedForCutover(bool value)
AWS_MGN_API PutSourceServerActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MGN_API PutSourceServerActionResult()=default
PutSourceServerActionResult & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
PutSourceServerActionResult & WithRequestId(RequestIdT &&value)
void SetDocumentIdentifier(DocumentIdentifierT &&value)
PutSourceServerActionResult & WithTimeoutSeconds(int value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutSourceServerActionResult & WithCategory(ActionCategory value)
PutSourceServerActionResult & WithDocumentIdentifier(DocumentIdentifierT &&value)
PutSourceServerActionResult & WithActive(bool value)
PutSourceServerActionResult & WithOrder(int value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
PutSourceServerActionResult & WithActionID(ActionIDT &&value)
PutSourceServerActionResult & WithDocumentVersion(DocumentVersionT &&value)
PutSourceServerActionResult & WithParameters(ParametersT &&value)
PutSourceServerActionResult & 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