AWS SDK for C++  1.9.108
AWS SDK for C++
BucketBundle.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
46 
50  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
51 
55  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
56 
60  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
61 
65  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
66 
70  inline BucketBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
71 
75  inline BucketBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
76 
80  inline BucketBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline BucketBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline BucketBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline BucketBundle& WithName(const char* value) { SetName(value); return *this;}
122 
123 
127  inline double GetPrice() const{ return m_price; }
128 
132  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
133 
137  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
138 
142  inline BucketBundle& WithPrice(double value) { SetPrice(value); return *this;}
143 
144 
148  inline int GetStoragePerMonthInGb() const{ return m_storagePerMonthInGb; }
149 
153  inline bool StoragePerMonthInGbHasBeenSet() const { return m_storagePerMonthInGbHasBeenSet; }
154 
158  inline void SetStoragePerMonthInGb(int value) { m_storagePerMonthInGbHasBeenSet = true; m_storagePerMonthInGb = value; }
159 
163  inline BucketBundle& WithStoragePerMonthInGb(int value) { SetStoragePerMonthInGb(value); return *this;}
164 
165 
169  inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
170 
174  inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
175 
179  inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
180 
184  inline BucketBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
185 
186 
190  inline bool GetIsActive() const{ return m_isActive; }
191 
195  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
196 
200  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
201 
205  inline BucketBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
206 
207  private:
208 
209  Aws::String m_bundleId;
210  bool m_bundleIdHasBeenSet;
211 
212  Aws::String m_name;
213  bool m_nameHasBeenSet;
214 
215  double m_price;
216  bool m_priceHasBeenSet;
217 
218  int m_storagePerMonthInGb;
219  bool m_storagePerMonthInGbHasBeenSet;
220 
221  int m_transferPerMonthInGb;
222  bool m_transferPerMonthInGbHasBeenSet;
223 
224  bool m_isActive;
225  bool m_isActiveHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace Lightsail
230 } // namespace Aws
Aws::Lightsail::Model::BucketBundle::SetPrice
void SetPrice(double value)
Definition: BucketBundle.h:137
Aws::Lightsail::Model::BucketBundle::operator=
BucketBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::BucketBundle::SetIsActive
void SetIsActive(bool value)
Definition: BucketBundle.h:200
Aws::Lightsail::Model::BucketBundle::NameHasBeenSet
bool NameHasBeenSet() const
Definition: BucketBundle.h:91
Aws::Lightsail::Model::BucketBundle::TransferPerMonthInGbHasBeenSet
bool TransferPerMonthInGbHasBeenSet() const
Definition: BucketBundle.h:174
Aws::Lightsail::Model::BucketBundle::WithBundleId
BucketBundle & WithBundleId(const char *value)
Definition: BucketBundle.h:80
Aws::Lightsail::Model::BucketBundle::WithStoragePerMonthInGb
BucketBundle & WithStoragePerMonthInGb(int value)
Definition: BucketBundle.h:163
Aws::Lightsail::Model::BucketBundle::WithTransferPerMonthInGb
BucketBundle & WithTransferPerMonthInGb(int value)
Definition: BucketBundle.h:184
Aws::Lightsail::Model::BucketBundle::WithName
BucketBundle & WithName(const char *value)
Definition: BucketBundle.h:121
Aws::Lightsail::Model::BucketBundle::BucketBundle
BucketBundle(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::BucketBundle::WithBundleId
BucketBundle & WithBundleId(Aws::String &&value)
Definition: BucketBundle.h:75
Aws::Lightsail::Model::BucketBundle::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: BucketBundle.h:60
Aws::Lightsail::Model::BucketBundle::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: BucketBundle.h:55
Aws::Lightsail::Model::BucketBundle::BucketBundle
BucketBundle()
Aws::Lightsail::Model::BucketBundle::WithPrice
BucketBundle & WithPrice(double value)
Definition: BucketBundle.h:142
Aws::Lightsail::Model::BucketBundle::SetName
void SetName(const char *value)
Definition: BucketBundle.h:106
Aws::Lightsail::Model::BucketBundle
Definition: BucketBundle.h:34
Aws::Lightsail::Model::BucketBundle::StoragePerMonthInGbHasBeenSet
bool StoragePerMonthInGbHasBeenSet() const
Definition: BucketBundle.h:153
Aws::Lightsail::Model::BucketBundle::GetIsActive
bool GetIsActive() const
Definition: BucketBundle.h:190
Aws::Lightsail::Model::BucketBundle::GetTransferPerMonthInGb
int GetTransferPerMonthInGb() const
Definition: BucketBundle.h:169
Aws::Lightsail::Model::BucketBundle::GetName
const Aws::String & GetName() const
Definition: BucketBundle.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::BucketBundle::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: BucketBundle.h:50
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::BucketBundle::WithBundleId
BucketBundle & WithBundleId(const Aws::String &value)
Definition: BucketBundle.h:70
Aws::Lightsail::Model::BucketBundle::SetName
void SetName(Aws::String &&value)
Definition: BucketBundle.h:101
Lightsail_EXPORTS.h
Aws::Lightsail::Model::BucketBundle::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: BucketBundle.h:195
Aws::Lightsail::Model::BucketBundle::WithName
BucketBundle & WithName(const Aws::String &value)
Definition: BucketBundle.h:111
Aws::Lightsail::Model::BucketBundle::GetPrice
double GetPrice() const
Definition: BucketBundle.h:127
Aws::Lightsail::Model::BucketBundle::SetStoragePerMonthInGb
void SetStoragePerMonthInGb(int value)
Definition: BucketBundle.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::BucketBundle::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: BucketBundle.h:132
Aws::Lightsail::Model::BucketBundle::GetStoragePerMonthInGb
int GetStoragePerMonthInGb() const
Definition: BucketBundle.h:148
Aws::Lightsail::Model::BucketBundle::SetName
void SetName(const Aws::String &value)
Definition: BucketBundle.h:96
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::BucketBundle::WithIsActive
BucketBundle & WithIsActive(bool value)
Definition: BucketBundle.h:205
Aws::Lightsail::Model::BucketBundle::SetTransferPerMonthInGb
void SetTransferPerMonthInGb(int value)
Definition: BucketBundle.h:179
Aws::Lightsail::Model::BucketBundle::WithName
BucketBundle & WithName(Aws::String &&value)
Definition: BucketBundle.h:116
Aws::Lightsail::Model::BucketBundle::GetBundleId
const Aws::String & GetBundleId() const
Definition: BucketBundle.h:45
Aws::Lightsail::Model::BucketBundle::SetBundleId
void SetBundleId(const char *value)
Definition: BucketBundle.h:65
Aws::Lightsail::Model::BucketBundle::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const