AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceServerActionDocument.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/ActionCategory.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/mgn/model/SsmExternalParameter.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mgn/model/SsmParameterStoreParameter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace mgn
27{
28namespace Model
29{
30
32 {
33 public:
38
39
41
44 inline const Aws::String& GetActionID() const{ return m_actionID; }
45 inline bool ActionIDHasBeenSet() const { return m_actionIDHasBeenSet; }
46 inline void SetActionID(const Aws::String& value) { m_actionIDHasBeenSet = true; m_actionID = value; }
47 inline void SetActionID(Aws::String&& value) { m_actionIDHasBeenSet = true; m_actionID = std::move(value); }
48 inline void SetActionID(const char* value) { m_actionIDHasBeenSet = true; m_actionID.assign(value); }
49 inline SourceServerActionDocument& WithActionID(const Aws::String& value) { SetActionID(value); return *this;}
50 inline SourceServerActionDocument& WithActionID(Aws::String&& value) { SetActionID(std::move(value)); return *this;}
51 inline SourceServerActionDocument& WithActionID(const char* value) { SetActionID(value); return *this;}
53
55
58 inline const Aws::String& GetActionName() const{ return m_actionName; }
59 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
60 inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
61 inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
62 inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
63 inline SourceServerActionDocument& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
64 inline SourceServerActionDocument& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
65 inline SourceServerActionDocument& WithActionName(const char* value) { SetActionName(value); return *this;}
67
69
72 inline bool GetActive() const{ return m_active; }
73 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
74 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
75 inline SourceServerActionDocument& WithActive(bool value) { SetActive(value); return *this;}
77
79
82 inline const ActionCategory& GetCategory() const{ return m_category; }
83 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
84 inline void SetCategory(const ActionCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
85 inline void SetCategory(ActionCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
86 inline SourceServerActionDocument& WithCategory(const ActionCategory& value) { SetCategory(value); return *this;}
87 inline SourceServerActionDocument& WithCategory(ActionCategory&& value) { SetCategory(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline SourceServerActionDocument& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline SourceServerActionDocument& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline SourceServerActionDocument& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
108 inline const Aws::String& GetDocumentIdentifier() const{ return m_documentIdentifier; }
109 inline bool DocumentIdentifierHasBeenSet() const { return m_documentIdentifierHasBeenSet; }
110 inline void SetDocumentIdentifier(const Aws::String& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = value; }
111 inline void SetDocumentIdentifier(Aws::String&& value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier = std::move(value); }
112 inline void SetDocumentIdentifier(const char* value) { m_documentIdentifierHasBeenSet = true; m_documentIdentifier.assign(value); }
114 inline SourceServerActionDocument& WithDocumentIdentifier(Aws::String&& value) { SetDocumentIdentifier(std::move(value)); return *this;}
115 inline SourceServerActionDocument& WithDocumentIdentifier(const char* value) { SetDocumentIdentifier(value); return *this;}
117
119
122 inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; }
123 inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; }
124 inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; }
125 inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); }
126 inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); }
128 inline SourceServerActionDocument& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
129 inline SourceServerActionDocument& WithDocumentVersion(const char* value) { SetDocumentVersion(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 inline void SetExternalParameters(const Aws::Map<Aws::String, SsmExternalParameter>& value) { m_externalParametersHasBeenSet = true; m_externalParameters = value; }
139 inline void SetExternalParameters(Aws::Map<Aws::String, SsmExternalParameter>&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::move(value); }
142 inline SourceServerActionDocument& AddExternalParameters(const Aws::String& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
143 inline SourceServerActionDocument& AddExternalParameters(Aws::String&& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), value); return *this; }
144 inline SourceServerActionDocument& AddExternalParameters(const Aws::String& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
145 inline SourceServerActionDocument& AddExternalParameters(Aws::String&& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), std::move(value)); return *this; }
146 inline SourceServerActionDocument& AddExternalParameters(const char* key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
147 inline SourceServerActionDocument& AddExternalParameters(const char* key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
149
151
154 inline bool GetMustSucceedForCutover() const{ return m_mustSucceedForCutover; }
155 inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; }
156 inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; }
159
161
164 inline int GetOrder() const{ return m_order; }
165 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
166 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
167 inline SourceServerActionDocument& WithOrder(int value) { SetOrder(value); return *this;}
169
171
175 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
176 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
177 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
180 inline SourceServerActionDocument& AddParameters(const Aws::String& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
181 inline SourceServerActionDocument& AddParameters(Aws::String&& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
182 inline SourceServerActionDocument& AddParameters(const Aws::String& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
183 inline SourceServerActionDocument& AddParameters(Aws::String&& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
184 inline SourceServerActionDocument& AddParameters(const char* key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
185 inline SourceServerActionDocument& AddParameters(const char* key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
187
189
192 inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; }
193 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
194 inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; }
195 inline SourceServerActionDocument& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
197
199
200 inline const Aws::String& GetRequestId() const{ return m_requestId; }
201 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
202 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
203 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
204 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
205 inline SourceServerActionDocument& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
206 inline SourceServerActionDocument& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
207 inline SourceServerActionDocument& WithRequestId(const char* value) { SetRequestId(value); return *this;}
209 private:
210
211 Aws::String m_actionID;
212 bool m_actionIDHasBeenSet = false;
213
214 Aws::String m_actionName;
215 bool m_actionNameHasBeenSet = false;
216
217 bool m_active;
218 bool m_activeHasBeenSet = false;
219
220 ActionCategory m_category;
221 bool m_categoryHasBeenSet = false;
222
223 Aws::String m_description;
224 bool m_descriptionHasBeenSet = false;
225
226 Aws::String m_documentIdentifier;
227 bool m_documentIdentifierHasBeenSet = false;
228
229 Aws::String m_documentVersion;
230 bool m_documentVersionHasBeenSet = false;
231
233 bool m_externalParametersHasBeenSet = false;
234
235 bool m_mustSucceedForCutover;
236 bool m_mustSucceedForCutoverHasBeenSet = false;
237
238 int m_order;
239 bool m_orderHasBeenSet = false;
240
242 bool m_parametersHasBeenSet = false;
243
244 int m_timeoutSeconds;
245 bool m_timeoutSecondsHasBeenSet = false;
246
247 Aws::String m_requestId;
248 bool m_requestIdHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace mgn
253} // namespace Aws
SourceServerActionDocument & AddParameters(Aws::String &&key, const Aws::Vector< SsmParameterStoreParameter > &value)
SourceServerActionDocument & WithExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
SourceServerActionDocument & WithDocumentIdentifier(const char *value)
SourceServerActionDocument & WithDocumentVersion(const char *value)
SourceServerActionDocument & WithTimeoutSeconds(int value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
SourceServerActionDocument & AddParameters(const char *key, const Aws::Vector< SsmParameterStoreParameter > &value)
SourceServerActionDocument & WithRequestId(const Aws::String &value)
SourceServerActionDocument & AddExternalParameters(const char *key, SsmExternalParameter &&value)
SourceServerActionDocument & WithParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
SourceServerActionDocument & WithActionID(const char *value)
void SetExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
SourceServerActionDocument & AddExternalParameters(Aws::String &&key, const SsmExternalParameter &value)
SourceServerActionDocument & WithExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
SourceServerActionDocument & AddParameters(const Aws::String &key, const Aws::Vector< SsmParameterStoreParameter > &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
AWS_MGN_API SourceServerActionDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceServerActionDocument & AddExternalParameters(Aws::String &&key, SsmExternalParameter &&value)
SourceServerActionDocument & WithDocumentIdentifier(const Aws::String &value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
SourceServerActionDocument & WithCategory(ActionCategory &&value)
SourceServerActionDocument & AddExternalParameters(const Aws::String &key, const SsmExternalParameter &value)
SourceServerActionDocument & WithDescription(const Aws::String &value)
SourceServerActionDocument & WithDescription(const char *value)
SourceServerActionDocument & WithDescription(Aws::String &&value)
SourceServerActionDocument & WithMustSucceedForCutover(bool value)
SourceServerActionDocument & WithCategory(const ActionCategory &value)
SourceServerActionDocument & WithActionID(Aws::String &&value)
SourceServerActionDocument & WithActionName(const char *value)
SourceServerActionDocument & WithDocumentVersion(Aws::String &&value)
SourceServerActionDocument & WithOrder(int value)
SourceServerActionDocument & WithParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
SourceServerActionDocument & WithActionName(Aws::String &&value)
SourceServerActionDocument & WithDocumentIdentifier(Aws::String &&value)
SourceServerActionDocument & AddExternalParameters(const char *key, const SsmExternalParameter &value)
AWS_MGN_API SourceServerActionDocument(Aws::Utils::Json::JsonView jsonValue)
SourceServerActionDocument & WithDocumentVersion(const Aws::String &value)
SourceServerActionDocument & WithRequestId(const char *value)
void SetExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
SourceServerActionDocument & WithRequestId(Aws::String &&value)
SourceServerActionDocument & WithActionID(const Aws::String &value)
SourceServerActionDocument & AddParameters(const char *key, Aws::Vector< SsmParameterStoreParameter > &&value)
SourceServerActionDocument & WithActive(bool value)
SourceServerActionDocument & AddParameters(const Aws::String &key, Aws::Vector< SsmParameterStoreParameter > &&value)
SourceServerActionDocument & AddParameters(Aws::String &&key, Aws::Vector< SsmParameterStoreParameter > &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
SourceServerActionDocument & WithActionName(const Aws::String &value)
SourceServerActionDocument & AddExternalParameters(const Aws::String &key, SsmExternalParameter &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue