AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LaunchAction.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 {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace drs {
24namespace Model {
25
32 public:
33 AWS_DRS_API LaunchAction() = default;
37
39
42 inline const Aws::String& GetActionCode() const { return m_actionCode; }
43 inline bool ActionCodeHasBeenSet() const { return m_actionCodeHasBeenSet; }
44 template <typename ActionCodeT = Aws::String>
45 void SetActionCode(ActionCodeT&& value) {
46 m_actionCodeHasBeenSet = true;
47 m_actionCode = std::forward<ActionCodeT>(value);
48 }
49 template <typename ActionCodeT = Aws::String>
50 LaunchAction& WithActionCode(ActionCodeT&& value) {
51 SetActionCode(std::forward<ActionCodeT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetActionId() const { return m_actionId; }
59 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
60 template <typename ActionIdT = Aws::String>
61 void SetActionId(ActionIdT&& value) {
62 m_actionIdHasBeenSet = true;
63 m_actionId = std::forward<ActionIdT>(value);
64 }
65 template <typename ActionIdT = Aws::String>
66 LaunchAction& WithActionId(ActionIdT&& value) {
67 SetActionId(std::forward<ActionIdT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetActionVersion() const { return m_actionVersion; }
75 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
76 template <typename ActionVersionT = Aws::String>
77 void SetActionVersion(ActionVersionT&& value) {
78 m_actionVersionHasBeenSet = true;
79 m_actionVersion = std::forward<ActionVersionT>(value);
80 }
81 template <typename ActionVersionT = Aws::String>
82 LaunchAction& WithActionVersion(ActionVersionT&& value) {
83 SetActionVersion(std::forward<ActionVersionT>(value));
84 return *this;
85 }
87
89
92 inline bool GetActive() const { return m_active; }
93 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
94 inline void SetActive(bool value) {
95 m_activeHasBeenSet = true;
96 m_active = value;
97 }
98 inline LaunchAction& WithActive(bool value) {
99 SetActive(value);
100 return *this;
101 }
103
105
106 inline LaunchActionCategory GetCategory() const { return m_category; }
107 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
109 m_categoryHasBeenSet = true;
110 m_category = value;
111 }
113 SetCategory(value);
114 return *this;
115 }
117
119
120 inline const Aws::String& GetDescription() const { return m_description; }
121 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
122 template <typename DescriptionT = Aws::String>
123 void SetDescription(DescriptionT&& value) {
124 m_descriptionHasBeenSet = true;
125 m_description = std::forward<DescriptionT>(value);
126 }
127 template <typename DescriptionT = Aws::String>
128 LaunchAction& WithDescription(DescriptionT&& value) {
129 SetDescription(std::forward<DescriptionT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetName() const { return m_name; }
137 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
138 template <typename NameT = Aws::String>
139 void SetName(NameT&& value) {
140 m_nameHasBeenSet = true;
141 m_name = std::forward<NameT>(value);
142 }
143 template <typename NameT = Aws::String>
144 LaunchAction& WithName(NameT&& value) {
145 SetName(std::forward<NameT>(value));
146 return *this;
147 }
149
151
154 inline bool GetOptional() const { return m_optional; }
155 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
156 inline void SetOptional(bool value) {
157 m_optionalHasBeenSet = true;
158 m_optional = value;
159 }
160 inline LaunchAction& WithOptional(bool value) {
161 SetOptional(value);
162 return *this;
163 }
165
167
168 inline int GetOrder() const { return m_order; }
169 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
170 inline void SetOrder(int value) {
171 m_orderHasBeenSet = true;
172 m_order = value;
173 }
174 inline LaunchAction& WithOrder(int value) {
175 SetOrder(value);
176 return *this;
177 }
179
181
182 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const { return m_parameters; }
183 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
184 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
185 void SetParameters(ParametersT&& value) {
186 m_parametersHasBeenSet = true;
187 m_parameters = std::forward<ParametersT>(value);
188 }
189 template <typename ParametersT = Aws::Map<Aws::String, LaunchActionParameter>>
190 LaunchAction& WithParameters(ParametersT&& value) {
191 SetParameters(std::forward<ParametersT>(value));
192 return *this;
193 }
194 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = LaunchActionParameter>
195 LaunchAction& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
196 m_parametersHasBeenSet = true;
197 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
198 return *this;
199 }
201
203
206 inline LaunchActionType GetType() const { return m_type; }
207 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
208 inline void SetType(LaunchActionType value) {
209 m_typeHasBeenSet = true;
210 m_type = value;
211 }
213 SetType(value);
214 return *this;
215 }
217 private:
218 Aws::String m_actionCode;
219
220 Aws::String m_actionId;
221
222 Aws::String m_actionVersion;
223
224 bool m_active{false};
225
227
228 Aws::String m_description;
229
230 Aws::String m_name;
231
232 bool m_optional{false};
233
234 int m_order{0};
235
237
239 bool m_actionCodeHasBeenSet = false;
240 bool m_actionIdHasBeenSet = false;
241 bool m_actionVersionHasBeenSet = false;
242 bool m_activeHasBeenSet = false;
243 bool m_categoryHasBeenSet = false;
244 bool m_descriptionHasBeenSet = false;
245 bool m_nameHasBeenSet = false;
246 bool m_optionalHasBeenSet = false;
247 bool m_orderHasBeenSet = false;
248 bool m_parametersHasBeenSet = false;
249 bool m_typeHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace drs
254} // namespace Aws
const Aws::String & GetActionVersion() const
LaunchActionType GetType() const
LaunchAction & WithOrder(int value)
void SetName(NameT &&value)
LaunchActionCategory GetCategory() const
AWS_DRS_API LaunchAction()=default
const Aws::String & GetActionId() const
void SetType(LaunchActionType value)
LaunchAction & WithType(LaunchActionType value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchAction & WithActionCode(ActionCodeT &&value)
void SetParameters(ParametersT &&value)
LaunchAction & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetActionCode() const
AWS_DRS_API LaunchAction(Aws::Utils::Json::JsonView jsonValue)
void SetActionCode(ActionCodeT &&value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
const Aws::String & GetName() const
LaunchAction & WithActionVersion(ActionVersionT &&value)
LaunchAction & WithName(NameT &&value)
LaunchAction & WithActive(bool value)
LaunchAction & WithCategory(LaunchActionCategory value)
void SetCategory(LaunchActionCategory value)
LaunchAction & WithOptional(bool value)
LaunchAction & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
LaunchAction & WithActionId(ActionIdT &&value)
LaunchAction & WithParameters(ParametersT &&value)
void SetActionVersion(ActionVersionT &&value)
void SetActionId(ActionIdT &&value)
AWS_DRS_API LaunchAction & operator=(Aws::Utils::Json::JsonView jsonValue)
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