AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
29 AWS_MGN_API PutSourceServerActionRequest() = default;
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 template<typename AccountIDT = Aws::String>
47 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
48 template<typename AccountIDT = Aws::String>
49 PutSourceServerActionRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
51
53
56 inline const Aws::String& GetActionID() const { return m_actionID; }
57 inline bool ActionIDHasBeenSet() const { return m_actionIDHasBeenSet; }
58 template<typename ActionIDT = Aws::String>
59 void SetActionID(ActionIDT&& value) { m_actionIDHasBeenSet = true; m_actionID = std::forward<ActionIDT>(value); }
60 template<typename ActionIDT = Aws::String>
61 PutSourceServerActionRequest& WithActionID(ActionIDT&& value) { SetActionID(std::forward<ActionIDT>(value)); return *this;}
63
65
68 inline const Aws::String& GetActionName() const { return m_actionName; }
69 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
70 template<typename ActionNameT = Aws::String>
71 void SetActionName(ActionNameT&& value) { m_actionNameHasBeenSet = true; m_actionName = std::forward<ActionNameT>(value); }
72 template<typename ActionNameT = Aws::String>
73 PutSourceServerActionRequest& WithActionName(ActionNameT&& value) { SetActionName(std::forward<ActionNameT>(value)); return *this;}
75
77
80 inline bool GetActive() const { return m_active; }
81 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
82 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
83 inline PutSourceServerActionRequest& WithActive(bool value) { SetActive(value); return *this;}
85
87
90 inline ActionCategory GetCategory() const { return m_category; }
91 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
92 inline void SetCategory(ActionCategory value) { m_categoryHasBeenSet = true; m_category = value; }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 PutSourceServerActionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
112 inline const Aws::String& GetDocumentIdentifier() const { return m_documentIdentifier; }
113 inline bool DocumentIdentifierHasBeenSet() const { return m_documentIdentifierHasBeenSet; }
114 template<typename DocumentIdentifierT = Aws::String>
115 void SetDocumentIdentifier(DocumentIdentifierT&& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = std::forward<DocumentIdentifierT>(value); }
116 template<typename DocumentIdentifierT = Aws::String>
117 PutSourceServerActionRequest& WithDocumentIdentifier(DocumentIdentifierT&& value) { SetDocumentIdentifier(std::forward<DocumentIdentifierT>(value)); return *this;}
119
121
124 inline const Aws::String& GetDocumentVersion() const { return m_documentVersion; }
125 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
126 template<typename DocumentVersionT = Aws::String>
127 void SetDocumentVersion(DocumentVersionT&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::forward<DocumentVersionT>(value); }
128 template<typename DocumentVersionT = Aws::String>
129 PutSourceServerActionRequest& WithDocumentVersion(DocumentVersionT&& value) { SetDocumentVersion(std::forward<DocumentVersionT>(value)); return *this;}
131
133
136 inline const Aws::Map<Aws::String, SsmExternalParameter>& GetExternalParameters() const { return m_externalParameters; }
137 inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; }
138 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
139 void SetExternalParameters(ExternalParametersT&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::forward<ExternalParametersT>(value); }
140 template<typename ExternalParametersT = Aws::Map<Aws::String, SsmExternalParameter>>
141 PutSourceServerActionRequest& WithExternalParameters(ExternalParametersT&& value) { SetExternalParameters(std::forward<ExternalParametersT>(value)); return *this;}
142 template<typename ExternalParametersKeyT = Aws::String, typename ExternalParametersValueT = SsmExternalParameter>
143 PutSourceServerActionRequest& AddExternalParameters(ExternalParametersKeyT&& key, ExternalParametersValueT&& value) {
144 m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::forward<ExternalParametersKeyT>(key), std::forward<ExternalParametersValueT>(value)); return *this;
145 }
147
149
152 inline bool GetMustSucceedForCutover() const { return m_mustSucceedForCutover; }
153 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
154 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
157
159
162 inline int GetOrder() const { return m_order; }
163 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
164 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
165 inline PutSourceServerActionRequest& WithOrder(int value) { SetOrder(value); return *this;}
167
169
173 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
174 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
175 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
176 template<typename ParametersT = Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>>
177 PutSourceServerActionRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
178 template<typename ParametersKeyT = Aws::String, typename ParametersValueT = Aws::Vector<SsmParameterStoreParameter>>
179 PutSourceServerActionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
180 m_parametersHasBeenSet = true; m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value)); return *this;
181 }
183
185
188 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
189 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
190 template<typename SourceServerIDT = Aws::String>
191 void SetSourceServerID(SourceServerIDT&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::forward<SourceServerIDT>(value); }
192 template<typename SourceServerIDT = Aws::String>
193 PutSourceServerActionRequest& WithSourceServerID(SourceServerIDT&& value) { SetSourceServerID(std::forward<SourceServerIDT>(value)); return *this;}
195
197
200 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
201 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
202 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
203 inline PutSourceServerActionRequest& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
205 private:
206
207 Aws::String m_accountID;
208 bool m_accountIDHasBeenSet = false;
209
210 Aws::String m_actionID;
211 bool m_actionIDHasBeenSet = false;
212
213 Aws::String m_actionName;
214 bool m_actionNameHasBeenSet = false;
215
216 bool m_active{false};
217 bool m_activeHasBeenSet = false;
218
220 bool m_categoryHasBeenSet = false;
221
222 Aws::String m_description;
223 bool m_descriptionHasBeenSet = false;
224
225 Aws::String m_documentIdentifier;
226 bool m_documentIdentifierHasBeenSet = false;
227
228 Aws::String m_documentVersion;
229 bool m_documentVersionHasBeenSet = false;
230
232 bool m_externalParametersHasBeenSet = false;
233
234 bool m_mustSucceedForCutover{false};
235 bool m_mustSucceedForCutoverHasBeenSet = false;
236
237 int m_order{0};
238 bool m_orderHasBeenSet = false;
239
241 bool m_parametersHasBeenSet = false;
242
243 Aws::String m_sourceServerID;
244 bool m_sourceServerIDHasBeenSet = false;
245
246 int m_timeoutSeconds{0};
247 bool m_timeoutSecondsHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace mgn
252} // namespace Aws
PutSourceServerActionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
PutSourceServerActionRequest & WithDocumentVersion(DocumentVersionT &&value)
PutSourceServerActionRequest & WithSourceServerID(SourceServerIDT &&value)
PutSourceServerActionRequest & WithTimeoutSeconds(int value)
PutSourceServerActionRequest & WithDocumentIdentifier(DocumentIdentifierT &&value)
PutSourceServerActionRequest & WithActive(bool value)
PutSourceServerActionRequest & WithMustSucceedForCutover(bool value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
AWS_MGN_API PutSourceServerActionRequest()=default
PutSourceServerActionRequest & WithParameters(ParametersT &&value)
PutSourceServerActionRequest & WithDescription(DescriptionT &&value)
PutSourceServerActionRequest & WithExternalParameters(ExternalParametersT &&value)
PutSourceServerActionRequest & WithOrder(int value)
PutSourceServerActionRequest & WithAccountID(AccountIDT &&value)
PutSourceServerActionRequest & AddExternalParameters(ExternalParametersKeyT &&key, ExternalParametersValueT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
PutSourceServerActionRequest & WithCategory(ActionCategory value)
PutSourceServerActionRequest & WithActionID(ActionIDT &&value)
PutSourceServerActionRequest & WithActionName(ActionNameT &&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