AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
RackSpecificationDetails.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/EC2Capacity.h>
11#include <aws/outposts/model/QuoteRackUseType.h>
12#include <aws/outposts/model/RackUnitHeight.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
33 public:
34 AWS_OUTPOSTS_API RackSpecificationDetails() = default;
37 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetRackId() const { return m_rackId; }
44 inline bool RackIdHasBeenSet() const { return m_rackIdHasBeenSet; }
45 template <typename RackIdT = Aws::String>
46 void SetRackId(RackIdT&& value) {
47 m_rackIdHasBeenSet = true;
48 m_rackId = std::forward<RackIdT>(value);
49 }
50 template <typename RackIdT = Aws::String>
52 SetRackId(std::forward<RackIdT>(value));
53 return *this;
54 }
56
58
62 inline QuoteRackUseType GetRackUse() const { return m_rackUse; }
63 inline bool RackUseHasBeenSet() const { return m_rackUseHasBeenSet; }
64 inline void SetRackUse(QuoteRackUseType value) {
65 m_rackUseHasBeenSet = true;
66 m_rackUse = value;
67 }
69 SetRackUse(value);
70 return *this;
71 }
73
75
78 inline double GetRackPowerDrawKva() const { return m_rackPowerDrawKva; }
79 inline bool RackPowerDrawKvaHasBeenSet() const { return m_rackPowerDrawKvaHasBeenSet; }
80 inline void SetRackPowerDrawKva(double value) {
81 m_rackPowerDrawKvaHasBeenSet = true;
82 m_rackPowerDrawKva = value;
83 }
86 return *this;
87 }
89
91
94 inline double GetRackWeightLbs() const { return m_rackWeightLbs; }
95 inline bool RackWeightLbsHasBeenSet() const { return m_rackWeightLbsHasBeenSet; }
96 inline void SetRackWeightLbs(double value) {
97 m_rackWeightLbsHasBeenSet = true;
98 m_rackWeightLbs = value;
99 }
101 SetRackWeightLbs(value);
102 return *this;
103 }
105
107
110 inline double GetRackHeightInches() const { return m_rackHeightInches; }
111 inline bool RackHeightInchesHasBeenSet() const { return m_rackHeightInchesHasBeenSet; }
112 inline void SetRackHeightInches(double value) {
113 m_rackHeightInchesHasBeenSet = true;
114 m_rackHeightInches = value;
115 }
117 SetRackHeightInches(value);
118 return *this;
119 }
121
123
126 inline double GetRackWidthInches() const { return m_rackWidthInches; }
127 inline bool RackWidthInchesHasBeenSet() const { return m_rackWidthInchesHasBeenSet; }
128 inline void SetRackWidthInches(double value) {
129 m_rackWidthInchesHasBeenSet = true;
130 m_rackWidthInches = value;
131 }
133 SetRackWidthInches(value);
134 return *this;
135 }
137
139
142 inline double GetRackDepthInches() const { return m_rackDepthInches; }
143 inline bool RackDepthInchesHasBeenSet() const { return m_rackDepthInchesHasBeenSet; }
144 inline void SetRackDepthInches(double value) {
145 m_rackDepthInchesHasBeenSet = true;
146 m_rackDepthInches = value;
147 }
149 SetRackDepthInches(value);
150 return *this;
151 }
153
155
160 inline RackUnitHeight GetRackUnitHeight() const { return m_rackUnitHeight; }
161 inline bool RackUnitHeightHasBeenSet() const { return m_rackUnitHeightHasBeenSet; }
163 m_rackUnitHeightHasBeenSet = true;
164 m_rackUnitHeight = value;
165 }
167 SetRackUnitHeight(value);
168 return *this;
169 }
171
173
176 inline const Aws::Vector<EC2Capacity>& GetEC2Capacities() const { return m_eC2Capacities; }
177 inline bool EC2CapacitiesHasBeenSet() const { return m_eC2CapacitiesHasBeenSet; }
178 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
179 void SetEC2Capacities(EC2CapacitiesT&& value) {
180 m_eC2CapacitiesHasBeenSet = true;
181 m_eC2Capacities = std::forward<EC2CapacitiesT>(value);
182 }
183 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
185 SetEC2Capacities(std::forward<EC2CapacitiesT>(value));
186 return *this;
187 }
188 template <typename EC2CapacitiesT = EC2Capacity>
190 m_eC2CapacitiesHasBeenSet = true;
191 m_eC2Capacities.emplace_back(std::forward<EC2CapacitiesT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_rackId;
197
199
200 double m_rackPowerDrawKva{0.0};
201
202 double m_rackWeightLbs{0.0};
203
204 double m_rackHeightInches{0.0};
205
206 double m_rackWidthInches{0.0};
207
208 double m_rackDepthInches{0.0};
209
210 RackUnitHeight m_rackUnitHeight{RackUnitHeight::NOT_SET};
211
212 Aws::Vector<EC2Capacity> m_eC2Capacities;
213 bool m_rackIdHasBeenSet = false;
214 bool m_rackUseHasBeenSet = false;
215 bool m_rackPowerDrawKvaHasBeenSet = false;
216 bool m_rackWeightLbsHasBeenSet = false;
217 bool m_rackHeightInchesHasBeenSet = false;
218 bool m_rackWidthInchesHasBeenSet = false;
219 bool m_rackDepthInchesHasBeenSet = false;
220 bool m_rackUnitHeightHasBeenSet = false;
221 bool m_eC2CapacitiesHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace Outposts
226} // namespace Aws
RackSpecificationDetails & WithRackHeightInches(double value)
RackSpecificationDetails & WithRackWeightLbs(double value)
AWS_OUTPOSTS_API RackSpecificationDetails(Aws::Utils::Json::JsonView jsonValue)
RackSpecificationDetails & WithEC2Capacities(EC2CapacitiesT &&value)
RackSpecificationDetails & WithRackPowerDrawKva(double value)
RackSpecificationDetails & WithRackWidthInches(double value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EC2Capacity > & GetEC2Capacities() const
RackSpecificationDetails & WithRackUse(QuoteRackUseType value)
RackSpecificationDetails & WithRackUnitHeight(RackUnitHeight value)
AWS_OUTPOSTS_API RackSpecificationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API RackSpecificationDetails()=default
RackSpecificationDetails & WithRackId(RackIdT &&value)
RackSpecificationDetails & WithRackDepthInches(double value)
RackSpecificationDetails & AddEC2Capacities(EC2CapacitiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue