AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchAction.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/LaunchActionCategory.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/drs/model/LaunchActionType.h>
12#include <aws/drs/model/LaunchActionParameter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace drs
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_DRS_API LaunchAction();
42
43
45
48 inline const Aws::String& GetActionCode() const{ return m_actionCode; }
49 inline bool ActionCodeHasBeenSet() const { return m_actionCodeHasBeenSet; }
50 inline void SetActionCode(const Aws::String& value) { m_actionCodeHasBeenSet = true; m_actionCode = value; }
51 inline void SetActionCode(Aws::String&& value) { m_actionCodeHasBeenSet = true; m_actionCode = std::move(value); }
52 inline void SetActionCode(const char* value) { m_actionCodeHasBeenSet = true; m_actionCode.assign(value); }
53 inline LaunchAction& WithActionCode(const Aws::String& value) { SetActionCode(value); return *this;}
54 inline LaunchAction& WithActionCode(Aws::String&& value) { SetActionCode(std::move(value)); return *this;}
55 inline LaunchAction& WithActionCode(const char* value) { SetActionCode(value); return *this;}
57
59
60 inline const Aws::String& GetActionId() const{ return m_actionId; }
61 inline bool ActionIdHasBeenSet() const { return m_actionIdHasBeenSet; }
62 inline void SetActionId(const Aws::String& value) { m_actionIdHasBeenSet = true; m_actionId = value; }
63 inline void SetActionId(Aws::String&& value) { m_actionIdHasBeenSet = true; m_actionId = std::move(value); }
64 inline void SetActionId(const char* value) { m_actionIdHasBeenSet = true; m_actionId.assign(value); }
65 inline LaunchAction& WithActionId(const Aws::String& value) { SetActionId(value); return *this;}
66 inline LaunchAction& WithActionId(Aws::String&& value) { SetActionId(std::move(value)); return *this;}
67 inline LaunchAction& WithActionId(const char* value) { SetActionId(value); return *this;}
69
71
72 inline const Aws::String& GetActionVersion() const{ return m_actionVersion; }
73 inline bool ActionVersionHasBeenSet() const { return m_actionVersionHasBeenSet; }
74 inline void SetActionVersion(const Aws::String& value) { m_actionVersionHasBeenSet = true; m_actionVersion = value; }
75 inline void SetActionVersion(Aws::String&& value) { m_actionVersionHasBeenSet = true; m_actionVersion = std::move(value); }
76 inline void SetActionVersion(const char* value) { m_actionVersionHasBeenSet = true; m_actionVersion.assign(value); }
77 inline LaunchAction& WithActionVersion(const Aws::String& value) { SetActionVersion(value); return *this;}
78 inline LaunchAction& WithActionVersion(Aws::String&& value) { SetActionVersion(std::move(value)); return *this;}
79 inline LaunchAction& WithActionVersion(const char* value) { SetActionVersion(value); return *this;}
81
83
86 inline bool GetActive() const{ return m_active; }
87 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
88 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
89 inline LaunchAction& WithActive(bool value) { SetActive(value); return *this;}
91
93
94 inline const LaunchActionCategory& GetCategory() const{ return m_category; }
95 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
96 inline void SetCategory(const LaunchActionCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
97 inline void SetCategory(LaunchActionCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
98 inline LaunchAction& WithCategory(const LaunchActionCategory& value) { SetCategory(value); return *this;}
99 inline LaunchAction& WithCategory(LaunchActionCategory&& value) { SetCategory(std::move(value)); return *this;}
101
103
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 inline LaunchAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 inline LaunchAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline LaunchAction& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
116 inline const Aws::String& GetName() const{ return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
119 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
120 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 inline LaunchAction& WithName(const Aws::String& value) { SetName(value); return *this;}
122 inline LaunchAction& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 inline LaunchAction& WithName(const char* value) { SetName(value); return *this;}
125
127
130 inline bool GetOptional() const{ return m_optional; }
131 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
132 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
133 inline LaunchAction& WithOptional(bool value) { SetOptional(value); return *this;}
135
137
138 inline int GetOrder() const{ return m_order; }
139 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
140 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
141 inline LaunchAction& WithOrder(int value) { SetOrder(value); return *this;}
143
145
146 inline const Aws::Map<Aws::String, LaunchActionParameter>& GetParameters() const{ return m_parameters; }
147 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
148 inline void SetParameters(const Aws::Map<Aws::String, LaunchActionParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
149 inline void SetParameters(Aws::Map<Aws::String, LaunchActionParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
152 inline LaunchAction& AddParameters(const Aws::String& key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
153 inline LaunchAction& AddParameters(Aws::String&& key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
154 inline LaunchAction& AddParameters(const Aws::String& key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
155 inline LaunchAction& AddParameters(Aws::String&& key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
156 inline LaunchAction& AddParameters(const char* key, LaunchActionParameter&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
157 inline LaunchAction& AddParameters(const char* key, const LaunchActionParameter& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
159
161
164 inline const LaunchActionType& GetType() const{ return m_type; }
165 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
166 inline void SetType(const LaunchActionType& value) { m_typeHasBeenSet = true; m_type = value; }
167 inline void SetType(LaunchActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
168 inline LaunchAction& WithType(const LaunchActionType& value) { SetType(value); return *this;}
169 inline LaunchAction& WithType(LaunchActionType&& value) { SetType(std::move(value)); return *this;}
171 private:
172
173 Aws::String m_actionCode;
174 bool m_actionCodeHasBeenSet = false;
175
176 Aws::String m_actionId;
177 bool m_actionIdHasBeenSet = false;
178
179 Aws::String m_actionVersion;
180 bool m_actionVersionHasBeenSet = false;
181
182 bool m_active;
183 bool m_activeHasBeenSet = false;
184
185 LaunchActionCategory m_category;
186 bool m_categoryHasBeenSet = false;
187
188 Aws::String m_description;
189 bool m_descriptionHasBeenSet = false;
190
191 Aws::String m_name;
192 bool m_nameHasBeenSet = false;
193
194 bool m_optional;
195 bool m_optionalHasBeenSet = false;
196
197 int m_order;
198 bool m_orderHasBeenSet = false;
199
201 bool m_parametersHasBeenSet = false;
202
203 LaunchActionType m_type;
204 bool m_typeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace drs
209} // namespace Aws
LaunchAction & WithType(LaunchActionType &&value)
const Aws::String & GetActionVersion() const
LaunchAction & WithActionCode(Aws::String &&value)
void SetParameters(Aws::Map< Aws::String, LaunchActionParameter > &&value)
LaunchAction & WithCategory(const LaunchActionCategory &value)
void SetActionVersion(Aws::String &&value)
LaunchAction & WithActionVersion(Aws::String &&value)
void SetName(const char *value)
LaunchAction & WithOrder(int value)
void SetType(const LaunchActionType &value)
LaunchAction & AddParameters(const char *key, LaunchActionParameter &&value)
LaunchAction & WithActionId(const char *value)
LaunchAction & WithActionVersion(const Aws::String &value)
LaunchAction & WithActionCode(const Aws::String &value)
LaunchAction & WithActionVersion(const char *value)
LaunchAction & WithActionId(const Aws::String &value)
void SetActionCode(Aws::String &&value)
void SetCategory(const LaunchActionCategory &value)
LaunchAction & WithName(Aws::String &&value)
void SetCategory(LaunchActionCategory &&value)
LaunchAction & AddParameters(const Aws::String &key, LaunchActionParameter &&value)
LaunchAction & AddParameters(const char *key, const LaunchActionParameter &value)
const Aws::String & GetActionId() const
LaunchAction & WithDescription(Aws::String &&value)
LaunchAction & AddParameters(Aws::String &&key, LaunchActionParameter &&value)
LaunchAction & WithActionCode(const char *value)
LaunchAction & WithType(const LaunchActionType &value)
const LaunchActionCategory & GetCategory() const
LaunchAction & WithName(const char *value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
LaunchAction & AddParameters(Aws::String &&key, const LaunchActionParameter &value)
LaunchAction & WithName(const Aws::String &value)
const LaunchActionType & GetType() const
void SetActionCode(const char *value)
void SetActionVersion(const Aws::String &value)
const Aws::String & GetActionCode() const
AWS_DRS_API LaunchAction(Aws::Utils::Json::JsonView jsonValue)
LaunchAction & WithDescription(const char *value)
const Aws::Map< Aws::String, LaunchActionParameter > & GetParameters() const
LaunchAction & WithParameters(const Aws::Map< Aws::String, LaunchActionParameter > &value)
void SetName(const Aws::String &value)
LaunchAction & WithCategory(LaunchActionCategory &&value)
const Aws::String & GetName() const
LaunchAction & WithActive(bool value)
void SetType(LaunchActionType &&value)
LaunchAction & AddParameters(const Aws::String &key, const LaunchActionParameter &value)
void SetActionCode(const Aws::String &value)
void SetDescription(const char *value)
void SetParameters(const Aws::Map< Aws::String, LaunchActionParameter > &value)
LaunchAction & WithParameters(Aws::Map< Aws::String, LaunchActionParameter > &&value)
void SetName(Aws::String &&value)
LaunchAction & WithOptional(bool value)
LaunchAction & WithDescription(const Aws::String &value)
void SetActionVersion(const char *value)
void SetActionId(Aws::String &&value)
void SetActionId(const char *value)
const Aws::String & GetDescription() const
void SetDescription(const Aws::String &value)
void SetActionId(const Aws::String &value)
void SetDescription(Aws::String &&value)
LaunchAction & WithActionId(Aws::String &&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