AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSourceServerActionRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/ActionCategory.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/mgn/model/SsmExternalParameter.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/mgn/model/SsmParameterStoreParameter.h>
15#include <utility>
16
17namespace Aws
18{
19namespace mgn
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutSourceServerAction"; }
36
37 AWS_MGN_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetAccountID() const{ return m_accountID; }
45 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
46 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
47 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
48 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
49 inline PutSourceServerActionRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
50 inline PutSourceServerActionRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
51 inline PutSourceServerActionRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
53
55
58 inline const Aws::String& GetActionID() const{ return m_actionID; }
59 inline bool ActionIDHasBeenSet() const { return m_actionIDHasBeenSet; }
60 inline void SetActionID(const Aws::String& value) { m_actionIDHasBeenSet = true; m_actionID = value; }
61 inline void SetActionID(Aws::String&& value) { m_actionIDHasBeenSet = true; m_actionID = std::move(value); }
62 inline void SetActionID(const char* value) { m_actionIDHasBeenSet = true; m_actionID.assign(value); }
63 inline PutSourceServerActionRequest& WithActionID(const Aws::String& value) { SetActionID(value); return *this;}
64 inline PutSourceServerActionRequest& WithActionID(Aws::String&& value) { SetActionID(std::move(value)); return *this;}
65 inline PutSourceServerActionRequest& WithActionID(const char* value) { SetActionID(value); return *this;}
67
69
72 inline const Aws::String& GetActionName() const{ return m_actionName; }
73 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
74 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
75 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
76 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
77 inline PutSourceServerActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
78 inline PutSourceServerActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
79 inline PutSourceServerActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;}
81
83
86 inline bool GetActive() const{ return m_active; }
87 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
88 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
89 inline PutSourceServerActionRequest& WithActive(bool value) { SetActive(value); return *this;}
91
93
96 inline const ActionCategory& GetCategory() const{ return m_category; }
97 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
98 inline void SetCategory(const ActionCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
99 inline void SetCategory(ActionCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
100 inline PutSourceServerActionRequest& WithCategory(const ActionCategory& value) { SetCategory(value); return *this;}
101 inline PutSourceServerActionRequest& WithCategory(ActionCategory&& value) { SetCategory(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline PutSourceServerActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline PutSourceServerActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline PutSourceServerActionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117
119
122 inline const Aws::String& GetDocumentIdentifier() const{ return m_documentIdentifier; }
123 inline bool DocumentIdentifierHasBeenSet() const { return m_documentIdentifierHasBeenSet; }
124 inline void SetDocumentIdentifier(const Aws::String& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = value; }
125 inline void SetDocumentIdentifier(Aws::String&& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = std::move(value); }
126 inline void SetDocumentIdentifier(const char* value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier.assign(value); }
129 inline PutSourceServerActionRequest& WithDocumentIdentifier(const char* value) { SetDocumentIdentifier(value); return *this;}
131
133
136 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
137 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
138 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
139 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
140 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
142 inline PutSourceServerActionRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
143 inline PutSourceServerActionRequest& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;}
145
147
150 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const{ return m_externalParameters; }
151 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
152 inline void SetExternalParameters(const Aws::Map<Aws::String, SsmExternalParameter>& value) { m_externalParametersHasBeenSet = true; m_externalParameters = value; }
153 inline void SetExternalParameters(Aws::Map<Aws::String, SsmExternalParameter>&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::move(value); }
156 inline PutSourceServerActionRequest& AddExternalParameters(const Aws::String& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
157 inline PutSourceServerActionRequest& AddExternalParameters(Aws::String&& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), value); return *this; }
158 inline PutSourceServerActionRequest& AddExternalParameters(const Aws::String& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
159 inline PutSourceServerActionRequest& AddExternalParameters(Aws::String&& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), std::move(value)); return *this; }
160 inline PutSourceServerActionRequest& AddExternalParameters(const char* key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
161 inline PutSourceServerActionRequest& AddExternalParameters(const char* key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
163
165
168 inline bool GetMustSucceedForCutover() const{ return m_mustSucceedForCutover; }
169 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
170 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
173
175
178 inline int GetOrder() const{ return m_order; }
179 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
180 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
181 inline PutSourceServerActionRequest& WithOrder(int value) { SetOrder(value); return *this;}
183
185
189 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
190 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
191 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
194 inline PutSourceServerActionRequest& AddParameters(const Aws::String& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
195 inline PutSourceServerActionRequest& AddParameters(Aws::String&& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
196 inline PutSourceServerActionRequest& AddParameters(const Aws::String& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
197 inline PutSourceServerActionRequest& AddParameters(Aws::String&& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
198 inline PutSourceServerActionRequest& AddParameters(const char* key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
199 inline PutSourceServerActionRequest& AddParameters(const char* key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
201
203
206 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; }
207 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
208 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; }
209 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); }
210 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); }
212 inline PutSourceServerActionRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;}
213 inline PutSourceServerActionRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;}
215
217
220 inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
221 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
222 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
223 inline PutSourceServerActionRequest& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
225 private:
226
227 Aws::String m_accountID;
228 bool m_accountIDHasBeenSet = false;
229
230 Aws::String m_actionID;
231 bool m_actionIDHasBeenSet = false;
232
233 Aws::String m_actionName;
234 bool m_actionNameHasBeenSet = false;
235
236 bool m_active;
237 bool m_activeHasBeenSet = false;
238
239 ActionCategory m_category;
240 bool m_categoryHasBeenSet = false;
241
242 Aws::String m_description;
243 bool m_descriptionHasBeenSet = false;
244
245 Aws::String m_documentIdentifier;
246 bool m_documentIdentifierHasBeenSet = false;
247
248 Aws::String m_documentVersion;
249 bool m_documentVersionHasBeenSet = false;
250
252 bool m_externalParametersHasBeenSet = false;
253
254 bool m_mustSucceedForCutover;
255 bool m_mustSucceedForCutoverHasBeenSet = false;
256
257 int m_order;
258 bool m_orderHasBeenSet = false;
259
261 bool m_parametersHasBeenSet = false;
262
263 Aws::String m_sourceServerID;
264 bool m_sourceServerIDHasBeenSet = false;
265
266 int m_timeoutSeconds;
267 bool m_timeoutSecondsHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace mgn
272} // namespace Aws
PutSourceServerActionRequest & WithActionID(Aws::String &&value)
PutSourceServerActionRequest & WithSourceServerID(const Aws::String &value)
PutSourceServerActionRequest & WithExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
PutSourceServerActionRequest & WithAccountID(const char *value)
PutSourceServerActionRequest & WithActionID(const Aws::String &value)
PutSourceServerActionRequest & AddParameters(Aws::String &&key, Aws::Vector< SsmParameterStoreParameter > &&value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
PutSourceServerActionRequest & WithDocumentIdentifier(const Aws::String &value)
PutSourceServerActionRequest & WithDocumentIdentifier(Aws::String &&value)
PutSourceServerActionRequest & WithDocumentIdentifier(const char *value)
void SetExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
PutSourceServerActionRequest & WithDescription(const Aws::String &value)
PutSourceServerActionRequest & WithTimeoutSeconds(int value)
PutSourceServerActionRequest & AddExternalParameters(Aws::String &&key, SsmExternalParameter &&value)
PutSourceServerActionRequest & WithSourceServerID(const char *value)
PutSourceServerActionRequest & AddParameters(const char *key, const Aws::Vector< SsmParameterStoreParameter > &value)
PutSourceServerActionRequest & AddParameters(const char *key, Aws::Vector< SsmParameterStoreParameter > &&value)
PutSourceServerActionRequest & WithCategory(ActionCategory &&value)
PutSourceServerActionRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
PutSourceServerActionRequest & WithActionName(const Aws::String &value)
PutSourceServerActionRequest & AddParameters(const Aws::String &key, Aws::Vector< SsmParameterStoreParameter > &&value)
PutSourceServerActionRequest & WithActive(bool value)
PutSourceServerActionRequest & WithMustSucceedForCutover(bool value)
PutSourceServerActionRequest & WithExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
PutSourceServerActionRequest & WithActionName(const char *value)
PutSourceServerActionRequest & WithCategory(const ActionCategory &value)
PutSourceServerActionRequest & AddExternalParameters(const Aws::String &key, SsmExternalParameter &&value)
PutSourceServerActionRequest & AddExternalParameters(const Aws::String &key, const SsmExternalParameter &value)
PutSourceServerActionRequest & WithDescription(Aws::String &&value)
PutSourceServerActionRequest & WithAccountID(Aws::String &&value)
PutSourceServerActionRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
PutSourceServerActionRequest & WithDocumentVersion(Aws::String &&value)
PutSourceServerActionRequest & WithOrder(int value)
PutSourceServerActionRequest & AddParameters(Aws::String &&key, const Aws::Vector< SsmParameterStoreParameter > &value)
PutSourceServerActionRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
PutSourceServerActionRequest & WithAccountID(const Aws::String &value)
void SetExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
PutSourceServerActionRequest & AddParameters(const Aws::String &key, const Aws::Vector< SsmParameterStoreParameter > &value)
AWS_MGN_API Aws::String SerializePayload() const override
PutSourceServerActionRequest & AddExternalParameters(Aws::String &&key, const SsmExternalParameter &value)
PutSourceServerActionRequest & WithActionName(Aws::String &&value)
PutSourceServerActionRequest & WithActionID(const char *value)
PutSourceServerActionRequest & WithDocumentVersion(const char *value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
PutSourceServerActionRequest & AddExternalParameters(const char *key, SsmExternalParameter &&value)
PutSourceServerActionRequest & AddExternalParameters(const char *key, const SsmExternalParameter &value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
PutSourceServerActionRequest & WithSourceServerID(Aws::String &&value)
PutSourceServerActionRequest & WithDocumentVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
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
std::vector< T, Aws::Allocator< T > > Vector