AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SourceServerActionDocument.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 SourceServerActionDocument() = 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>
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 SourceServerActionDocument& 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 }
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>
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 }
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 SourceServerActionDocument& 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::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
199 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
200 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
201 void SetExternalParameters(ExternalParametersT&& value) {
202 m_externalParametersHasBeenSet = true;
203 m_externalParameters = std::forward<ExternalParametersT>(value);
204 }
205 template <typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
207 SetExternalParameters(std::forward<ExternalParametersT>(value));
208 return *this;
209 }
210 template <typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
211 SourceServerActionDocument& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
212 m_externalParametersHasBeenSet = true;
213 m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::String& GetDescription() const { return m_description; }
223 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
224 template <typename DescriptionT = Aws::String>
225 void SetDescription(DescriptionT&& value) {
226 m_descriptionHasBeenSet = true;
227 m_description = std::forward<DescriptionT>(value);
228 }
229 template <typename DescriptionT = Aws::String>
231 SetDescription(std::forward<DescriptionT>(value));
232 return *this;
233 }
235
237
240 inline ActionCategory GetCategory() const { return m_category; }
241 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
242 inline void SetCategory(ActionCategory value) {
243 m_categoryHasBeenSet = true;
244 m_category = value;
245 }
247 SetCategory(value);
248 return *this;
249 }
251
253
254 inline const Aws::String& GetRequestId() const { return m_requestId; }
255 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
256 template <typename RequestIdT = Aws::String>
257 void SetRequestId(RequestIdT&& value) {
258 m_requestIdHasBeenSet = true;
259 m_requestId = std::forward<RequestIdT>(value);
260 }
261 template <typename RequestIdT = Aws::String>
263 SetRequestId(std::forward<RequestIdT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_actionID;
269
270 Aws::String m_actionName;
271
272 Aws::String m_documentIdentifier;
273
274 int m_order{0};
275
276 Aws::String m_documentVersion;
277
278 bool m_active{false};
279
280 int m_timeoutSeconds{0};
281
282 bool m_mustSucceedForCutover{false};
283
285
287
288 Aws::String m_description;
289
291
292 Aws::String m_requestId;
293 bool m_actionIDHasBeenSet = false;
294 bool m_actionNameHasBeenSet = false;
295 bool m_documentIdentifierHasBeenSet = false;
296 bool m_orderHasBeenSet = false;
297 bool m_documentVersionHasBeenSet = false;
298 bool m_activeHasBeenSet = false;
299 bool m_timeoutSecondsHasBeenSet = false;
300 bool m_mustSucceedForCutoverHasBeenSet = false;
301 bool m_parametersHasBeenSet = false;
302 bool m_externalParametersHasBeenSet = false;
303 bool m_descriptionHasBeenSet = false;
304 bool m_categoryHasBeenSet = false;
305 bool m_requestIdHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace mgn
310} // namespace Aws
SourceServerActionDocument & WithExternalParameters(ExternalParametersT &&value)
SourceServerActionDocument & WithActionID(ActionIDT &&value)
void SetDocumentIdentifier(DocumentIdentifierT &&value)
SourceServerActionDocument & WithTimeoutSeconds(int value)
void SetExternalParameters(ExternalParametersT &&value)
SourceServerActionDocument & WithRequestId(RequestIdT &&value)
AWS_MGN_API SourceServerActionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
SourceServerActionDocument & WithDocumentVersion(DocumentVersionT &&value)
SourceServerActionDocument & WithCategory(ActionCategory value)
SourceServerActionDocument & WithMustSucceedForCutover(bool value)
SourceServerActionDocument & WithOrder(int value)
SourceServerActionDocument & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
SourceServerActionDocument & WithDocumentIdentifier(DocumentIdentifierT &&value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
SourceServerActionDocument & WithDescription(DescriptionT &&value)
AWS_MGN_API SourceServerActionDocument()=default
AWS_MGN_API SourceServerActionDocument(Aws::Utils::Json::JsonView jsonValue)
SourceServerActionDocument & WithActive(bool value)
SourceServerActionDocument & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
SourceServerActionDocument & WithParameters(ParametersT &&value)
SourceServerActionDocument & WithActionName(ActionNameT &&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