AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DistributionBundle.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
29 public:
30 AWS_LIGHTSAIL_API DistributionBundle() = default;
31 AWS_LIGHTSAIL_API DistributionBundle(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBundleId() const { return m_bundleId; }
40 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
41 template <typename BundleIdT = Aws::String>
42 void SetBundleId(BundleIdT&& value) {
43 m_bundleIdHasBeenSet = true;
44 m_bundleId = std::forward<BundleIdT>(value);
45 }
46 template <typename BundleIdT = Aws::String>
47 DistributionBundle& WithBundleId(BundleIdT&& value) {
48 SetBundleId(std::forward<BundleIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 DistributionBundle& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline double GetPrice() const { return m_price; }
76 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
77 inline void SetPrice(double value) {
78 m_priceHasBeenSet = true;
79 m_price = value;
80 }
81 inline DistributionBundle& WithPrice(double value) {
82 SetPrice(value);
83 return *this;
84 }
86
88
91 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
92 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
93 inline void SetTransferPerMonthInGb(int value) {
94 m_transferPerMonthInGbHasBeenSet = true;
95 m_transferPerMonthInGb = value;
96 }
99 return *this;
100 }
102
104
108 inline bool GetIsActive() const { return m_isActive; }
109 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
110 inline void SetIsActive(bool value) {
111 m_isActiveHasBeenSet = true;
112 m_isActive = value;
113 }
114 inline DistributionBundle& WithIsActive(bool value) {
115 SetIsActive(value);
116 return *this;
117 }
119 private:
120 Aws::String m_bundleId;
121
122 Aws::String m_name;
123
124 double m_price{0.0};
125
126 int m_transferPerMonthInGb{0};
127
128 bool m_isActive{false};
129 bool m_bundleIdHasBeenSet = false;
130 bool m_nameHasBeenSet = false;
131 bool m_priceHasBeenSet = false;
132 bool m_transferPerMonthInGbHasBeenSet = false;
133 bool m_isActiveHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace Lightsail
138} // namespace Aws
DistributionBundle & WithName(NameT &&value)
AWS_LIGHTSAIL_API DistributionBundle()=default
AWS_LIGHTSAIL_API DistributionBundle(Aws::Utils::Json::JsonView jsonValue)
DistributionBundle & WithIsActive(bool value)
DistributionBundle & WithPrice(double value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DistributionBundle & WithTransferPerMonthInGb(int value)
DistributionBundle & WithBundleId(BundleIdT &&value)
AWS_LIGHTSAIL_API DistributionBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue