AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Bundle.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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
35 class Bundle
36 {
37 public:
38 AWS_LIGHTSAIL_API Bundle();
39 AWS_LIGHTSAIL_API Bundle(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LIGHTSAIL_API Bundle& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline double GetPrice() const{ return m_price; }
49 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
50 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
51 inline Bundle& WithPrice(double value) { SetPrice(value); return *this;}
53
55
58 inline int GetCpuCount() const{ return m_cpuCount; }
59 inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; }
60 inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; }
61 inline Bundle& WithCpuCount(int value) { SetCpuCount(value); return *this;}
63
65
68 inline int GetDiskSizeInGb() const{ return m_diskSizeInGb; }
69 inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; }
70 inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; }
71 inline Bundle& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;}
73
75
78 inline const Aws::String& GetBundleId() const{ return m_bundleId; }
79 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
80 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
81 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
82 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
83 inline Bundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
84 inline Bundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
85 inline Bundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
87
89
92 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
93 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
94 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
95 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
96 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
97 inline Bundle& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
98 inline Bundle& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
99 inline Bundle& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
101
103
106 inline bool GetIsActive() const{ return m_isActive; }
107 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
108 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
109 inline Bundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
111
113
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 Bundle& WithName(const Aws::String& value) { SetName(value); return *this;}
122 inline Bundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 inline Bundle& WithName(const char* value) { SetName(value); return *this;}
125
127
134 inline int GetPower() const{ return m_power; }
135 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
136 inline void SetPower(int value) { m_powerHasBeenSet = true; m_power = value; }
137 inline Bundle& WithPower(int value) { SetPower(value); return *this;}
139
141
144 inline double GetRamSizeInGb() const{ return m_ramSizeInGb; }
145 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
146 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
147 inline Bundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
149
151
154 inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
155 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
156 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
157 inline Bundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
159
161
167 inline const Aws::Vector<InstancePlatform>& GetSupportedPlatforms() const{ return m_supportedPlatforms; }
168 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
169 inline void SetSupportedPlatforms(const Aws::Vector<InstancePlatform>& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = value; }
170 inline void SetSupportedPlatforms(Aws::Vector<InstancePlatform>&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::move(value); }
172 inline Bundle& WithSupportedPlatforms(Aws::Vector<InstancePlatform>&& value) { SetSupportedPlatforms(std::move(value)); return *this;}
173 inline Bundle& AddSupportedPlatforms(const InstancePlatform& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(value); return *this; }
174 inline Bundle& AddSupportedPlatforms(InstancePlatform&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(std::move(value)); return *this; }
176
178
183 inline const Aws::Vector<AppCategory>& GetSupportedAppCategories() const{ return m_supportedAppCategories; }
184 inline bool SupportedAppCategoriesHasBeenSet() const { return m_supportedAppCategoriesHasBeenSet; }
185 inline void SetSupportedAppCategories(const Aws::Vector<AppCategory>& value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories = value; }
186 inline void SetSupportedAppCategories(Aws::Vector<AppCategory>&& value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories = std::move(value); }
188 inline Bundle& WithSupportedAppCategories(Aws::Vector<AppCategory>&& value) { SetSupportedAppCategories(std::move(value)); return *this;}
189 inline Bundle& AddSupportedAppCategories(const AppCategory& value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories.push_back(value); return *this; }
190 inline Bundle& AddSupportedAppCategories(AppCategory&& value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories.push_back(std::move(value)); return *this; }
192
194
198 inline int GetPublicIpv4AddressCount() const{ return m_publicIpv4AddressCount; }
199 inline bool PublicIpv4AddressCountHasBeenSet() const { return m_publicIpv4AddressCountHasBeenSet; }
200 inline void SetPublicIpv4AddressCount(int value) { m_publicIpv4AddressCountHasBeenSet = true; m_publicIpv4AddressCount = value; }
201 inline Bundle& WithPublicIpv4AddressCount(int value) { SetPublicIpv4AddressCount(value); return *this;}
203 private:
204
205 double m_price;
206 bool m_priceHasBeenSet = false;
207
208 int m_cpuCount;
209 bool m_cpuCountHasBeenSet = false;
210
211 int m_diskSizeInGb;
212 bool m_diskSizeInGbHasBeenSet = false;
213
214 Aws::String m_bundleId;
215 bool m_bundleIdHasBeenSet = false;
216
217 Aws::String m_instanceType;
218 bool m_instanceTypeHasBeenSet = false;
219
220 bool m_isActive;
221 bool m_isActiveHasBeenSet = false;
222
223 Aws::String m_name;
224 bool m_nameHasBeenSet = false;
225
226 int m_power;
227 bool m_powerHasBeenSet = false;
228
229 double m_ramSizeInGb;
230 bool m_ramSizeInGbHasBeenSet = false;
231
232 int m_transferPerMonthInGb;
233 bool m_transferPerMonthInGbHasBeenSet = false;
234
235 Aws::Vector<InstancePlatform> m_supportedPlatforms;
236 bool m_supportedPlatformsHasBeenSet = false;
237
238 Aws::Vector<AppCategory> m_supportedAppCategories;
239 bool m_supportedAppCategoriesHasBeenSet = false;
240
241 int m_publicIpv4AddressCount;
242 bool m_publicIpv4AddressCountHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Lightsail
247} // namespace Aws
Bundle & WithName(const Aws::String &value)
Definition Bundle.h:121
Bundle & AddSupportedAppCategories(const AppCategory &value)
Definition Bundle.h:189
void SetPower(int value)
Definition Bundle.h:136
Bundle & WithPrice(double value)
Definition Bundle.h:51
void SetBundleId(const Aws::String &value)
Definition Bundle.h:80
void SetBundleId(const char *value)
Definition Bundle.h:82
double GetPrice() const
Definition Bundle.h:48
AWS_LIGHTSAIL_API Bundle()
const Aws::Vector< InstancePlatform > & GetSupportedPlatforms() const
Definition Bundle.h:167
bool NameHasBeenSet() const
Definition Bundle.h:117
void SetTransferPerMonthInGb(int value)
Definition Bundle.h:156
Bundle & WithInstanceType(const Aws::String &value)
Definition Bundle.h:97
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Bundle & WithBundleId(const Aws::String &value)
Definition Bundle.h:83
AWS_LIGHTSAIL_API Bundle & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PublicIpv4AddressCountHasBeenSet() const
Definition Bundle.h:199
void SetRamSizeInGb(double value)
Definition Bundle.h:146
void SetDiskSizeInGb(int value)
Definition Bundle.h:70
void SetCpuCount(int value)
Definition Bundle.h:60
void SetName(const Aws::String &value)
Definition Bundle.h:118
Bundle & AddSupportedAppCategories(AppCategory &&value)
Definition Bundle.h:190
int GetPublicIpv4AddressCount() const
Definition Bundle.h:198
bool DiskSizeInGbHasBeenSet() const
Definition Bundle.h:69
AWS_LIGHTSAIL_API Bundle(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Bundle.h:116
void SetInstanceType(const Aws::String &value)
Definition Bundle.h:94
int GetDiskSizeInGb() const
Definition Bundle.h:68
const Aws::Vector< AppCategory > & GetSupportedAppCategories() const
Definition Bundle.h:183
Bundle & WithSupportedPlatforms(Aws::Vector< InstancePlatform > &&value)
Definition Bundle.h:172
Bundle & WithInstanceType(const char *value)
Definition Bundle.h:99
void SetName(const char *value)
Definition Bundle.h:120
bool RamSizeInGbHasBeenSet() const
Definition Bundle.h:145
double GetRamSizeInGb() const
Definition Bundle.h:144
Bundle & WithIsActive(bool value)
Definition Bundle.h:109
bool IsActiveHasBeenSet() const
Definition Bundle.h:107
Bundle & AddSupportedPlatforms(const InstancePlatform &value)
Definition Bundle.h:173
void SetPublicIpv4AddressCount(int value)
Definition Bundle.h:200
void SetSupportedAppCategories(Aws::Vector< AppCategory > &&value)
Definition Bundle.h:186
void SetSupportedAppCategories(const Aws::Vector< AppCategory > &value)
Definition Bundle.h:185
bool TransferPerMonthInGbHasBeenSet() const
Definition Bundle.h:155
Bundle & WithInstanceType(Aws::String &&value)
Definition Bundle.h:98
bool CpuCountHasBeenSet() const
Definition Bundle.h:59
void SetInstanceType(Aws::String &&value)
Definition Bundle.h:95
bool InstanceTypeHasBeenSet() const
Definition Bundle.h:93
const Aws::String & GetInstanceType() const
Definition Bundle.h:92
Bundle & WithCpuCount(int value)
Definition Bundle.h:61
bool PowerHasBeenSet() const
Definition Bundle.h:135
Bundle & WithPublicIpv4AddressCount(int value)
Definition Bundle.h:201
bool SupportedAppCategoriesHasBeenSet() const
Definition Bundle.h:184
Bundle & WithSupportedAppCategories(Aws::Vector< AppCategory > &&value)
Definition Bundle.h:188
Bundle & WithRamSizeInGb(double value)
Definition Bundle.h:147
Bundle & WithPower(int value)
Definition Bundle.h:137
Bundle & WithBundleId(const char *value)
Definition Bundle.h:85
int GetTransferPerMonthInGb() const
Definition Bundle.h:154
bool SupportedPlatformsHasBeenSet() const
Definition Bundle.h:168
Bundle & WithBundleId(Aws::String &&value)
Definition Bundle.h:84
void SetSupportedPlatforms(Aws::Vector< InstancePlatform > &&value)
Definition Bundle.h:170
void SetPrice(double value)
Definition Bundle.h:50
Bundle & WithSupportedPlatforms(const Aws::Vector< InstancePlatform > &value)
Definition Bundle.h:171
Bundle & WithDiskSizeInGb(int value)
Definition Bundle.h:71
void SetBundleId(Aws::String &&value)
Definition Bundle.h:81
void SetIsActive(bool value)
Definition Bundle.h:108
bool PriceHasBeenSet() const
Definition Bundle.h:49
const Aws::String & GetBundleId() const
Definition Bundle.h:78
Bundle & WithSupportedAppCategories(const Aws::Vector< AppCategory > &value)
Definition Bundle.h:187
void SetName(Aws::String &&value)
Definition Bundle.h:119
Bundle & WithName(Aws::String &&value)
Definition Bundle.h:122
Bundle & AddSupportedPlatforms(InstancePlatform &&value)
Definition Bundle.h:174
void SetInstanceType(const char *value)
Definition Bundle.h:96
bool BundleIdHasBeenSet() const
Definition Bundle.h:79
Bundle & WithTransferPerMonthInGb(int value)
Definition Bundle.h:157
Bundle & WithName(const char *value)
Definition Bundle.h:123
void SetSupportedPlatforms(const Aws::Vector< InstancePlatform > &value)
Definition Bundle.h:169
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue