AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PutLaunchActionRequest.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/drs/DrsRequest.h>
10#include <aws/drs/Drs_EXPORTS.h>
11#include <aws/drs/model/LaunchActionCategory.h>
12#include <aws/drs/model/LaunchActionParameter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace drs {
18namespace Model {
19
23 public:
24 AWS_DRS_API PutLaunchActionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutLaunchAction"; }
31
32 AWS_DRS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetActionCode() const { return m_actionCode; }
39 inline bool ActionCodeHasBeenSet() const { return m_actionCodeHasBeenSet; }
40 template <typename ActionCodeT = Aws::String>
41 void SetActionCode(ActionCodeT&& value) {
42 m_actionCodeHasBeenSet = true;
43 m_actionCode = std::forward<ActionCodeT>(value);
44 }
45 template <typename ActionCodeT = Aws::String>
46 PutLaunchActionRequest& WithActionCode(ActionCodeT&& value) {
47 SetActionCode(std::forward<ActionCodeT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetActionId() const { return m_actionId; }
55 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
56 template <typename ActionIdT = Aws::String>
57 void SetActionId(ActionIdT&& value) {
58 m_actionIdHasBeenSet = true;
59 m_actionId = std::forward<ActionIdT>(value);
60 }
61 template <typename ActionIdT = Aws::String>
63 SetActionId(std::forward<ActionIdT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
71 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
72 template <typename ActionVersionT = Aws::String>
73 void SetActionVersion(ActionVersionT&& value) {
74 m_actionVersionHasBeenSet = true;
75 m_actionVersion = std::forward<ActionVersionT>(value);
76 }
77 template <typename ActionVersionT = Aws::String>
78 PutLaunchActionRequest& WithActionVersion(ActionVersionT&& value) {
79 SetActionVersion(std::forward<ActionVersionT>(value));
80 return *this;
81 }
83
85
88 inline bool GetActive() const { return m_active; }
89 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
90 inline void SetActive(bool value) {
91 m_activeHasBeenSet = true;
92 m_active = value;
93 }
94 inline PutLaunchActionRequest& WithActive(bool value) {
95 SetActive(value);
96 return *this;
97 }
99
101
102 inline LaunchActionCategory GetCategory() const { return m_category; }
103 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
105 m_categoryHasBeenSet = true;
106 m_category = value;
107 }
109 SetCategory(value);
110 return *this;
111 }
113
115
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template <typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) {
120 m_descriptionHasBeenSet = true;
121 m_description = std::forward<DescriptionT>(value);
122 }
123 template <typename DescriptionT = Aws::String>
125 SetDescription(std::forward<DescriptionT>(value));
126 return *this;
127 }
129
131
132 inline const Aws::String& GetName() const { return m_name; }
133 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 template <typename NameT = Aws::String>
135 void SetName(NameT&& value) {
136 m_nameHasBeenSet = true;
137 m_name = std::forward<NameT>(value);
138 }
139 template <typename NameT = Aws::String>
141 SetName(std::forward<NameT>(value));
142 return *this;
143 }
145
147
150 inline bool GetOptional() const { return m_optional; }
151 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
152 inline void SetOptional(bool value) {
153 m_optionalHasBeenSet = true;
154 m_optional = value;
155 }
157 SetOptional(value);
158 return *this;
159 }
161
163
164 inline int GetOrder() const { return m_order; }
165 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
166 inline void SetOrder(int value) {
167 m_orderHasBeenSet = true;
168 m_order = value;
169 }
171 SetOrder(value);
172 return *this;
173 }
175
177
178 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
179 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
180 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
181 void SetParameters(ParametersT&& value) {
182 m_parametersHasBeenSet = true;
183 m_parameters = std::forward<ParametersT>(value);
184 }
185 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
187 SetParameters(std::forward<ParametersT>(value));
188 return *this;
189 }
190 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
191 PutLaunchActionRequest& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
192 m_parametersHasBeenSet = true;
193 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
194 return *this;
195 }
197
199
200 inline const Aws::String& GetResourceId() const { return m_resourceId; }
201 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
202 template <typename ResourceIdT = Aws::String>
203 void SetResourceId(ResourceIdT&& value) {
204 m_resourceIdHasBeenSet = true;
205 m_resourceId = std::forward<ResourceIdT>(value);
206 }
207 template <typename ResourceIdT = Aws::String>
209 SetResourceId(std::forward<ResourceIdT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_actionCode;
215
216 Aws::String m_actionId;
217
218 Aws::String m_actionVersion;
219
220 bool m_active{false};
221
223
224 Aws::String m_description;
225
226 Aws::String m_name;
227
228 bool m_optional{false};
229
230 int m_order{0};
231
233
234 Aws::String m_resourceId;
235 bool m_actionCodeHasBeenSet = false;
236 bool m_actionIdHasBeenSet = false;
237 bool m_actionVersionHasBeenSet = false;
238 bool m_activeHasBeenSet = false;
239 bool m_categoryHasBeenSet = false;
240 bool m_descriptionHasBeenSet = false;
241 bool m_nameHasBeenSet = false;
242 bool m_optionalHasBeenSet = false;
243 bool m_orderHasBeenSet = false;
244 bool m_parametersHasBeenSet = false;
245 bool m_resourceIdHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace drs
250} // namespace Aws
PutLaunchActionRequest & WithDescription(DescriptionT &&value)
PutLaunchActionRequest & WithActionId(ActionIdT &&value)
PutLaunchActionRequest & WithActive(bool value)
PutLaunchActionRequest & WithOrder(int value)
AWS_DRS_API PutLaunchActionRequest()=default
PutLaunchActionRequest & WithOptional(bool value)
PutLaunchActionRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
PutLaunchActionRequest & WithResourceId(ResourceIdT &&value)
PutLaunchActionRequest & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
AWS_DRS_API Aws::String SerializePayload() const override
void SetActionVersion(ActionVersionT &&value)
void SetCategory(LaunchActionCategory value)
PutLaunchActionRequest & WithCategory(LaunchActionCategory value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
PutLaunchActionRequest & WithActionCode(ActionCodeT &&value)
PutLaunchActionRequest & WithParameters(ParametersT &&value)
PutLaunchActionRequest & WithActionVersion(ActionVersionT &&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