AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutTemplateActionRequest.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 "PutTemplateAction"; }
36
37 AWS_MGN_API Aws::String SerializePayload() const override;
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 PutTemplateActionRequest& WithActionID(const Aws::String& value) { SetActionID(value); return *this;}
50 inline PutTemplateActionRequest& WithActionID(Aws::String&& value) { SetActionID(std::move(value)); return *this;}
51 inline PutTemplateActionRequest& 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 PutTemplateActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
64 inline PutTemplateActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
65 inline PutTemplateActionRequest& 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 PutTemplateActionRequest& 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 PutTemplateActionRequest& WithCategory(const ActionCategory& value) { SetCategory(value); return *this;}
87 inline PutTemplateActionRequest& 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 PutTemplateActionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline PutTemplateActionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline PutTemplateActionRequest& 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 PutTemplateActionRequest& WithDocumentIdentifier(Aws::String&& value) { SetDocumentIdentifier(std::move(value)); return *this;}
115 inline PutTemplateActionRequest& 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); }
127 inline PutTemplateActionRequest& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;}
128 inline PutTemplateActionRequest& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;}
129 inline PutTemplateActionRequest& 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 PutTemplateActionRequest& AddExternalParameters(const Aws::String& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
143 inline PutTemplateActionRequest& AddExternalParameters(Aws::String&& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), value); return *this; }
144 inline PutTemplateActionRequest& AddExternalParameters(const Aws::String& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
145 inline PutTemplateActionRequest& AddExternalParameters(Aws::String&& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), std::move(value)); return *this; }
146 inline PutTemplateActionRequest& AddExternalParameters(const char* key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; }
147 inline PutTemplateActionRequest& AddExternalParameters(const char* key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; }
149
151
154 inline const Aws::String& GetLaunchConfigurationTemplateID() const{ return m_launchConfigurationTemplateID; }
155 inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; }
156 inline void SetLaunchConfigurationTemplateID(const Aws::String& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = value; }
157 inline void SetLaunchConfigurationTemplateID(Aws::String&& value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID = std::move(value); }
158 inline void SetLaunchConfigurationTemplateID(const char* value) { m_launchConfigurationTemplateIDHasBeenSet = true; m_launchConfigurationTemplateID.assign(value); }
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 const Aws::String& GetOperatingSystem() const{ return m_operatingSystem; }
179 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
180 inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
181 inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
182 inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); }
183 inline PutTemplateActionRequest& WithOperatingSystem(const Aws::String& value) { SetOperatingSystem(value); return *this;}
184 inline PutTemplateActionRequest& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;}
185 inline PutTemplateActionRequest& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;}
187
189
192 inline int GetOrder() const{ return m_order; }
193 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
194 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
195 inline PutTemplateActionRequest& WithOrder(int value) { SetOrder(value); return *this;}
197
199
203 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
204 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
205 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<SsmParameterStoreParameter>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
208 inline PutTemplateActionRequest& AddParameters(const Aws::String& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
209 inline PutTemplateActionRequest& AddParameters(Aws::String&& key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
210 inline PutTemplateActionRequest& AddParameters(const Aws::String& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
211 inline PutTemplateActionRequest& AddParameters(Aws::String&& key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
212 inline PutTemplateActionRequest& AddParameters(const char* key, Aws::Vector<SsmParameterStoreParameter>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
213 inline PutTemplateActionRequest& AddParameters(const char* key, const Aws::Vector<SsmParameterStoreParameter>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, 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 PutTemplateActionRequest& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;}
225 private:
226
227 Aws::String m_actionID;
228 bool m_actionIDHasBeenSet = false;
229
230 Aws::String m_actionName;
231 bool m_actionNameHasBeenSet = false;
232
233 bool m_active;
234 bool m_activeHasBeenSet = false;
235
236 ActionCategory m_category;
237 bool m_categoryHasBeenSet = false;
238
239 Aws::String m_description;
240 bool m_descriptionHasBeenSet = false;
241
242 Aws::String m_documentIdentifier;
243 bool m_documentIdentifierHasBeenSet = false;
244
245 Aws::String m_documentVersion;
246 bool m_documentVersionHasBeenSet = false;
247
249 bool m_externalParametersHasBeenSet = false;
250
251 Aws::String m_launchConfigurationTemplateID;
252 bool m_launchConfigurationTemplateIDHasBeenSet = false;
253
254 bool m_mustSucceedForCutover;
255 bool m_mustSucceedForCutoverHasBeenSet = false;
256
257 Aws::String m_operatingSystem;
258 bool m_operatingSystemHasBeenSet = false;
259
260 int m_order;
261 bool m_orderHasBeenSet = false;
262
264 bool m_parametersHasBeenSet = false;
265
266 int m_timeoutSeconds;
267 bool m_timeoutSecondsHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace mgn
272} // namespace Aws
PutTemplateActionRequest & WithLaunchConfigurationTemplateID(const Aws::String &value)
PutTemplateActionRequest & WithDescription(const Aws::String &value)
PutTemplateActionRequest & WithCategory(ActionCategory &&value)
void SetExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
PutTemplateActionRequest & WithMustSucceedForCutover(bool value)
PutTemplateActionRequest & WithDocumentVersion(Aws::String &&value)
PutTemplateActionRequest & WithOperatingSystem(Aws::String &&value)
PutTemplateActionRequest & WithOperatingSystem(const char *value)
PutTemplateActionRequest & WithActionID(const Aws::String &value)
PutTemplateActionRequest & WithTimeoutSeconds(int value)
PutTemplateActionRequest & WithDescription(Aws::String &&value)
PutTemplateActionRequest & WithExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
PutTemplateActionRequest & AddExternalParameters(const Aws::String &key, SsmExternalParameter &&value)
PutTemplateActionRequest & WithActionName(Aws::String &&value)
PutTemplateActionRequest & WithDocumentVersion(const char *value)
PutTemplateActionRequest & AddParameters(const char *key, const Aws::Vector< SsmParameterStoreParameter > &value)
PutTemplateActionRequest & AddParameters(const char *key, Aws::Vector< SsmParameterStoreParameter > &&value)
void SetExternalParameters(const Aws::Map< Aws::String, SsmExternalParameter > &value)
PutTemplateActionRequest & WithOrder(int value)
const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > & GetParameters() const
void SetCategory(const ActionCategory &value)
void SetLaunchConfigurationTemplateID(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutTemplateActionRequest & WithDocumentIdentifier(const Aws::String &value)
PutTemplateActionRequest & WithCategory(const ActionCategory &value)
PutTemplateActionRequest & AddExternalParameters(const char *key, const SsmExternalParameter &value)
PutTemplateActionRequest & WithDescription(const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
PutTemplateActionRequest & AddExternalParameters(const char *key, SsmExternalParameter &&value)
PutTemplateActionRequest & WithExternalParameters(Aws::Map< Aws::String, SsmExternalParameter > &&value)
const Aws::Map< Aws::String, SsmExternalParameter > & GetExternalParameters() const
void SetDocumentIdentifier(const Aws::String &value)
PutTemplateActionRequest & WithActionID(Aws::String &&value)
PutTemplateActionRequest & WithDocumentVersion(const Aws::String &value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
PutTemplateActionRequest & AddExternalParameters(Aws::String &&key, const SsmExternalParameter &value)
PutTemplateActionRequest & WithLaunchConfigurationTemplateID(const char *value)
PutTemplateActionRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &&value)
PutTemplateActionRequest & WithDocumentIdentifier(Aws::String &&value)
PutTemplateActionRequest & AddParameters(const Aws::String &key, const Aws::Vector< SsmParameterStoreParameter > &value)
PutTemplateActionRequest & AddParameters(Aws::String &&key, const Aws::Vector< SsmParameterStoreParameter > &value)
const Aws::String & GetLaunchConfigurationTemplateID() const
PutTemplateActionRequest & AddParameters(Aws::String &&key, Aws::Vector< SsmParameterStoreParameter > &&value)
PutTemplateActionRequest & AddExternalParameters(const Aws::String &key, const SsmExternalParameter &value)
PutTemplateActionRequest & AddParameters(const Aws::String &key, Aws::Vector< SsmParameterStoreParameter > &&value)
PutTemplateActionRequest & WithDocumentIdentifier(const char *value)
PutTemplateActionRequest & AddExternalParameters(Aws::String &&key, SsmExternalParameter &&value)
PutTemplateActionRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< SsmParameterStoreParameter > > &value)
PutTemplateActionRequest & WithActive(bool value)
PutTemplateActionRequest & WithLaunchConfigurationTemplateID(Aws::String &&value)
PutTemplateActionRequest & WithActionName(const Aws::String &value)
PutTemplateActionRequest & WithOperatingSystem(const Aws::String &value)
PutTemplateActionRequest & WithActionName(const char *value)
PutTemplateActionRequest & WithActionID(const char *value)
AWS_MGN_API Aws::String SerializePayload() 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