AWS SDK for C++  1.9.110
AWS SDK for C++
DistributionBundle.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetBundleId() const{ return m_bundleId; }
45 
49  inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
50 
54  inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
55 
59  inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
60 
64  inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
65 
69  inline DistributionBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
70 
74  inline DistributionBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
75 
79  inline DistributionBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
80 
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
110  inline DistributionBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline DistributionBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline DistributionBundle& WithName(const char* value) { SetName(value); return *this;}
121 
122 
126  inline double GetPrice() const{ return m_price; }
127 
131  inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
132 
136  inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
137 
141  inline DistributionBundle& WithPrice(double value) { SetPrice(value); return *this;}
142 
143 
147  inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
148 
152  inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
153 
157  inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
158 
162  inline DistributionBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
163 
164 
169  inline bool GetIsActive() const{ return m_isActive; }
170 
175  inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
176 
181  inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
182 
187  inline DistributionBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
188 
189  private:
190 
191  Aws::String m_bundleId;
192  bool m_bundleIdHasBeenSet;
193 
194  Aws::String m_name;
195  bool m_nameHasBeenSet;
196 
197  double m_price;
198  bool m_priceHasBeenSet;
199 
200  int m_transferPerMonthInGb;
201  bool m_transferPerMonthInGbHasBeenSet;
202 
203  bool m_isActive;
204  bool m_isActiveHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace Lightsail
209 } // namespace Aws
Aws::Lightsail::Model::DistributionBundle::GetTransferPerMonthInGb
int GetTransferPerMonthInGb() const
Definition: DistributionBundle.h:147
Aws::Lightsail::Model::DistributionBundle::SetName
void SetName(Aws::String &&value)
Definition: DistributionBundle.h:100
Aws::Lightsail::Model::DistributionBundle::SetBundleId
void SetBundleId(Aws::String &&value)
Definition: DistributionBundle.h:59
Aws::Lightsail::Model::DistributionBundle::WithPrice
DistributionBundle & WithPrice(double value)
Definition: DistributionBundle.h:141
Aws::Lightsail::Model::DistributionBundle::WithBundleId
DistributionBundle & WithBundleId(Aws::String &&value)
Definition: DistributionBundle.h:74
Aws::Lightsail::Model::DistributionBundle::TransferPerMonthInGbHasBeenSet
bool TransferPerMonthInGbHasBeenSet() const
Definition: DistributionBundle.h:152
Aws::Lightsail::Model::DistributionBundle::IsActiveHasBeenSet
bool IsActiveHasBeenSet() const
Definition: DistributionBundle.h:175
Aws::Lightsail::Model::DistributionBundle::BundleIdHasBeenSet
bool BundleIdHasBeenSet() const
Definition: DistributionBundle.h:49
Aws::Lightsail::Model::DistributionBundle::SetIsActive
void SetIsActive(bool value)
Definition: DistributionBundle.h:181
Aws::Lightsail::Model::DistributionBundle::GetIsActive
bool GetIsActive() const
Definition: DistributionBundle.h:169
Aws::Lightsail::Model::DistributionBundle::WithName
DistributionBundle & WithName(const Aws::String &value)
Definition: DistributionBundle.h:110
Aws::Lightsail::Model::DistributionBundle::SetPrice
void SetPrice(double value)
Definition: DistributionBundle.h:136
Aws::Lightsail::Model::DistributionBundle::WithTransferPerMonthInGb
DistributionBundle & WithTransferPerMonthInGb(int value)
Definition: DistributionBundle.h:162
Aws::Lightsail::Model::DistributionBundle::DistributionBundle
DistributionBundle()
Aws::Lightsail::Model::DistributionBundle::GetPrice
double GetPrice() const
Definition: DistributionBundle.h:126
Aws::Lightsail::Model::DistributionBundle::PriceHasBeenSet
bool PriceHasBeenSet() const
Definition: DistributionBundle.h:131
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::DistributionBundle::WithIsActive
DistributionBundle & WithIsActive(bool value)
Definition: DistributionBundle.h:187
Aws::Lightsail::Model::DistributionBundle::GetName
const Aws::String & GetName() const
Definition: DistributionBundle.h:85
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::DistributionBundle
Definition: DistributionBundle.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DistributionBundle::SetBundleId
void SetBundleId(const char *value)
Definition: DistributionBundle.h:64
Aws::Lightsail::Model::DistributionBundle::WithName
DistributionBundle & WithName(const char *value)
Definition: DistributionBundle.h:120
Aws::Lightsail::Model::DistributionBundle::GetBundleId
const Aws::String & GetBundleId() const
Definition: DistributionBundle.h:44
Aws::Lightsail::Model::DistributionBundle::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DistributionBundle::WithName
DistributionBundle & WithName(Aws::String &&value)
Definition: DistributionBundle.h:115
Aws::Lightsail::Model::DistributionBundle::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DistributionBundle.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DistributionBundle::SetName
void SetName(const char *value)
Definition: DistributionBundle.h:105
Aws::Lightsail::Model::DistributionBundle::SetName
void SetName(const Aws::String &value)
Definition: DistributionBundle.h:95
Aws::Lightsail::Model::DistributionBundle::DistributionBundle
DistributionBundle(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::DistributionBundle::operator=
DistributionBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DistributionBundle::SetTransferPerMonthInGb
void SetTransferPerMonthInGb(int value)
Definition: DistributionBundle.h:157
Aws::Lightsail::Model::DistributionBundle::WithBundleId
DistributionBundle & WithBundleId(const char *value)
Definition: DistributionBundle.h:79
Aws::Lightsail::Model::DistributionBundle::SetBundleId
void SetBundleId(const Aws::String &value)
Definition: DistributionBundle.h:54
Aws::Lightsail::Model::DistributionBundle::WithBundleId
DistributionBundle & WithBundleId(const Aws::String &value)
Definition: DistributionBundle.h:69