AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BucketBundle.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_LIGHTSAIL_API BucketBundle() = default;
37 AWS_LIGHTSAIL_API BucketBundle(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API BucketBundle& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBundleId() const { return m_bundleId; }
47 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
48 template<typename BundleIdT = Aws::String>
49 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
50 template<typename BundleIdT = Aws::String>
51 BucketBundle& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 BucketBundle& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline double GetPrice() const { return m_price; }
71 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
72 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
73 inline BucketBundle& WithPrice(double value) { SetPrice(value); return *this;}
75
77
80 inline int GetStoragePerMonthInGb() const { return m_storagePerMonthInGb; }
81 inline bool StoragePerMonthInGbHasBeenSet() const { return m_storagePerMonthInGbHasBeenSet; }
82 inline void SetStoragePerMonthInGb(int value) { m_storagePerMonthInGbHasBeenSet = true; m_storagePerMonthInGb = value; }
83 inline BucketBundle& WithStoragePerMonthInGb(int value) { SetStoragePerMonthInGb(value); return *this;}
85
87
90 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
91 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
92 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
93 inline BucketBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
95
97
100 inline bool GetIsActive() const { return m_isActive; }
101 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
102 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
103 inline BucketBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
105 private:
106
107 Aws::String m_bundleId;
108 bool m_bundleIdHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 double m_price{0.0};
114 bool m_priceHasBeenSet = false;
115
116 int m_storagePerMonthInGb{0};
117 bool m_storagePerMonthInGbHasBeenSet = false;
118
119 int m_transferPerMonthInGb{0};
120 bool m_transferPerMonthInGbHasBeenSet = false;
121
122 bool m_isActive{false};
123 bool m_isActiveHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Lightsail
128} // 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