AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
48 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
49 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
50 inline DistributionBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
51 inline DistributionBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
52 inline DistributionBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline DistributionBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline DistributionBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline DistributionBundle& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline double GetPrice() const{ return m_price; }
74 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
75 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
76 inline DistributionBundle& WithPrice(double value) { SetPrice(value); return *this;}
78
80
83 inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
84 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
85 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
86 inline DistributionBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
88
90
94 inline bool GetIsActive() const{ return m_isActive; }
95 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
96 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
97 inline DistributionBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
99 private:
100
101 Aws::String m_bundleId;
102 bool m_bundleIdHasBeenSet = false;
103
104 Aws::String m_name;
105 bool m_nameHasBeenSet = false;
106
107 double m_price;
108 bool m_priceHasBeenSet = false;
109
110 int m_transferPerMonthInGb;
111 bool m_transferPerMonthInGbHasBeenSet = false;
112
113 bool m_isActive;
114 bool m_isActiveHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Lightsail
119} // namespace Aws
DistributionBundle & WithBundleId(Aws::String &&value)
void SetName(const Aws::String &value)
DistributionBundle & WithName(const char *value)
DistributionBundle & WithName(Aws::String &&value)
AWS_LIGHTSAIL_API DistributionBundle(Aws::Utils::Json::JsonView jsonValue)
DistributionBundle & WithIsActive(bool value)
DistributionBundle & WithPrice(double value)
void SetBundleId(const Aws::String &value)
DistributionBundle & WithBundleId(const char *value)
DistributionBundle & WithBundleId(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
DistributionBundle & WithName(const Aws::String &value)
DistributionBundle & WithTransferPerMonthInGb(int 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