AWS SDK for C++  1.9.16
AWS SDK for C++
Blueprint.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; }
48 
53  inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; }
54 
59  inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; }
60 
65  inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); }
66 
71  inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); }
72 
77  inline Blueprint& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;}
78 
83  inline Blueprint& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;}
84 
89  inline Blueprint& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;}
90 
91 
95  inline const Aws::String& GetName() const{ return m_name; }
96 
100  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
101 
105  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
106 
110  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
111 
115  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 
120  inline Blueprint& WithName(const Aws::String& value) { SetName(value); return *this;}
121 
125  inline Blueprint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
126 
130  inline Blueprint& WithName(const char* value) { SetName(value); return *this;}
131 
132 
136  inline const Aws::String& GetGroup() const{ return m_group; }
137 
141  inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
142 
146  inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
147 
151  inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
152 
156  inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
157 
161  inline Blueprint& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
162 
166  inline Blueprint& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
167 
171  inline Blueprint& WithGroup(const char* value) { SetGroup(value); return *this;}
172 
173 
177  inline const BlueprintType& GetType() const{ return m_type; }
178 
182  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
183 
187  inline void SetType(const BlueprintType& value) { m_typeHasBeenSet = true; m_type = value; }
188 
192  inline void SetType(BlueprintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
193 
197  inline Blueprint& WithType(const BlueprintType& value) { SetType(value); return *this;}
198 
202  inline Blueprint& WithType(BlueprintType&& value) { SetType(std::move(value)); return *this;}
203 
204 
208  inline const Aws::String& GetDescription() const{ return m_description; }
209 
213  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
214 
218  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
219 
223  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
224 
228  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
229 
233  inline Blueprint& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
234 
238  inline Blueprint& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
239 
243  inline Blueprint& WithDescription(const char* value) { SetDescription(value); return *this;}
244 
245 
253  inline bool GetIsActive() const{ return m_isActive; }
254 
262  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
263 
271  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
272 
280  inline Blueprint& WithIsActive(bool value) { SetIsActive(value); return *this;}
281 
282 
289  inline int GetMinPower() const{ return m_minPower; }
290 
297  inline bool MinPowerHasBeenSet() const { return m_minPowerHasBeenSet; }
298 
305  inline void SetMinPower(int value) { m_minPowerHasBeenSet = true; m_minPower = value; }
306 
313  inline Blueprint& WithMinPower(int value) { SetMinPower(value); return *this;}
314 
315 
320  inline const Aws::String& GetVersion() const{ return m_version; }
321 
326  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
327 
332  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
333 
338  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
339 
344  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
345 
350  inline Blueprint& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
351 
356  inline Blueprint& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
357 
362  inline Blueprint& WithVersion(const char* value) { SetVersion(value); return *this;}
363 
364 
368  inline const Aws::String& GetVersionCode() const{ return m_versionCode; }
369 
373  inline bool VersionCodeHasBeenSet() const { return m_versionCodeHasBeenSet; }
374 
378  inline void SetVersionCode(const Aws::String& value) { m_versionCodeHasBeenSet = true; m_versionCode = value; }
379 
383  inline void SetVersionCode(Aws::String&& value) { m_versionCodeHasBeenSet = true; m_versionCode = std::move(value); }
384 
388  inline void SetVersionCode(const char* value) { m_versionCodeHasBeenSet = true; m_versionCode.assign(value); }
389 
393  inline Blueprint& WithVersionCode(const Aws::String& value) { SetVersionCode(value); return *this;}
394 
398  inline Blueprint& WithVersionCode(Aws::String&& value) { SetVersionCode(std::move(value)); return *this;}
399 
403  inline Blueprint& WithVersionCode(const char* value) { SetVersionCode(value); return *this;}
404 
405 
409  inline const Aws::String& GetProductUrl() const{ return m_productUrl; }
410 
414  inline bool ProductUrlHasBeenSet() const { return m_productUrlHasBeenSet; }
415 
419  inline void SetProductUrl(const Aws::String& value) { m_productUrlHasBeenSet = true; m_productUrl = value; }
420 
424  inline void SetProductUrl(Aws::String&& value) { m_productUrlHasBeenSet = true; m_productUrl = std::move(value); }
425 
429  inline void SetProductUrl(const char* value) { m_productUrlHasBeenSet = true; m_productUrl.assign(value); }
430 
434  inline Blueprint& WithProductUrl(const Aws::String& value) { SetProductUrl(value); return *this;}
435 
439  inline Blueprint& WithProductUrl(Aws::String&& value) { SetProductUrl(std::move(value)); return *this;}
440 
444  inline Blueprint& WithProductUrl(const char* value) { SetProductUrl(value); return *this;}
445 
446 
450  inline const Aws::String& GetLicenseUrl() const{ return m_licenseUrl; }
451 
455  inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
456 
460  inline void SetLicenseUrl(const Aws::String& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = value; }
461 
465  inline void SetLicenseUrl(Aws::String&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::move(value); }
466 
470  inline void SetLicenseUrl(const char* value) { m_licenseUrlHasBeenSet = true; m_licenseUrl.assign(value); }
471 
475  inline Blueprint& WithLicenseUrl(const Aws::String& value) { SetLicenseUrl(value); return *this;}
476 
480  inline Blueprint& WithLicenseUrl(Aws::String&& value) { SetLicenseUrl(std::move(value)); return *this;}
481 
485  inline Blueprint& WithLicenseUrl(const char* value) { SetLicenseUrl(value); return *this;}
486 
487 
492  inline const InstancePlatform& GetPlatform() const{ return m_platform; }
493 
498  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
499 
504  inline void SetPlatform(const InstancePlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
505 
510  inline void SetPlatform(InstancePlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
511 
516  inline Blueprint& WithPlatform(const InstancePlatform& value) { SetPlatform(value); return *this;}
517 
522  inline Blueprint& WithPlatform(InstancePlatform&& value) { SetPlatform(std::move(value)); return *this;}
523 
524  private:
525 
526  Aws::String m_blueprintId;
527  bool m_blueprintIdHasBeenSet;
528 
529  Aws::String m_name;
530  bool m_nameHasBeenSet;
531 
532  Aws::String m_group;
533  bool m_groupHasBeenSet;
534 
535  BlueprintType m_type;
536  bool m_typeHasBeenSet;
537 
538  Aws::String m_description;
539  bool m_descriptionHasBeenSet;
540 
541  bool m_isActive;
542  bool m_isActiveHasBeenSet;
543 
544  int m_minPower;
545  bool m_minPowerHasBeenSet;
546 
547  Aws::String m_version;
548  bool m_versionHasBeenSet;
549 
550  Aws::String m_versionCode;
551  bool m_versionCodeHasBeenSet;
552 
553  Aws::String m_productUrl;
554  bool m_productUrlHasBeenSet;
555 
556  Aws::String m_licenseUrl;
557  bool m_licenseUrlHasBeenSet;
558 
559  InstancePlatform m_platform;
560  bool m_platformHasBeenSet;
561  };
562 
563 } // namespace Model
564 } // namespace Lightsail
565 } // namespace Aws
Aws::Lightsail::Model::Blueprint::WithGroup
Blueprint & WithGroup(const Aws::String &value)
Definition: Blueprint.h:161
Aws::Lightsail::Model::Blueprint::WithVersion
Blueprint & WithVersion(const char *value)
Definition: Blueprint.h:362
Aws::Lightsail::Model::Blueprint::WithGroup
Blueprint & WithGroup(Aws::String &&value)
Definition: Blueprint.h:166
Aws::Lightsail::Model::Blueprint::WithProductUrl
Blueprint & WithProductUrl(Aws::String &&value)
Definition: Blueprint.h:439
Aws::Lightsail::Model::Blueprint::SetVersion
void SetVersion(Aws::String &&value)
Definition: Blueprint.h:338
Aws::Lightsail::Model::InstancePlatform
InstancePlatform
Definition: InstancePlatform.h:17
Aws::Lightsail::Model::Blueprint::SetType
void SetType(const BlueprintType &value)
Definition: Blueprint.h:187
Aws::Lightsail::Model::Blueprint::WithLicenseUrl
Blueprint & WithLicenseUrl(Aws::String &&value)
Definition: Blueprint.h:480
Aws::Lightsail::Model::Blueprint
Definition: Blueprint.h:35
Aws::Lightsail::Model::Blueprint::SetLicenseUrl
void SetLicenseUrl(const char *value)
Definition: Blueprint.h:470
Aws::Lightsail::Model::Blueprint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Blueprint::WithName
Blueprint & WithName(Aws::String &&value)
Definition: Blueprint.h:125
Aws::Lightsail::Model::Blueprint::WithDescription
Blueprint & WithDescription(const char *value)
Definition: Blueprint.h:243
Aws::Lightsail::Model::Blueprint::WithMinPower
Blueprint & WithMinPower(int value)
Definition: Blueprint.h:313
Aws::Lightsail::Model::Blueprint::LicenseUrlHasBeenSet
bool LicenseUrlHasBeenSet() const
Definition: Blueprint.h:455
Aws::Lightsail::Model::Blueprint::SetName
void SetName(const Aws::String &value)
Definition: Blueprint.h:105
Aws::Lightsail::Model::Blueprint::GetVersion
const Aws::String & GetVersion() const
Definition: Blueprint.h:320
Aws::Lightsail::Model::Blueprint::WithBlueprintId
Blueprint & WithBlueprintId(Aws::String &&value)
Definition: Blueprint.h:83
Aws::Lightsail::Model::Blueprint::GetProductUrl
const Aws::String & GetProductUrl() const
Definition: Blueprint.h:409
Aws::Lightsail::Model::Blueprint::SetGroup
void SetGroup(const char *value)
Definition: Blueprint.h:156
Aws::Lightsail::Model::Blueprint::WithVersionCode
Blueprint & WithVersionCode(const Aws::String &value)
Definition: Blueprint.h:393
Aws::Lightsail::Model::Blueprint::WithName
Blueprint & WithName(const Aws::String &value)
Definition: Blueprint.h:120
Aws::Lightsail::Model::Blueprint::GetBlueprintId
const Aws::String & GetBlueprintId() const
Definition: Blueprint.h:47
Aws::Lightsail::Model::Blueprint::GetLicenseUrl
const Aws::String & GetLicenseUrl() const
Definition: Blueprint.h:450
Aws::Lightsail::Model::Blueprint::Blueprint
Blueprint(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Blueprint::VersionCodeHasBeenSet
bool VersionCodeHasBeenSet() const
Definition: Blueprint.h:373
Aws::Lightsail::Model::Blueprint::WithType
Blueprint & WithType(const BlueprintType &value)
Definition: Blueprint.h:197
Aws::Lightsail::Model::Blueprint::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Blueprint.h:100
Aws::Lightsail::Model::Blueprint::GetType
const BlueprintType & GetType() const
Definition: Blueprint.h:177
Aws::Lightsail::Model::Blueprint::SetName
void SetName(Aws::String &&value)
Definition: Blueprint.h:110
Aws::Lightsail::Model::Blueprint::WithBlueprintId
Blueprint & WithBlueprintId(const char *value)
Definition: Blueprint.h:89
Aws::Lightsail::Model::Blueprint::WithPlatform
Blueprint & WithPlatform(InstancePlatform &&value)
Definition: Blueprint.h:522
Aws::Lightsail::Model::Blueprint::SetDescription
void SetDescription(const Aws::String &value)
Definition: Blueprint.h:218
Aws::Lightsail::Model::Blueprint::SetVersion
void SetVersion(const Aws::String &value)
Definition: Blueprint.h:332
Aws::Lightsail::Model::Blueprint::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Blueprint.h:213
Aws::Lightsail::Model::Blueprint::GetVersionCode
const Aws::String & GetVersionCode() const
Definition: Blueprint.h:368
Aws::Lightsail::Model::Blueprint::SetLicenseUrl
void SetLicenseUrl(Aws::String &&value)
Definition: Blueprint.h:465
Aws::Lightsail::Model::Blueprint::SetBlueprintId
void SetBlueprintId(const Aws::String &value)
Definition: Blueprint.h:59
InstancePlatform.h
Aws::Lightsail::Model::Blueprint::WithLicenseUrl
Blueprint & WithLicenseUrl(const char *value)
Definition: Blueprint.h:485
Aws::Lightsail::Model::Blueprint::SetBlueprintId
void SetBlueprintId(Aws::String &&value)
Definition: Blueprint.h:65
Aws::Lightsail::Model::Blueprint::Blueprint
Blueprint()
Aws::Lightsail::Model::Blueprint::SetPlatform
void SetPlatform(InstancePlatform &&value)
Definition: Blueprint.h:510
Aws::Lightsail::Model::Blueprint::SetBlueprintId
void SetBlueprintId(const char *value)
Definition: Blueprint.h:71
Aws::Lightsail::Model::Blueprint::WithVersion
Blueprint & WithVersion(const Aws::String &value)
Definition: Blueprint.h:350
Aws::Lightsail::Model::Blueprint::BlueprintIdHasBeenSet
bool BlueprintIdHasBeenSet() const
Definition: Blueprint.h:53
Aws::Lightsail::Model::Blueprint::WithLicenseUrl
Blueprint & WithLicenseUrl(const Aws::String &value)
Definition: Blueprint.h:475
Aws::Lightsail::Model::Blueprint::WithBlueprintId
Blueprint & WithBlueprintId(const Aws::String &value)
Definition: Blueprint.h:77
Aws::Lightsail::Model::Blueprint::WithGroup
Blueprint & WithGroup(const char *value)
Definition: Blueprint.h:171
Aws::Lightsail::Model::Blueprint::WithType
Blueprint & WithType(BlueprintType &&value)
Definition: Blueprint.h:202
Aws::Lightsail::Model::Blueprint::SetPlatform
void SetPlatform(const InstancePlatform &value)
Definition: Blueprint.h:504
Aws::Lightsail::Model::Blueprint::WithIsActive
Blueprint & WithIsActive(bool value)
Definition: Blueprint.h:280
Aws::Lightsail::Model::Blueprint::operator=
Blueprint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Lightsail::Model::Blueprint::GetMinPower
int GetMinPower() const
Definition: Blueprint.h:289
Aws::Lightsail::Model::Blueprint::SetVersionCode
void SetVersionCode(const Aws::String &value)
Definition: Blueprint.h:378
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::Blueprint::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Blueprint.h:182
Aws::Lightsail::Model::Blueprint::SetVersionCode
void SetVersionCode(Aws::String &&value)
Definition: Blueprint.h:383
Aws::Lightsail::Model::Blueprint::SetGroup
void SetGroup(const Aws::String &value)
Definition: Blueprint.h:146
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Blueprint::GetDescription
const Aws::String & GetDescription() const
Definition: Blueprint.h:208
Aws::Lightsail::Model::Blueprint::SetDescription
void SetDescription(const char *value)
Definition: Blueprint.h:228
Aws::Lightsail::Model::Blueprint::WithVersionCode
Blueprint & WithVersionCode(const char *value)
Definition: Blueprint.h:403
Aws::Lightsail::Model::Blueprint::GetIsActive
bool GetIsActive() const
Definition: Blueprint.h:253
Aws::Lightsail::Model::Blueprint::MinPowerHasBeenSet
bool MinPowerHasBeenSet() const
Definition: Blueprint.h:297
Aws::Lightsail::Model::Blueprint::WithDescription
Blueprint & WithDescription(Aws::String &&value)
Definition: Blueprint.h:238
Aws::Lightsail::Model::Blueprint::WithVersion
Blueprint & WithVersion(Aws::String &&value)
Definition: Blueprint.h:356
Aws::Lightsail::Model::Blueprint::WithDescription
Blueprint & WithDescription(const Aws::String &value)
Definition: Blueprint.h:233
Aws::Lightsail::Model::Blueprint::SetIsActive
void SetIsActive(bool value)
Definition: Blueprint.h:271
Aws::Lightsail::Model::Blueprint::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: Blueprint.h:498
Aws::Lightsail::Model::Blueprint::GroupHasBeenSet
bool GroupHasBeenSet() const
Definition: Blueprint.h:141
Aws::Lightsail::Model::Blueprint::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: Blueprint.h:326
Aws::Lightsail::Model::Blueprint::SetLicenseUrl
void SetLicenseUrl(const Aws::String &value)
Definition: Blueprint.h:460
Aws::Lightsail::Model::Blueprint::SetType
void SetType(BlueprintType &&value)
Definition: Blueprint.h:192
Aws::Lightsail::Model::Blueprint::SetProductUrl
void SetProductUrl(const Aws::String &value)
Definition: Blueprint.h:419
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Blueprint::SetVersionCode
void SetVersionCode(const char *value)
Definition: Blueprint.h:388
Aws::Lightsail::Model::Blueprint::SetVersion
void SetVersion(const char *value)
Definition: Blueprint.h:344
Aws::Lightsail::Model::Blueprint::SetDescription
void SetDescription(Aws::String &&value)
Definition: Blueprint.h:223
Aws::Lightsail::Model::BlueprintType
BlueprintType
Definition: BlueprintType.h:17
Aws::Lightsail::Model::Blueprint::SetMinPower
void SetMinPower(int value)
Definition: Blueprint.h:305
Aws::Lightsail::Model::Blueprint::SetProductUrl
void SetProductUrl(Aws::String &&value)
Definition: Blueprint.h:424
Aws::Lightsail::Model::Blueprint::SetProductUrl
void SetProductUrl(const char *value)
Definition: Blueprint.h:429
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Blueprint::WithPlatform
Blueprint & WithPlatform(const InstancePlatform &value)
Definition: Blueprint.h:516
Aws::Lightsail::Model::Blueprint::WithProductUrl
Blueprint & WithProductUrl(const Aws::String &value)
Definition: Blueprint.h:434
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Blueprint::WithVersionCode
Blueprint & WithVersionCode(Aws::String &&value)
Definition: Blueprint.h:398
Aws::Lightsail::Model::Blueprint::GetPlatform
const InstancePlatform & GetPlatform() const
Definition: Blueprint.h:492
Aws::Lightsail::Model::Blueprint::WithProductUrl
Blueprint & WithProductUrl(const char *value)
Definition: Blueprint.h:444
Aws::Lightsail::Model::Blueprint::ProductUrlHasBeenSet
bool ProductUrlHasBeenSet() const
Definition: Blueprint.h:414
Aws::Lightsail::Model::Blueprint::SetGroup
void SetGroup(Aws::String &&value)
Definition: Blueprint.h:151
Aws::Lightsail::Model::Blueprint::GetGroup
const Aws::String & GetGroup() const
Definition: Blueprint.h:136
Aws::Lightsail::Model::Blueprint::GetName
const Aws::String & GetName() const
Definition: Blueprint.h:95
Aws::Lightsail::Model::Blueprint::SetName
void SetName(const char *value)
Definition: Blueprint.h:115
Aws::Lightsail::Model::Blueprint::WithName
Blueprint & WithName(const char *value)
Definition: Blueprint.h:130
Aws::Lightsail::Model::Blueprint::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: Blueprint.h:262
BlueprintType.h