AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CatalogItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/CatalogItemStatus.h>
11#include <aws/outposts/model/EC2Capacity.h>
12#include <aws/outposts/model/SupportedStorageEnum.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Outposts {
24namespace Model {
25
32 public:
33 AWS_OUTPOSTS_API CatalogItem() = default;
34 AWS_OUTPOSTS_API CatalogItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OUTPOSTS_API CatalogItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCatalogItemId() const { return m_catalogItemId; }
43 inline bool CatalogItemIdHasBeenSet() const { return m_catalogItemIdHasBeenSet; }
44 template <typename CatalogItemIdT = Aws::String>
45 void SetCatalogItemId(CatalogItemIdT&& value) {
46 m_catalogItemIdHasBeenSet = true;
47 m_catalogItemId = std::forward<CatalogItemIdT>(value);
48 }
49 template <typename CatalogItemIdT = Aws::String>
50 CatalogItem& WithCatalogItemId(CatalogItemIdT&& value) {
51 SetCatalogItemId(std::forward<CatalogItemIdT>(value));
52 return *this;
53 }
55
57
60 inline CatalogItemStatus GetItemStatus() const { return m_itemStatus; }
61 inline bool ItemStatusHasBeenSet() const { return m_itemStatusHasBeenSet; }
62 inline void SetItemStatus(CatalogItemStatus value) {
63 m_itemStatusHasBeenSet = true;
64 m_itemStatus = value;
65 }
67 SetItemStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::Vector<EC2Capacity>& GetEC2Capacities() const { return m_eC2Capacities; }
77 inline bool EC2CapacitiesHasBeenSet() const { return m_eC2CapacitiesHasBeenSet; }
78 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
79 void SetEC2Capacities(EC2CapacitiesT&& value) {
80 m_eC2CapacitiesHasBeenSet = true;
81 m_eC2Capacities = std::forward<EC2CapacitiesT>(value);
82 }
83 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
84 CatalogItem& WithEC2Capacities(EC2CapacitiesT&& value) {
85 SetEC2Capacities(std::forward<EC2CapacitiesT>(value));
86 return *this;
87 }
88 template <typename EC2CapacitiesT = EC2Capacity>
89 CatalogItem& AddEC2Capacities(EC2CapacitiesT&& value) {
90 m_eC2CapacitiesHasBeenSet = true;
91 m_eC2Capacities.emplace_back(std::forward<EC2CapacitiesT>(value));
92 return *this;
93 }
95
97
100 inline double GetPowerKva() const { return m_powerKva; }
101 inline bool PowerKvaHasBeenSet() const { return m_powerKvaHasBeenSet; }
102 inline void SetPowerKva(double value) {
103 m_powerKvaHasBeenSet = true;
104 m_powerKva = value;
105 }
106 inline CatalogItem& WithPowerKva(double value) {
107 SetPowerKva(value);
108 return *this;
109 }
111
113
116 inline int GetWeightLbs() const { return m_weightLbs; }
117 inline bool WeightLbsHasBeenSet() const { return m_weightLbsHasBeenSet; }
118 inline void SetWeightLbs(int value) {
119 m_weightLbsHasBeenSet = true;
120 m_weightLbs = value;
121 }
122 inline CatalogItem& WithWeightLbs(int value) {
123 SetWeightLbs(value);
124 return *this;
125 }
127
129
133 inline const Aws::Vector<int>& GetSupportedUplinkGbps() const { return m_supportedUplinkGbps; }
134 inline bool SupportedUplinkGbpsHasBeenSet() const { return m_supportedUplinkGbpsHasBeenSet; }
135 template <typename SupportedUplinkGbpsT = Aws::Vector<int>>
136 void SetSupportedUplinkGbps(SupportedUplinkGbpsT&& value) {
137 m_supportedUplinkGbpsHasBeenSet = true;
138 m_supportedUplinkGbps = std::forward<SupportedUplinkGbpsT>(value);
139 }
140 template <typename SupportedUplinkGbpsT = Aws::Vector<int>>
141 CatalogItem& WithSupportedUplinkGbps(SupportedUplinkGbpsT&& value) {
142 SetSupportedUplinkGbps(std::forward<SupportedUplinkGbpsT>(value));
143 return *this;
144 }
146 m_supportedUplinkGbpsHasBeenSet = true;
147 m_supportedUplinkGbps.push_back(value);
148 return *this;
149 }
151
153
156 inline const Aws::Vector<SupportedStorageEnum>& GetSupportedStorage() const { return m_supportedStorage; }
157 inline bool SupportedStorageHasBeenSet() const { return m_supportedStorageHasBeenSet; }
158 template <typename SupportedStorageT = Aws::Vector<SupportedStorageEnum>>
159 void SetSupportedStorage(SupportedStorageT&& value) {
160 m_supportedStorageHasBeenSet = true;
161 m_supportedStorage = std::forward<SupportedStorageT>(value);
162 }
163 template <typename SupportedStorageT = Aws::Vector<SupportedStorageEnum>>
164 CatalogItem& WithSupportedStorage(SupportedStorageT&& value) {
165 SetSupportedStorage(std::forward<SupportedStorageT>(value));
166 return *this;
167 }
169 m_supportedStorageHasBeenSet = true;
170 m_supportedStorage.push_back(value);
171 return *this;
172 }
174 private:
175 Aws::String m_catalogItemId;
176
178
179 Aws::Vector<EC2Capacity> m_eC2Capacities;
180
181 double m_powerKva{0.0};
182
183 int m_weightLbs{0};
184
185 Aws::Vector<int> m_supportedUplinkGbps;
186
187 Aws::Vector<SupportedStorageEnum> m_supportedStorage;
188 bool m_catalogItemIdHasBeenSet = false;
189 bool m_itemStatusHasBeenSet = false;
190 bool m_eC2CapacitiesHasBeenSet = false;
191 bool m_powerKvaHasBeenSet = false;
192 bool m_weightLbsHasBeenSet = false;
193 bool m_supportedUplinkGbpsHasBeenSet = false;
194 bool m_supportedStorageHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Outposts
199} // namespace Aws
void SetEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:79
CatalogItem & WithEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:84
AWS_OUTPOSTS_API CatalogItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCatalogItemId(CatalogItemIdT &&value)
Definition CatalogItem.h:45
void SetSupportedStorage(SupportedStorageT &&value)
AWS_OUTPOSTS_API CatalogItem()=default
CatalogItem & AddEC2Capacities(EC2CapacitiesT &&value)
Definition CatalogItem.h:89
CatalogItem & WithSupportedUplinkGbps(SupportedUplinkGbpsT &&value)
CatalogItem & AddSupportedStorage(SupportedStorageEnum value)
CatalogItemStatus GetItemStatus() const
Definition CatalogItem.h:60
const Aws::Vector< int > & GetSupportedUplinkGbps() const
AWS_OUTPOSTS_API CatalogItem(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SupportedStorageEnum > & GetSupportedStorage() const
const Aws::String & GetCatalogItemId() const
Definition CatalogItem.h:42
CatalogItem & WithPowerKva(double value)
const Aws::Vector< EC2Capacity > & GetEC2Capacities() const
Definition CatalogItem.h:76
CatalogItem & WithSupportedStorage(SupportedStorageT &&value)
void SetItemStatus(CatalogItemStatus value)
Definition CatalogItem.h:62
CatalogItem & WithCatalogItemId(CatalogItemIdT &&value)
Definition CatalogItem.h:50
CatalogItem & AddSupportedUplinkGbps(int value)
CatalogItem & WithWeightLbs(int value)
void SetSupportedUplinkGbps(SupportedUplinkGbpsT &&value)
CatalogItem & WithItemStatus(CatalogItemStatus value)
Definition CatalogItem.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue