AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BundleIdT = Aws::String>
81 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
82 template<typename BundleIdT = Aws::String>
83 Bundle& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
91 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
92 template<typename InstanceTypeT = Aws::String>
93 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
94 template<typename InstanceTypeT = Aws::String>
95 Bundle& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
97
99
102 inline bool GetIsActive() const { return m_isActive; }
103 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
104 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
105 inline Bundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
107
109
112 inline const Aws::String& GetName() const { return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 template<typename NameT = Aws::String>
115 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
116 template<typename NameT = Aws::String>
117 Bundle& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
119
121
128 inline int GetPower() const { return m_power; }
129 inline bool PowerHasBeenSet() const { return m_powerHasBeenSet; }
130 inline void SetPower(int value) { m_powerHasBeenSet = true; m_power = value; }
131 inline Bundle& WithPower(int value) { SetPower(value); return *this;}
133
135
138 inline double GetRamSizeInGb() const { return m_ramSizeInGb; }
139 inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; }
140 inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; }
141 inline Bundle& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;}
143
145
148 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
149 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
150 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
151 inline Bundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
153
155
161 inline const Aws::Vector<InstancePlatform>& GetSupportedPlatforms() const { return m_supportedPlatforms; }
162 inline bool SupportedPlatformsHasBeenSet() const { return m_supportedPlatformsHasBeenSet; }
163 template<typename SupportedPlatformsT = Aws::Vector<InstancePlatform>>
164 void SetSupportedPlatforms(SupportedPlatformsT&& value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms = std::forward<SupportedPlatformsT>(value); }
165 template<typename SupportedPlatformsT = Aws::Vector<InstancePlatform>>
166 Bundle& WithSupportedPlatforms(SupportedPlatformsT&& value) { SetSupportedPlatforms(std::forward<SupportedPlatformsT>(value)); return *this;}
167 inline Bundle& AddSupportedPlatforms(InstancePlatform value) { m_supportedPlatformsHasBeenSet = true; m_supportedPlatforms.push_back(value); return *this; }
169
171
176 inline const Aws::Vector<AppCategory>& GetSupportedAppCategories() const { return m_supportedAppCategories; }
177 inline bool SupportedAppCategoriesHasBeenSet() const { return m_supportedAppCategoriesHasBeenSet; }
178 template<typename SupportedAppCategoriesT = Aws::Vector<AppCategory>>
179 void SetSupportedAppCategories(SupportedAppCategoriesT&& value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories = std::forward<SupportedAppCategoriesT>(value); }
180 template<typename SupportedAppCategoriesT = Aws::Vector<AppCategory>>
181 Bundle& WithSupportedAppCategories(SupportedAppCategoriesT&& value) { SetSupportedAppCategories(std::forward<SupportedAppCategoriesT>(value)); return *this;}
182 inline Bundle& AddSupportedAppCategories(AppCategory value) { m_supportedAppCategoriesHasBeenSet = true; m_supportedAppCategories.push_back(value); return *this; }
184
186
190 inline int GetPublicIpv4AddressCount() const { return m_publicIpv4AddressCount; }
191 inline bool PublicIpv4AddressCountHasBeenSet() const { return m_publicIpv4AddressCountHasBeenSet; }
192 inline void SetPublicIpv4AddressCount(int value) { m_publicIpv4AddressCountHasBeenSet = true; m_publicIpv4AddressCount = value; }
193 inline Bundle& WithPublicIpv4AddressCount(int value) { SetPublicIpv4AddressCount(value); return *this;}
195 private:
196
197 double m_price{0.0};
198 bool m_priceHasBeenSet = false;
199
200 int m_cpuCount{0};
201 bool m_cpuCountHasBeenSet = false;
202
203 int m_diskSizeInGb{0};
204 bool m_diskSizeInGbHasBeenSet = false;
205
206 Aws::String m_bundleId;
207 bool m_bundleIdHasBeenSet = false;
208
209 Aws::String m_instanceType;
210 bool m_instanceTypeHasBeenSet = false;
211
212 bool m_isActive{false};
213 bool m_isActiveHasBeenSet = false;
214
215 Aws::String m_name;
216 bool m_nameHasBeenSet = false;
217
218 int m_power{0};
219 bool m_powerHasBeenSet = false;
220
221 double m_ramSizeInGb{0.0};
222 bool m_ramSizeInGbHasBeenSet = false;
223
224 int m_transferPerMonthInGb{0};
225 bool m_transferPerMonthInGbHasBeenSet = false;
226
227 Aws::Vector<InstancePlatform> m_supportedPlatforms;
228 bool m_supportedPlatformsHasBeenSet = false;
229
230 Aws::Vector<AppCategory> m_supportedAppCategories;
231 bool m_supportedAppCategoriesHasBeenSet = false;
232
233 int m_publicIpv4AddressCount{0};
234 bool m_publicIpv4AddressCountHasBeenSet = false;
235 };
236
237} // namespace Model
238} // namespace Lightsail
239} // namespace Aws
Bundle & AddSupportedPlatforms(InstancePlatform value)
Definition Bundle.h:167
void SetPower(int value)
Definition Bundle.h:130
Bundle & WithPrice(double value)
Definition Bundle.h:51
double GetPrice() const
Definition Bundle.h:48
const Aws::Vector< InstancePlatform > & GetSupportedPlatforms() const
Definition Bundle.h:161
bool NameHasBeenSet() const
Definition Bundle.h:113
void SetTransferPerMonthInGb(int value)
Definition Bundle.h:150
Bundle & WithSupportedAppCategories(SupportedAppCategoriesT &&value)
Definition Bundle.h:181
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API Bundle & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PublicIpv4AddressCountHasBeenSet() const
Definition Bundle.h:191
Bundle & WithBundleId(BundleIdT &&value)
Definition Bundle.h:83
void SetRamSizeInGb(double value)
Definition Bundle.h:140
void SetDiskSizeInGb(int value)
Definition Bundle.h:70
Bundle & WithName(NameT &&value)
Definition Bundle.h:117
void SetCpuCount(int value)
Definition Bundle.h:60
void SetSupportedPlatforms(SupportedPlatformsT &&value)
Definition Bundle.h:164
int GetPublicIpv4AddressCount() const
Definition Bundle.h:190
bool DiskSizeInGbHasBeenSet() const
Definition Bundle.h:69
AWS_LIGHTSAIL_API Bundle(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Bundle.h:112
Bundle & WithSupportedPlatforms(SupportedPlatformsT &&value)
Definition Bundle.h:166
AWS_LIGHTSAIL_API Bundle()=default
int GetDiskSizeInGb() const
Definition Bundle.h:68
const Aws::Vector< AppCategory > & GetSupportedAppCategories() const
Definition Bundle.h:176
bool RamSizeInGbHasBeenSet() const
Definition Bundle.h:139
double GetRamSizeInGb() const
Definition Bundle.h:138
Bundle & WithIsActive(bool value)
Definition Bundle.h:105
bool IsActiveHasBeenSet() const
Definition Bundle.h:103
void SetPublicIpv4AddressCount(int value)
Definition Bundle.h:192
bool TransferPerMonthInGbHasBeenSet() const
Definition Bundle.h:149
bool CpuCountHasBeenSet() const
Definition Bundle.h:59
bool InstanceTypeHasBeenSet() const
Definition Bundle.h:91
const Aws::String & GetInstanceType() const
Definition Bundle.h:90
Bundle & WithCpuCount(int value)
Definition Bundle.h:61
bool PowerHasBeenSet() const
Definition Bundle.h:129
Bundle & WithPublicIpv4AddressCount(int value)
Definition Bundle.h:193
bool SupportedAppCategoriesHasBeenSet() const
Definition Bundle.h:177
Bundle & WithRamSizeInGb(double value)
Definition Bundle.h:141
Bundle & AddSupportedAppCategories(AppCategory value)
Definition Bundle.h:182
Bundle & WithPower(int value)
Definition Bundle.h:131
void SetSupportedAppCategories(SupportedAppCategoriesT &&value)
Definition Bundle.h:179
int GetTransferPerMonthInGb() const
Definition Bundle.h:148
bool SupportedPlatformsHasBeenSet() const
Definition Bundle.h:162
void SetInstanceType(InstanceTypeT &&value)
Definition Bundle.h:93
void SetPrice(double value)
Definition Bundle.h:50
Bundle & WithDiskSizeInGb(int value)
Definition Bundle.h:71
void SetIsActive(bool value)
Definition Bundle.h:104
void SetBundleId(BundleIdT &&value)
Definition Bundle.h:81
void SetName(NameT &&value)
Definition Bundle.h:115
bool PriceHasBeenSet() const
Definition Bundle.h:49
const Aws::String & GetBundleId() const
Definition Bundle.h:78
bool BundleIdHasBeenSet() const
Definition Bundle.h:79
Bundle & WithTransferPerMonthInGb(int value)
Definition Bundle.h:151
Bundle & WithInstanceType(InstanceTypeT &&value)
Definition Bundle.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue