AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutSourceServerActionResult.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 PutSourceServerActionResult() = 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>
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>
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 PutSourceServerActionResult& 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::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
190 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
191 void SetExternalParameters(ExternalParametersT&& value) {
192 m_externalParametersHasBeenSet = true;
193 m_externalParameters = std::forward<ExternalParametersT>(value);
194 }
195 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
197 SetExternalParameters(std::forward<ExternalParametersT>(value));
198 return *this;
199 }
200 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
201 PutSourceServerActionResult& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
202 m_externalParametersHasBeenSet = true;
203 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetDescription() const { return m_description; }
213 template <typename DescriptionT = Aws::String>
214 void SetDescription(DescriptionT&& value) {
215 m_descriptionHasBeenSet = true;
216 m_description = std::forward<DescriptionT>(value);
217 }
218 template <typename DescriptionT = Aws::String>
220 SetDescription(std::forward<DescriptionT>(value));
221 return *this;
222 }
224
226
229 inline ActionCategory GetCategory() const { return m_category; }
230 inline void SetCategory(ActionCategory value) {
231 m_categoryHasBeenSet = true;
232 m_category = value;
233 }
235 SetCategory(value);
236 return *this;
237 }
239
241
242 inline const Aws::String& GetRequestId() const { return m_requestId; }
243 template <typename RequestIdT = Aws::String>
244 void SetRequestId(RequestIdT&& value) {
245 m_requestIdHasBeenSet = true;
246 m_requestId = std::forward<RequestIdT>(value);
247 }
248 template <typename RequestIdT = Aws::String>
250 SetRequestId(std::forward<RequestIdT>(value));
251 return *this;
252 }
254 private:
255 Aws::String m_actionID;
256
257 Aws::String m_actionName;
258
259 Aws::String m_documentIdentifier;
260
261 int m_order{0};
262
263 Aws::String m_documentVersion;
264
265 bool m_active{false};
266
267 int m_timeoutSeconds{0};
268
269 bool m_mustSucceedForCutover{false};
270
272
274
275 Aws::String m_description;
276
278
279 Aws::String m_requestId;
280 bool m_actionIDHasBeenSet = false;
281 bool m_actionNameHasBeenSet = false;
282 bool m_documentIdentifierHasBeenSet = false;
283 bool m_orderHasBeenSet = false;
284 bool m_documentVersionHasBeenSet = false;
285 bool m_activeHasBeenSet = false;
286 bool m_timeoutSecondsHasBeenSet = false;
287 bool m_mustSucceedForCutoverHasBeenSet = false;
288 bool m_parametersHasBeenSet = false;
289 bool m_externalParametersHasBeenSet = false;
290 bool m_descriptionHasBeenSet = false;
291 bool m_categoryHasBeenSet = false;
292 bool m_requestIdHasBeenSet = false;
293};
294
295} // namespace Model
296} // namespace mgn
297} // 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)
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