AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DistributionBundle.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
33 {
34 public:
35 AWS_LIGHTSAIL_API DistributionBundle() = default;
36 AWS_LIGHTSAIL_API DistributionBundle(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBundleId() const { return m_bundleId; }
46 inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; }
47 template<typename BundleIdT = Aws::String>
48 void SetBundleId(BundleIdT&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::forward<BundleIdT>(value); }
49 template<typename BundleIdT = Aws::String>
50 DistributionBundle& WithBundleId(BundleIdT&& value) { SetBundleId(std::forward<BundleIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 DistributionBundle& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline double GetPrice() const { return m_price; }
70 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
71 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
72 inline DistributionBundle& WithPrice(double value) { SetPrice(value); return *this;}
74
76
79 inline int GetTransferPerMonthInGb() const { return m_transferPerMonthInGb; }
80 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
81 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
82 inline DistributionBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
84
86
90 inline bool GetIsActive() const { return m_isActive; }
91 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
92 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
93 inline DistributionBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
95 private:
96
97 Aws::String m_bundleId;
98 bool m_bundleIdHasBeenSet = false;
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 double m_price{0.0};
104 bool m_priceHasBeenSet = false;
105
106 int m_transferPerMonthInGb{0};
107 bool m_transferPerMonthInGbHasBeenSet = false;
108
109 bool m_isActive{false};
110 bool m_isActiveHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Lightsail
115} // 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