AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BlueprintIdT = Aws::String>
52 void SetBlueprintId(BlueprintIdT&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::forward<BlueprintIdT>(value); }
53 template<typename BlueprintIdT = Aws::String>
54 Blueprint& WithBlueprintId(BlueprintIdT&& value) { SetBlueprintId(std::forward<BlueprintIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 Blueprint& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
73 inline const Aws::String& GetGroup() const { return m_group; }
74 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
75 template<typename GroupT = Aws::String>
76 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
77 template<typename GroupT = Aws::String>
78 Blueprint& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
80
82
85 inline BlueprintType GetType() const { return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(BlueprintType value) { m_typeHasBeenSet = true; m_type = value; }
88 inline Blueprint& WithType(BlueprintType value) { SetType(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template<typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
99 template<typename DescriptionT = Aws::String>
100 Blueprint& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
102
104
111 inline bool GetIsActive() const { return m_isActive; }
112 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
113 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
114 inline Blueprint& WithIsActive(bool value) { SetIsActive(value); return *this;}
116
118
124 inline int GetMinPower() const { return m_minPower; }
125 inline bool MinPowerHasBeenSet() const { return m_minPowerHasBeenSet; }
126 inline void SetMinPower(int value) { m_minPowerHasBeenSet = true; m_minPower = value; }
127 inline Blueprint& WithMinPower(int value) { SetMinPower(value); return *this;}
129
131
135 inline const Aws::String& GetVersion() const { return m_version; }
136 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
137 template<typename VersionT = Aws::String>
138 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
139 template<typename VersionT = Aws::String>
140 Blueprint& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
142
144
147 inline const Aws::String& GetVersionCode() const { return m_versionCode; }
148 inline bool VersionCodeHasBeenSet() const { return m_versionCodeHasBeenSet; }
149 template<typename VersionCodeT = Aws::String>
150 void SetVersionCode(VersionCodeT&& value) { m_versionCodeHasBeenSet = true; m_versionCode = std::forward<VersionCodeT>(value); }
151 template<typename VersionCodeT = Aws::String>
152 Blueprint& WithVersionCode(VersionCodeT&& value) { SetVersionCode(std::forward<VersionCodeT>(value)); return *this;}
154
156
159 inline const Aws::String& GetProductUrl() const { return m_productUrl; }
160 inline bool ProductUrlHasBeenSet() const { return m_productUrlHasBeenSet; }
161 template<typename ProductUrlT = Aws::String>
162 void SetProductUrl(ProductUrlT&& value) { m_productUrlHasBeenSet = true; m_productUrl = std::forward<ProductUrlT>(value); }
163 template<typename ProductUrlT = Aws::String>
164 Blueprint& WithProductUrl(ProductUrlT&& value) { SetProductUrl(std::forward<ProductUrlT>(value)); return *this;}
166
168
171 inline const Aws::String& GetLicenseUrl() const { return m_licenseUrl; }
172 inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; }
173 template<typename LicenseUrlT = Aws::String>
174 void SetLicenseUrl(LicenseUrlT&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::forward<LicenseUrlT>(value); }
175 template<typename LicenseUrlT = Aws::String>
176 Blueprint& WithLicenseUrl(LicenseUrlT&& value) { SetLicenseUrl(std::forward<LicenseUrlT>(value)); return *this;}
178
180
184 inline InstancePlatform GetPlatform() const { return m_platform; }
185 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
186 inline void SetPlatform(InstancePlatform value) { m_platformHasBeenSet = true; m_platform = value; }
187 inline Blueprint& WithPlatform(InstancePlatform value) { SetPlatform(value); return *this;}
189
191
196 inline AppCategory GetAppCategory() const { return m_appCategory; }
197 inline bool AppCategoryHasBeenSet() const { return m_appCategoryHasBeenSet; }
198 inline void SetAppCategory(AppCategory value) { m_appCategoryHasBeenSet = true; m_appCategory = value; }
199 inline Blueprint& WithAppCategory(AppCategory value) { SetAppCategory(value); return *this;}
201 private:
202
203 Aws::String m_blueprintId;
204 bool m_blueprintIdHasBeenSet = false;
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Aws::String m_group;
210 bool m_groupHasBeenSet = false;
211
213 bool m_typeHasBeenSet = false;
214
215 Aws::String m_description;
216 bool m_descriptionHasBeenSet = false;
217
218 bool m_isActive{false};
219 bool m_isActiveHasBeenSet = false;
220
221 int m_minPower{0};
222 bool m_minPowerHasBeenSet = false;
223
224 Aws::String m_version;
225 bool m_versionHasBeenSet = false;
226
227 Aws::String m_versionCode;
228 bool m_versionCodeHasBeenSet = false;
229
230 Aws::String m_productUrl;
231 bool m_productUrlHasBeenSet = false;
232
233 Aws::String m_licenseUrl;
234 bool m_licenseUrlHasBeenSet = false;
235
237 bool m_platformHasBeenSet = false;
238
239 AppCategory m_appCategory{AppCategory::NOT_SET};
240 bool m_appCategoryHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace Lightsail
245} // namespace Aws
void SetBlueprintId(BlueprintIdT &&value)
Definition Blueprint.h:52
AWS_LIGHTSAIL_API Blueprint(Aws::Utils::Json::JsonView jsonValue)
Blueprint & WithName(NameT &&value)
Definition Blueprint.h:66
void SetGroup(GroupT &&value)
Definition Blueprint.h:76
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Blueprint & WithProductUrl(ProductUrlT &&value)
Definition Blueprint.h:164
AWS_LIGHTSAIL_API Blueprint()=default
Blueprint & WithLicenseUrl(LicenseUrlT &&value)
Definition Blueprint.h:176
void SetVersion(VersionT &&value)
Definition Blueprint.h:138
AWS_LIGHTSAIL_API Blueprint & operator=(Aws::Utils::Json::JsonView jsonValue)
Blueprint & WithMinPower(int value)
Definition Blueprint.h:127
const Aws::String & GetVersionCode() const
Definition Blueprint.h:147
void SetDescription(DescriptionT &&value)
Definition Blueprint.h:98
Blueprint & WithDescription(DescriptionT &&value)
Definition Blueprint.h:100
Blueprint & WithAppCategory(AppCategory value)
Definition Blueprint.h:199
const Aws::String & GetGroup() const
Definition Blueprint.h:73
void SetType(BlueprintType value)
Definition Blueprint.h:87
Blueprint & WithVersion(VersionT &&value)
Definition Blueprint.h:140
Blueprint & WithVersionCode(VersionCodeT &&value)
Definition Blueprint.h:152
const Aws::String & GetName() const
Definition Blueprint.h:61
Blueprint & WithIsActive(bool value)
Definition Blueprint.h:114
void SetLicenseUrl(LicenseUrlT &&value)
Definition Blueprint.h:174
void SetName(NameT &&value)
Definition Blueprint.h:64
Blueprint & WithGroup(GroupT &&value)
Definition Blueprint.h:78
const Aws::String & GetVersion() const
Definition Blueprint.h:135
const Aws::String & GetDescription() const
Definition Blueprint.h:95
const Aws::String & GetBlueprintId() const
Definition Blueprint.h:49
void SetVersionCode(VersionCodeT &&value)
Definition Blueprint.h:150
void SetPlatform(InstancePlatform value)
Definition Blueprint.h:186
BlueprintType GetType() const
Definition Blueprint.h:85
Blueprint & WithBlueprintId(BlueprintIdT &&value)
Definition Blueprint.h:54
Blueprint & WithType(BlueprintType value)
Definition Blueprint.h:88
const Aws::String & GetProductUrl() const
Definition Blueprint.h:159
InstancePlatform GetPlatform() const
Definition Blueprint.h:184
void SetAppCategory(AppCategory value)
Definition Blueprint.h:198
Blueprint & WithPlatform(InstancePlatform value)
Definition Blueprint.h:187
void SetProductUrl(ProductUrlT &&value)
Definition Blueprint.h:162
AppCategory GetAppCategory() const
Definition Blueprint.h:196
const Aws::String & GetLicenseUrl() const
Definition Blueprint.h:171
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue