AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; }
49 inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); }
50 inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); }
51 inline BucketBundle& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;}
52 inline BucketBundle& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;}
53 inline BucketBundle& WithBundleId(const char* value) { SetBundleId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline BucketBundle& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline BucketBundle& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline BucketBundle& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline double GetPrice() const{ return m_price; }
75 inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; }
76 inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; }
77 inline BucketBundle& WithPrice(double value) { SetPrice(value); return *this;}
79
81
84 inline int GetStoragePerMonthInGb() const{ return m_storagePerMonthInGb; }
85 inline bool StoragePerMonthInGbHasBeenSet() const { return m_storagePerMonthInGbHasBeenSet; }
86 inline void SetStoragePerMonthInGb(int value) { m_storagePerMonthInGbHasBeenSet = true; m_storagePerMonthInGb = value; }
87 inline BucketBundle& WithStoragePerMonthInGb(int value) { SetStoragePerMonthInGb(value); return *this;}
89
91
94 inline int GetTransferPerMonthInGb() const{ return m_transferPerMonthInGb; }
95 inline bool TransferPerMonthInGbHasBeenSet() const { return m_transferPerMonthInGbHasBeenSet; }
96 inline void SetTransferPerMonthInGb(int value) { m_transferPerMonthInGbHasBeenSet = true; m_transferPerMonthInGb = value; }
97 inline BucketBundle& WithTransferPerMonthInGb(int value) { SetTransferPerMonthInGb(value); return *this;}
99
101
104 inline bool GetIsActive() const{ return m_isActive; }
105 inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; }
106 inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; }
107 inline BucketBundle& WithIsActive(bool value) { SetIsActive(value); return *this;}
109 private:
110
111 Aws::String m_bundleId;
112 bool m_bundleIdHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 double m_price;
118 bool m_priceHasBeenSet = false;
119
120 int m_storagePerMonthInGb;
121 bool m_storagePerMonthInGbHasBeenSet = false;
122
123 int m_transferPerMonthInGb;
124 bool m_transferPerMonthInGbHasBeenSet = false;
125
126 bool m_isActive;
127 bool m_isActiveHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Lightsail
132} // namespace Aws
const Aws::String & GetName() const
void SetBundleId(const char *value)
BucketBundle & WithPrice(double value)
BucketBundle & WithName(const Aws::String &value)
void SetBundleId(const Aws::String &value)
AWS_LIGHTSAIL_API BucketBundle(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API BucketBundle & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBundleId(Aws::String &&value)
BucketBundle & WithBundleId(const char *value)
const Aws::String & GetBundleId() const
BucketBundle & WithBundleId(const Aws::String &value)
void SetName(const Aws::String &value)
void SetName(const char *value)
BucketBundle & WithName(const char *value)
BucketBundle & WithIsActive(bool value)
void SetName(Aws::String &&value)
BucketBundle & WithBundleId(Aws::String &&value)
BucketBundle & WithStoragePerMonthInGb(int value)
BucketBundle & WithName(Aws::String &&value)
BucketBundle & WithTransferPerMonthInGb(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue