AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Blueprint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9#include <aws/lightsail/model/AppCategory.h>
10#include <aws/lightsail/model/BlueprintType.h>
11#include <aws/lightsail/model/InstancePlatform.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
31class Blueprint {
32 public:
33 AWS_LIGHTSAIL_API Blueprint() = default;
34 AWS_LIGHTSAIL_API Blueprint(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LIGHTSAIL_API Blueprint& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetBlueprintId() const { return m_blueprintId; }
44 inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; }
45 template <typename BlueprintIdT = Aws::String>
46 void SetBlueprintId(BlueprintIdT&& value) {
47 m_blueprintIdHasBeenSet = true;
48 m_blueprintId = std::forward<BlueprintIdT>(value);
49 }
50 template <typename BlueprintIdT = Aws::String>
51 Blueprint& WithBlueprintId(BlueprintIdT&& value) {
52 SetBlueprintId(std::forward<BlueprintIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 Blueprint& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetGroup() const { return m_group; }
80 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
81 template <typename GroupT = Aws::String>
82 void SetGroup(GroupT&& value) {
83 m_groupHasBeenSet = true;
84 m_group = std::forward<GroupT>(value);
85 }
86 template <typename GroupT = Aws::String>
87 Blueprint& WithGroup(GroupT&& value) {
88 SetGroup(std::forward<GroupT>(value));
89 return *this;
90 }
92
94
97 inline BlueprintType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(BlueprintType value) {
100 m_typeHasBeenSet = true;
101 m_type = value;
102 }
104 SetType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 Blueprint& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
135 inline bool GetIsActive() const { return m_isActive; }
136 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
137 inline void SetIsActive(bool value) {
138 m_isActiveHasBeenSet = true;
139 m_isActive = value;
140 }
141 inline Blueprint& WithIsActive(bool value) {
142 SetIsActive(value);
143 return *this;
144 }
146
148
154 inline int GetMinPower() const { return m_minPower; }
155 inline bool MinPowerHasBeenSet() const { return m_minPowerHasBeenSet; }
156 inline void SetMinPower(int value) {
157 m_minPowerHasBeenSet = true;
158 m_minPower = value;
159 }
160 inline Blueprint& WithMinPower(int value) {
161 SetMinPower(value);
162 return *this;
163 }
165
167
171 inline const Aws::String& GetVersion() const { return m_version; }
172 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
173 template <typename VersionT = Aws::String>
174 void SetVersion(VersionT&& value) {
175 m_versionHasBeenSet = true;
176 m_version = std::forward<VersionT>(value);
177 }
178 template <typename VersionT = Aws::String>
179 Blueprint& WithVersion(VersionT&& value) {
180 SetVersion(std::forward<VersionT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetVersionCode() const { return m_versionCode; }
190 inline bool VersionCodeHasBeenSet() const { return m_versionCodeHasBeenSet; }
191 template <typename VersionCodeT = Aws::String>
192 void SetVersionCode(VersionCodeT&& value) {
193 m_versionCodeHasBeenSet = true;
194 m_versionCode = std::forward<VersionCodeT>(value);
195 }
196 template <typename VersionCodeT = Aws::String>
197 Blueprint& WithVersionCode(VersionCodeT&& value) {
198 SetVersionCode(std::forward<VersionCodeT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::String& GetProductUrl() const { return m_productUrl; }
208 inline bool ProductUrlHasBeenSet() const { return m_productUrlHasBeenSet; }
209 template <typename ProductUrlT = Aws::String>
210 void SetProductUrl(ProductUrlT&& value) {
211 m_productUrlHasBeenSet = true;
212 m_productUrl = std::forward<ProductUrlT>(value);
213 }
214 template <typename ProductUrlT = Aws::String>
215 Blueprint& WithProductUrl(ProductUrlT&& value) {
216 SetProductUrl(std::forward<ProductUrlT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetLicenseUrl() const { return m_licenseUrl; }
226 inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
227 template <typename LicenseUrlT = Aws::String>
228 void SetLicenseUrl(LicenseUrlT&& value) {
229 m_licenseUrlHasBeenSet = true;
230 m_licenseUrl = std::forward<LicenseUrlT>(value);
231 }
232 template <typename LicenseUrlT = Aws::String>
233 Blueprint& WithLicenseUrl(LicenseUrlT&& value) {
234 SetLicenseUrl(std::forward<LicenseUrlT>(value));
235 return *this;
236 }
238
240
244 inline InstancePlatform GetPlatform() const { return m_platform; }
245 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
246 inline void SetPlatform(InstancePlatform value) {
247 m_platformHasBeenSet = true;
248 m_platform = value;
249 }
251 SetPlatform(value);
252 return *this;
253 }
255
257
262 inline AppCategory GetAppCategory() const { return m_appCategory; }
263 inline bool AppCategoryHasBeenSet() const { return m_appCategoryHasBeenSet; }
264 inline void SetAppCategory(AppCategory value) {
265 m_appCategoryHasBeenSet = true;
266 m_appCategory = value;
267 }
269 SetAppCategory(value);
270 return *this;
271 }
273 private:
274 Aws::String m_blueprintId;
275 bool m_blueprintIdHasBeenSet = false;
276
277 Aws::String m_name;
278 bool m_nameHasBeenSet = false;
279
280 Aws::String m_group;
281 bool m_groupHasBeenSet = false;
282
284 bool m_typeHasBeenSet = false;
285
286 Aws::String m_description;
287 bool m_descriptionHasBeenSet = false;
288
289 bool m_isActive{false};
290 bool m_isActiveHasBeenSet = false;
291
292 int m_minPower{0};
293 bool m_minPowerHasBeenSet = false;
294
295 Aws::String m_version;
296 bool m_versionHasBeenSet = false;
297
298 Aws::String m_versionCode;
299 bool m_versionCodeHasBeenSet = false;
300
301 Aws::String m_productUrl;
302 bool m_productUrlHasBeenSet = false;
303
304 Aws::String m_licenseUrl;
305 bool m_licenseUrlHasBeenSet = false;
306
308 bool m_platformHasBeenSet = false;
309
310 AppCategory m_appCategory{AppCategory::NOT_SET};
311 bool m_appCategoryHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace Lightsail
316} // namespace Aws
void SetBlueprintId(BlueprintIdT &&value)
Definition Blueprint.h:46
AWS_LIGHTSAIL_API Blueprint(Aws::Utils::Json::JsonView jsonValue)
Blueprint & WithName(NameT &&value)
Definition Blueprint.h:69
void SetGroup(GroupT &&value)
Definition Blueprint.h:82
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Blueprint & WithProductUrl(ProductUrlT &&value)
Definition Blueprint.h:215
AWS_LIGHTSAIL_API Blueprint()=default
Blueprint & WithLicenseUrl(LicenseUrlT &&value)
Definition Blueprint.h:233
void SetVersion(VersionT &&value)
Definition Blueprint.h:174
AWS_LIGHTSAIL_API Blueprint & operator=(Aws::Utils::Json::JsonView jsonValue)
Blueprint & WithMinPower(int value)
Definition Blueprint.h:160
const Aws::String & GetVersionCode() const
Definition Blueprint.h:189
void SetDescription(DescriptionT &&value)
Definition Blueprint.h:116
Blueprint & WithDescription(DescriptionT &&value)
Definition Blueprint.h:121
Blueprint & WithAppCategory(AppCategory value)
Definition Blueprint.h:268
const Aws::String & GetGroup() const
Definition Blueprint.h:79
void SetType(BlueprintType value)
Definition Blueprint.h:99
Blueprint & WithVersion(VersionT &&value)
Definition Blueprint.h:179
Blueprint & WithVersionCode(VersionCodeT &&value)
Definition Blueprint.h:197
const Aws::String & GetName() const
Definition Blueprint.h:61
Blueprint & WithIsActive(bool value)
Definition Blueprint.h:141
void SetLicenseUrl(LicenseUrlT &&value)
Definition Blueprint.h:228
void SetName(NameT &&value)
Definition Blueprint.h:64
Blueprint & WithGroup(GroupT &&value)
Definition Blueprint.h:87
const Aws::String & GetVersion() const
Definition Blueprint.h:171
const Aws::String & GetDescription() const
Definition Blueprint.h:113
const Aws::String & GetBlueprintId() const
Definition Blueprint.h:43
void SetVersionCode(VersionCodeT &&value)
Definition Blueprint.h:192
void SetPlatform(InstancePlatform value)
Definition Blueprint.h:246
BlueprintType GetType() const
Definition Blueprint.h:97
Blueprint & WithBlueprintId(BlueprintIdT &&value)
Definition Blueprint.h:51
Blueprint & WithType(BlueprintType value)
Definition Blueprint.h:103
const Aws::String & GetProductUrl() const
Definition Blueprint.h:207
InstancePlatform GetPlatform() const
Definition Blueprint.h:244
void SetAppCategory(AppCategory value)
Definition Blueprint.h:264
Blueprint & WithPlatform(InstancePlatform value)
Definition Blueprint.h:250
void SetProductUrl(ProductUrlT &&value)
Definition Blueprint.h:210
AppCategory GetAppCategory() const
Definition Blueprint.h:262
const Aws::String & GetLicenseUrl() const
Definition Blueprint.h:225
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue