AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PutLaunchActionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/drs/Drs_EXPORTS.h>
11#include <aws/drs/model/LaunchActionCategory.h>
12#include <aws/drs/model/LaunchActionParameter.h>
13#include <aws/drs/model/LaunchActionType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace drs {
27namespace Model {
29 public:
30 AWS_DRS_API PutLaunchActionResult() = default;
33
35
36 inline const Aws::String& GetResourceId() const { return m_resourceId; }
37 template <typename ResourceIdT = Aws::String>
38 void SetResourceId(ResourceIdT&& value) {
39 m_resourceIdHasBeenSet = true;
40 m_resourceId = std::forward<ResourceIdT>(value);
41 }
42 template <typename ResourceIdT = Aws::String>
43 PutLaunchActionResult& WithResourceId(ResourceIdT&& value) {
44 SetResourceId(std::forward<ResourceIdT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetActionId() const { return m_actionId; }
52 template <typename ActionIdT = Aws::String>
53 void SetActionId(ActionIdT&& value) {
54 m_actionIdHasBeenSet = true;
55 m_actionId = std::forward<ActionIdT>(value);
56 }
57 template <typename ActionIdT = Aws::String>
58 PutLaunchActionResult& WithActionId(ActionIdT&& value) {
59 SetActionId(std::forward<ActionIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetActionCode() const { return m_actionCode; }
69 template <typename ActionCodeT = Aws::String>
70 void SetActionCode(ActionCodeT&& value) {
71 m_actionCodeHasBeenSet = true;
72 m_actionCode = std::forward<ActionCodeT>(value);
73 }
74 template <typename ActionCodeT = Aws::String>
75 PutLaunchActionResult& WithActionCode(ActionCodeT&& value) {
76 SetActionCode(std::forward<ActionCodeT>(value));
77 return *this;
78 }
80
82
85 inline LaunchActionType GetType() const { return m_type; }
86 inline void SetType(LaunchActionType value) {
87 m_typeHasBeenSet = true;
88 m_type = value;
89 }
91 SetType(value);
92 return *this;
93 }
95
97
98 inline const Aws::String& GetName() const { return m_name; }
99 template <typename NameT = Aws::String>
100 void SetName(NameT&& value) {
101 m_nameHasBeenSet = true;
102 m_name = std::forward<NameT>(value);
103 }
104 template <typename NameT = Aws::String>
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
115 inline bool GetActive() const { return m_active; }
116 inline void SetActive(bool value) {
117 m_activeHasBeenSet = true;
118 m_active = value;
119 }
120 inline PutLaunchActionResult& WithActive(bool value) {
121 SetActive(value);
122 return *this;
123 }
125
127
128 inline int GetOrder() const { return m_order; }
129 inline void SetOrder(int value) {
130 m_orderHasBeenSet = true;
131 m_order = value;
132 }
133 inline PutLaunchActionResult& WithOrder(int value) {
134 SetOrder(value);
135 return *this;
136 }
138
140
141 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
142 template <typename ActionVersionT = Aws::String>
143 void SetActionVersion(ActionVersionT&& value) {
144 m_actionVersionHasBeenSet = true;
145 m_actionVersion = std::forward<ActionVersionT>(value);
146 }
147 template <typename ActionVersionT = Aws::String>
148 PutLaunchActionResult& WithActionVersion(ActionVersionT&& value) {
149 SetActionVersion(std::forward<ActionVersionT>(value));
150 return *this;
151 }
153
155
158 inline bool GetOptional() const { return m_optional; }
159 inline void SetOptional(bool value) {
160 m_optionalHasBeenSet = true;
161 m_optional = value;
162 }
164 SetOptional(value);
165 return *this;
166 }
168
170
171 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
172 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
173 void SetParameters(ParametersT&& value) {
174 m_parametersHasBeenSet = true;
175 m_parameters = std::forward<ParametersT>(value);
176 }
177 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
178 PutLaunchActionResult& WithParameters(ParametersT&& value) {
179 SetParameters(std::forward<ParametersT>(value));
180 return *this;
181 }
182 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
183 PutLaunchActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
184 m_parametersHasBeenSet = true;
185 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
186 return *this;
187 }
189
191
192 inline const Aws::String& GetDescription() const { return m_description; }
193 template <typename DescriptionT = Aws::String>
194 void SetDescription(DescriptionT&& value) {
195 m_descriptionHasBeenSet = true;
196 m_description = std::forward<DescriptionT>(value);
197 }
198 template <typename DescriptionT = Aws::String>
199 PutLaunchActionResult& WithDescription(DescriptionT&& value) {
200 SetDescription(std::forward<DescriptionT>(value));
201 return *this;
202 }
204
206
207 inline LaunchActionCategory GetCategory() const { return m_category; }
209 m_categoryHasBeenSet = true;
210 m_category = value;
211 }
213 SetCategory(value);
214 return *this;
215 }
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template <typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) {
223 m_requestIdHasBeenSet = true;
224 m_requestId = std::forward<RequestIdT>(value);
225 }
226 template <typename RequestIdT = Aws::String>
228 SetRequestId(std::forward<RequestIdT>(value));
229 return *this;
230 }
232 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
233
234 private:
235 Aws::String m_resourceId;
236
237 Aws::String m_actionId;
238
239 Aws::String m_actionCode;
240
242
243 Aws::String m_name;
244
245 bool m_active{false};
246
247 int m_order{0};
248
249 Aws::String m_actionVersion;
250
251 bool m_optional{false};
252
254
255 Aws::String m_description;
256
258
259 Aws::String m_requestId;
260 Aws::Http::HttpResponseCode m_HttpResponseCode;
261 bool m_resourceIdHasBeenSet = false;
262 bool m_actionIdHasBeenSet = false;
263 bool m_actionCodeHasBeenSet = false;
264 bool m_typeHasBeenSet = false;
265 bool m_nameHasBeenSet = false;
266 bool m_activeHasBeenSet = false;
267 bool m_orderHasBeenSet = false;
268 bool m_actionVersionHasBeenSet = false;
269 bool m_optionalHasBeenSet = false;
270 bool m_parametersHasBeenSet = false;
271 bool m_descriptionHasBeenSet = false;
272 bool m_categoryHasBeenSet = false;
273 bool m_requestIdHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace drs
278} // namespace Aws
PutLaunchActionResult & WithType(LaunchActionType value)
PutLaunchActionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
PutLaunchActionResult & WithOrder(int value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
AWS_DRS_API PutLaunchActionResult()=default
PutLaunchActionResult & WithCategory(LaunchActionCategory value)
PutLaunchActionResult & WithName(NameT &&value)
PutLaunchActionResult & WithResourceId(ResourceIdT &&value)
AWS_DRS_API PutLaunchActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetActionVersion(ActionVersionT &&value)
PutLaunchActionResult & WithActionId(ActionIdT &&value)
AWS_DRS_API PutLaunchActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutLaunchActionResult & WithActionVersion(ActionVersionT &&value)
PutLaunchActionResult & WithOptional(bool value)
PutLaunchActionResult & WithDescription(DescriptionT &&value)
void SetCategory(LaunchActionCategory value)
PutLaunchActionResult & WithRequestId(RequestIdT &&value)
PutLaunchActionResult & WithParameters(ParametersT &&value)
PutLaunchActionResult & WithActive(bool value)
PutLaunchActionResult & WithActionCode(ActionCodeT &&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
Aws::Utils::Json::JsonValue JsonValue