AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PutLaunchActionResult.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/Drs_EXPORTS.h>
10#include <aws/drs/model/LaunchActionCategory.h>
11#include <aws/drs/model/LaunchActionParameter.h>
12#include <aws/drs/model/LaunchActionType.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace drs {
26namespace Model {
28 public:
29 AWS_DRS_API PutLaunchActionResult() = default;
32
34
37 inline const Aws::String& GetActionCode() const { return m_actionCode; }
38 template <typename ActionCodeT = Aws::String>
39 void SetActionCode(ActionCodeT&& value) {
40 m_actionCodeHasBeenSet = true;
41 m_actionCode = std::forward<ActionCodeT>(value);
42 }
43 template <typename ActionCodeT = Aws::String>
44 PutLaunchActionResult& WithActionCode(ActionCodeT&& value) {
45 SetActionCode(std::forward<ActionCodeT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetActionId() const { return m_actionId; }
53 template <typename ActionIdT = Aws::String>
54 void SetActionId(ActionIdT&& value) {
55 m_actionIdHasBeenSet = true;
56 m_actionId = std::forward<ActionIdT>(value);
57 }
58 template <typename ActionIdT = Aws::String>
59 PutLaunchActionResult& WithActionId(ActionIdT&& value) {
60 SetActionId(std::forward<ActionIdT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
68 template <typename ActionVersionT = Aws::String>
69 void SetActionVersion(ActionVersionT&& value) {
70 m_actionVersionHasBeenSet = true;
71 m_actionVersion = std::forward<ActionVersionT>(value);
72 }
73 template <typename ActionVersionT = Aws::String>
74 PutLaunchActionResult& WithActionVersion(ActionVersionT&& value) {
75 SetActionVersion(std::forward<ActionVersionT>(value));
76 return *this;
77 }
79
81
84 inline bool GetActive() const { return m_active; }
85 inline void SetActive(bool value) {
86 m_activeHasBeenSet = true;
87 m_active = value;
88 }
89 inline PutLaunchActionResult& WithActive(bool value) {
90 SetActive(value);
91 return *this;
92 }
94
96
97 inline LaunchActionCategory GetCategory() const { return m_category; }
98 inline void SetCategory(LaunchActionCategory value) {
99 m_categoryHasBeenSet = true;
100 m_category = value;
101 }
103 SetCategory(value);
104 return *this;
105 }
107
109
110 inline const Aws::String& GetDescription() const { return m_description; }
111 template <typename DescriptionT = Aws::String>
112 void SetDescription(DescriptionT&& value) {
113 m_descriptionHasBeenSet = true;
114 m_description = std::forward<DescriptionT>(value);
115 }
116 template <typename DescriptionT = Aws::String>
117 PutLaunchActionResult& WithDescription(DescriptionT&& value) {
118 SetDescription(std::forward<DescriptionT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetName() const { return m_name; }
126 template <typename NameT = Aws::String>
127 void SetName(NameT&& value) {
128 m_nameHasBeenSet = true;
129 m_name = std::forward<NameT>(value);
130 }
131 template <typename NameT = Aws::String>
133 SetName(std::forward<NameT>(value));
134 return *this;
135 }
137
139
142 inline bool GetOptional() const { return m_optional; }
143 inline void SetOptional(bool value) {
144 m_optionalHasBeenSet = true;
145 m_optional = value;
146 }
148 SetOptional(value);
149 return *this;
150 }
152
154
155 inline int GetOrder() const { return m_order; }
156 inline void SetOrder(int value) {
157 m_orderHasBeenSet = true;
158 m_order = value;
159 }
160 inline PutLaunchActionResult& WithOrder(int value) {
161 SetOrder(value);
162 return *this;
163 }
165
167
168 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
169 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
170 void SetParameters(ParametersT&& value) {
171 m_parametersHasBeenSet = true;
172 m_parameters = std::forward<ParametersT>(value);
173 }
174 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
175 PutLaunchActionResult& WithParameters(ParametersT&& value) {
176 SetParameters(std::forward<ParametersT>(value));
177 return *this;
178 }
179 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
180 PutLaunchActionResult& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
181 m_parametersHasBeenSet = true;
182 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetResourceId() const { return m_resourceId; }
190 template <typename ResourceIdT = Aws::String>
191 void SetResourceId(ResourceIdT&& value) {
192 m_resourceIdHasBeenSet = true;
193 m_resourceId = std::forward<ResourceIdT>(value);
194 }
195 template <typename ResourceIdT = Aws::String>
196 PutLaunchActionResult& WithResourceId(ResourceIdT&& value) {
197 SetResourceId(std::forward<ResourceIdT>(value));
198 return *this;
199 }
201
203
206 inline LaunchActionType GetType() const { return m_type; }
207 inline void SetType(LaunchActionType value) {
208 m_typeHasBeenSet = true;
209 m_type = value;
210 }
212 SetType(value);
213 return *this;
214 }
216
218
219 inline const Aws::String& GetRequestId() const { return m_requestId; }
220 template <typename RequestIdT = Aws::String>
221 void SetRequestId(RequestIdT&& value) {
222 m_requestIdHasBeenSet = true;
223 m_requestId = std::forward<RequestIdT>(value);
224 }
225 template <typename RequestIdT = Aws::String>
227 SetRequestId(std::forward<RequestIdT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_actionCode;
233
234 Aws::String m_actionId;
235
236 Aws::String m_actionVersion;
237
238 bool m_active{false};
239
241
242 Aws::String m_description;
243
244 Aws::String m_name;
245
246 bool m_optional{false};
247
248 int m_order{0};
249
251
252 Aws::String m_resourceId;
253
255
256 Aws::String m_requestId;
257 bool m_actionCodeHasBeenSet = false;
258 bool m_actionIdHasBeenSet = false;
259 bool m_actionVersionHasBeenSet = false;
260 bool m_activeHasBeenSet = false;
261 bool m_categoryHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_nameHasBeenSet = false;
264 bool m_optionalHasBeenSet = false;
265 bool m_orderHasBeenSet = false;
266 bool m_parametersHasBeenSet = false;
267 bool m_resourceIdHasBeenSet = false;
268 bool m_typeHasBeenSet = false;
269 bool m_requestIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace drs
274} // namespace Aws
PutLaunchActionResult & WithType(LaunchActionType value)
PutLaunchActionResult & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
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)
const Aws::String & GetActionVersion() const
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