AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
BucketBundle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
30 public:
31 AWS_LIGHTSAIL_API BucketBundle() = default;
32 AWS_LIGHTSAIL_API BucketBundle(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API BucketBundle& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBundleId() const { return m_bundleId; }
41 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
42 template <typename BundleIdT = Aws::String>
43 void SetBundleId(BundleIdT&& value) {
44 m_bundleIdHasBeenSet = true;
45 m_bundleId = std::forward<BundleIdT>(value);
46 }
47 template <typename BundleIdT = Aws::String>
48 BucketBundle& WithBundleId(BundleIdT&& value) {
49 SetBundleId(std::forward<BundleIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 BucketBundle& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline double GetPrice() const { return m_price; }
77 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
78 inline void SetPrice(double value) {
79 m_priceHasBeenSet = true;
80 m_price = value;
81 }
82 inline BucketBundle& WithPrice(double value) {
83 SetPrice(value);
84 return *this;
85 }
87
89
92 inline int GetStoragePerMonthInGb() const { return m_storagePerMonthInGb; }
93 inline bool StoragePerMonthInGbHasBeenSet() const { return m_storagePerMonthInGbHasBeenSet; }
94 inline void SetStoragePerMonthInGb(int value) {
95 m_storagePerMonthInGbHasBeenSet = true;
96 m_storagePerMonthInGb = value;
97 }
100 return *this;
101 }
103
105
108 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
109 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
110 inline void SetTransferPerMonthInGb(int value) {
111 m_transferPerMonthInGbHasBeenSet = true;
112 m_transferPerMonthInGb = value;
113 }
116 return *this;
117 }
119
121
124 inline bool GetIsActive() const { return m_isActive; }
125 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
126 inline void SetIsActive(bool value) {
127 m_isActiveHasBeenSet = true;
128 m_isActive = value;
129 }
130 inline BucketBundle& WithIsActive(bool value) {
131 SetIsActive(value);
132 return *this;
133 }
135 private:
136 Aws::String m_bundleId;
137
138 Aws::String m_name;
139
140 double m_price{0.0};
141
142 int m_storagePerMonthInGb{0};
143
144 int m_transferPerMonthInGb{0};
145
146 bool m_isActive{false};
147 bool m_bundleIdHasBeenSet = false;
148 bool m_nameHasBeenSet = false;
149 bool m_priceHasBeenSet = false;
150 bool m_storagePerMonthInGbHasBeenSet = false;
151 bool m_transferPerMonthInGbHasBeenSet = false;
152 bool m_isActiveHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Lightsail
157} // namespace Aws
const Aws::String & GetName() const
BucketBundle & WithPrice(double value)
void SetBundleId(BundleIdT &&value)
BucketBundle & WithBundleId(BundleIdT &&value)
AWS_LIGHTSAIL_API BucketBundle(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
BucketBundle & WithName(NameT &&value)
AWS_LIGHTSAIL_API BucketBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBundleId() const
AWS_LIGHTSAIL_API BucketBundle()=default
BucketBundle & WithIsActive(bool value)
BucketBundle & WithStoragePerMonthInGb(int value)
BucketBundle & WithTransferPerMonthInGb(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue