AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Blueprint.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/BlueprintType.h>
10#include <aws/lightsail/model/InstancePlatform.h>
11#include <aws/lightsail/model/AppCategory.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LIGHTSAIL_API Blueprint();
39 AWS_LIGHTSAIL_API Blueprint(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Blueprint& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; }
50 inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; }
51 inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; }
52 inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); }
53 inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); }
54 inline Blueprint& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;}
55 inline Blueprint& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;}
56 inline Blueprint& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline Blueprint& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline Blueprint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline Blueprint& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetGroup() const{ return m_group; }
78 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
79 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
80 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
81 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
82 inline Blueprint& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
83 inline Blueprint& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
84 inline Blueprint& WithGroup(const char* value) { SetGroup(value); return *this;}
86
88
91 inline const BlueprintType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const BlueprintType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(BlueprintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline Blueprint& WithType(const BlueprintType& value) { SetType(value); return *this;}
96 inline Blueprint& WithType(BlueprintType&& value) { SetType(std::move(value)); return *this;}
98
100
103 inline const Aws::String& GetDescription() const{ return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 inline Blueprint& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 inline Blueprint& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 inline Blueprint& WithDescription(const char* value) { SetDescription(value); return *this;}
112
114
121 inline bool GetIsActive() const{ return m_isActive; }
122 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
123 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
124 inline Blueprint& WithIsActive(bool value) { SetIsActive(value); return *this;}
126
128
134 inline int GetMinPower() const{ return m_minPower; }
135 inline bool MinPowerHasBeenSet() const { return m_minPowerHasBeenSet; }
136 inline void SetMinPower(int value) { m_minPowerHasBeenSet = true; m_minPower = value; }
137 inline Blueprint& WithMinPower(int value) { SetMinPower(value); return *this;}
139
141
145 inline const Aws::String& GetVersion() const{ return m_version; }
146 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
147 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
148 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
149 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
150 inline Blueprint& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
151 inline Blueprint& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
152 inline Blueprint& WithVersion(const char* value) { SetVersion(value); return *this;}
154
156
159 inline const Aws::String& GetVersionCode() const{ return m_versionCode; }
160 inline bool VersionCodeHasBeenSet() const { return m_versionCodeHasBeenSet; }
161 inline void SetVersionCode(const Aws::String& value) { m_versionCodeHasBeenSet = true; m_versionCode = value; }
162 inline void SetVersionCode(Aws::String&& value) { m_versionCodeHasBeenSet = true; m_versionCode = std::move(value); }
163 inline void SetVersionCode(const char* value) { m_versionCodeHasBeenSet = true; m_versionCode.assign(value); }
164 inline Blueprint& WithVersionCode(const Aws::String& value) { SetVersionCode(value); return *this;}
165 inline Blueprint& WithVersionCode(Aws::String&& value) { SetVersionCode(std::move(value)); return *this;}
166 inline Blueprint& WithVersionCode(const char* value) { SetVersionCode(value); return *this;}
168
170
173 inline const Aws::String& GetProductUrl() const{ return m_productUrl; }
174 inline bool ProductUrlHasBeenSet() const { return m_productUrlHasBeenSet; }
175 inline void SetProductUrl(const Aws::String& value) { m_productUrlHasBeenSet = true; m_productUrl = value; }
176 inline void SetProductUrl(Aws::String&& value) { m_productUrlHasBeenSet = true; m_productUrl = std::move(value); }
177 inline void SetProductUrl(const char* value) { m_productUrlHasBeenSet = true; m_productUrl.assign(value); }
178 inline Blueprint& WithProductUrl(const Aws::String& value) { SetProductUrl(value); return *this;}
179 inline Blueprint& WithProductUrl(Aws::String&& value) { SetProductUrl(std::move(value)); return *this;}
180 inline Blueprint& WithProductUrl(const char* value) { SetProductUrl(value); return *this;}
182
184
187 inline const Aws::String& GetLicenseUrl() const{ return m_licenseUrl; }
188 inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
189 inline void SetLicenseUrl(const Aws::String& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = value; }
190 inline void SetLicenseUrl(Aws::String&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::move(value); }
191 inline void SetLicenseUrl(const char* value) { m_licenseUrlHasBeenSet = true; m_licenseUrl.assign(value); }
192 inline Blueprint& WithLicenseUrl(const Aws::String& value) { SetLicenseUrl(value); return *this;}
193 inline Blueprint& WithLicenseUrl(Aws::String&& value) { SetLicenseUrl(std::move(value)); return *this;}
194 inline Blueprint& WithLicenseUrl(const char* value) { SetLicenseUrl(value); return *this;}
196
198
202 inline const InstancePlatform& GetPlatform() const{ return m_platform; }
203 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
204 inline void SetPlatform(const InstancePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
205 inline void SetPlatform(InstancePlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
206 inline Blueprint& WithPlatform(const InstancePlatform& value) { SetPlatform(value); return *this;}
207 inline Blueprint& WithPlatform(InstancePlatform&& value) { SetPlatform(std::move(value)); return *this;}
209
211
216 inline const AppCategory& GetAppCategory() const{ return m_appCategory; }
217 inline bool AppCategoryHasBeenSet() const { return m_appCategoryHasBeenSet; }
218 inline void SetAppCategory(const AppCategory& value) { m_appCategoryHasBeenSet = true; m_appCategory = value; }
219 inline void SetAppCategory(AppCategory&& value) { m_appCategoryHasBeenSet = true; m_appCategory = std::move(value); }
220 inline Blueprint& WithAppCategory(const AppCategory& value) { SetAppCategory(value); return *this;}
221 inline Blueprint& WithAppCategory(AppCategory&& value) { SetAppCategory(std::move(value)); return *this;}
223 private:
224
225 Aws::String m_blueprintId;
226 bool m_blueprintIdHasBeenSet = false;
227
228 Aws::String m_name;
229 bool m_nameHasBeenSet = false;
230
231 Aws::String m_group;
232 bool m_groupHasBeenSet = false;
233
234 BlueprintType m_type;
235 bool m_typeHasBeenSet = false;
236
237 Aws::String m_description;
238 bool m_descriptionHasBeenSet = false;
239
240 bool m_isActive;
241 bool m_isActiveHasBeenSet = false;
242
243 int m_minPower;
244 bool m_minPowerHasBeenSet = false;
245
246 Aws::String m_version;
247 bool m_versionHasBeenSet = false;
248
249 Aws::String m_versionCode;
250 bool m_versionCodeHasBeenSet = false;
251
252 Aws::String m_productUrl;
253 bool m_productUrlHasBeenSet = false;
254
255 Aws::String m_licenseUrl;
256 bool m_licenseUrlHasBeenSet = false;
257
258 InstancePlatform m_platform;
259 bool m_platformHasBeenSet = false;
260
261 AppCategory m_appCategory;
262 bool m_appCategoryHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace Lightsail
267} // namespace Aws
void SetDescription(const Aws::String &value)
Definition Blueprint.h:105
Blueprint & WithGroup(Aws::String &&value)
Definition Blueprint.h:83
void SetVersion(Aws::String &&value)
Definition Blueprint.h:148
AWS_LIGHTSAIL_API Blueprint()
void SetLicenseUrl(Aws::String &&value)
Definition Blueprint.h:190
Blueprint & WithLicenseUrl(const char *value)
Definition Blueprint.h:194
void SetType(BlueprintType &&value)
Definition Blueprint.h:94
AWS_LIGHTSAIL_API Blueprint(Aws::Utils::Json::JsonView jsonValue)
void SetLicenseUrl(const Aws::String &value)
Definition Blueprint.h:189
void SetProductUrl(const char *value)
Definition Blueprint.h:177
void SetType(const BlueprintType &value)
Definition Blueprint.h:93
void SetVersion(const char *value)
Definition Blueprint.h:149
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPlatform(const InstancePlatform &value)
Definition Blueprint.h:204
void SetPlatform(InstancePlatform &&value)
Definition Blueprint.h:205
Blueprint & WithDescription(const char *value)
Definition Blueprint.h:110
void SetVersion(const Aws::String &value)
Definition Blueprint.h:147
const BlueprintType & GetType() const
Definition Blueprint.h:91
Blueprint & WithAppCategory(AppCategory &&value)
Definition Blueprint.h:221
void SetGroup(Aws::String &&value)
Definition Blueprint.h:80
void SetDescription(Aws::String &&value)
Definition Blueprint.h:106
AWS_LIGHTSAIL_API Blueprint & operator=(Aws::Utils::Json::JsonView jsonValue)
Blueprint & WithMinPower(int value)
Definition Blueprint.h:137
void SetName(const char *value)
Definition Blueprint.h:67
const Aws::String & GetVersionCode() const
Definition Blueprint.h:159
void SetProductUrl(const Aws::String &value)
Definition Blueprint.h:175
Blueprint & WithGroup(const char *value)
Definition Blueprint.h:84
void SetGroup(const Aws::String &value)
Definition Blueprint.h:79
void SetGroup(const char *value)
Definition Blueprint.h:81
void SetVersionCode(const char *value)
Definition Blueprint.h:163
Blueprint & WithLicenseUrl(Aws::String &&value)
Definition Blueprint.h:193
void SetBlueprintId(const char *value)
Definition Blueprint.h:53
void SetVersionCode(Aws::String &&value)
Definition Blueprint.h:162
const Aws::String & GetGroup() const
Definition Blueprint.h:77
Blueprint & WithVersionCode(const Aws::String &value)
Definition Blueprint.h:164
void SetAppCategory(const AppCategory &value)
Definition Blueprint.h:218
void SetLicenseUrl(const char *value)
Definition Blueprint.h:191
const Aws::String & GetName() const
Definition Blueprint.h:63
Blueprint & WithProductUrl(const Aws::String &value)
Definition Blueprint.h:178
Blueprint & WithIsActive(bool value)
Definition Blueprint.h:124
Blueprint & WithVersion(const Aws::String &value)
Definition Blueprint.h:150
Blueprint & WithName(const char *value)
Definition Blueprint.h:70
Blueprint & WithType(const BlueprintType &value)
Definition Blueprint.h:95
const Aws::String & GetVersion() const
Definition Blueprint.h:145
void SetAppCategory(AppCategory &&value)
Definition Blueprint.h:219
const Aws::String & GetDescription() const
Definition Blueprint.h:103
const AppCategory & GetAppCategory() const
Definition Blueprint.h:216
const Aws::String & GetBlueprintId() const
Definition Blueprint.h:49
Blueprint & WithBlueprintId(const char *value)
Definition Blueprint.h:56
Blueprint & WithPlatform(const InstancePlatform &value)
Definition Blueprint.h:206
Blueprint & WithVersionCode(Aws::String &&value)
Definition Blueprint.h:165
Blueprint & WithAppCategory(const AppCategory &value)
Definition Blueprint.h:220
Blueprint & WithBlueprintId(Aws::String &&value)
Definition Blueprint.h:55
void SetVersionCode(const Aws::String &value)
Definition Blueprint.h:161
const Aws::String & GetProductUrl() const
Definition Blueprint.h:173
void SetBlueprintId(Aws::String &&value)
Definition Blueprint.h:52
Blueprint & WithBlueprintId(const Aws::String &value)
Definition Blueprint.h:54
Blueprint & WithVersion(Aws::String &&value)
Definition Blueprint.h:151
Blueprint & WithType(BlueprintType &&value)
Definition Blueprint.h:96
Blueprint & WithName(Aws::String &&value)
Definition Blueprint.h:69
Blueprint & WithProductUrl(Aws::String &&value)
Definition Blueprint.h:179
void SetBlueprintId(const Aws::String &value)
Definition Blueprint.h:51
Blueprint & WithProductUrl(const char *value)
Definition Blueprint.h:180
Blueprint & WithDescription(const Aws::String &value)
Definition Blueprint.h:108
Blueprint & WithDescription(Aws::String &&value)
Definition Blueprint.h:109
Blueprint & WithName(const Aws::String &value)
Definition Blueprint.h:68
void SetProductUrl(Aws::String &&value)
Definition Blueprint.h:176
Blueprint & WithVersion(const char *value)
Definition Blueprint.h:152
void SetDescription(const char *value)
Definition Blueprint.h:107
const InstancePlatform & GetPlatform() const
Definition Blueprint.h:202
Blueprint & WithPlatform(InstancePlatform &&value)
Definition Blueprint.h:207
void SetName(const Aws::String &value)
Definition Blueprint.h:65
void SetName(Aws::String &&value)
Definition Blueprint.h:66
Blueprint & WithVersionCode(const char *value)
Definition Blueprint.h:166
Blueprint & WithLicenseUrl(const Aws::String &value)
Definition Blueprint.h:192
const Aws::String & GetLicenseUrl() const
Definition Blueprint.h:187
Blueprint & WithGroup(const Aws::String &value)
Definition Blueprint.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue