AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
ServerSpecificationDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/EC2Capacity.h>
10#include <aws/outposts/model/RackUnitHeight.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Outposts {
22namespace Model {
23
31 public:
32 AWS_OUTPOSTS_API ServerSpecificationDetails() = default;
35 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline double GetServerPowerDrawKva() const { return m_serverPowerDrawKva; }
42 inline bool ServerPowerDrawKvaHasBeenSet() const { return m_serverPowerDrawKvaHasBeenSet; }
43 inline void SetServerPowerDrawKva(double value) {
44 m_serverPowerDrawKvaHasBeenSet = true;
45 m_serverPowerDrawKva = value;
46 }
49 return *this;
50 }
52
54
57 inline double GetServerWeightLbs() const { return m_serverWeightLbs; }
58 inline bool ServerWeightLbsHasBeenSet() const { return m_serverWeightLbsHasBeenSet; }
59 inline void SetServerWeightLbs(double value) {
60 m_serverWeightLbsHasBeenSet = true;
61 m_serverWeightLbs = value;
62 }
64 SetServerWeightLbs(value);
65 return *this;
66 }
68
70
73 inline double GetServerHeightInches() const { return m_serverHeightInches; }
74 inline bool ServerHeightInchesHasBeenSet() const { return m_serverHeightInchesHasBeenSet; }
75 inline void SetServerHeightInches(double value) {
76 m_serverHeightInchesHasBeenSet = true;
77 m_serverHeightInches = value;
78 }
81 return *this;
82 }
84
86
89 inline double GetServerWidthInches() const { return m_serverWidthInches; }
90 inline bool ServerWidthInchesHasBeenSet() const { return m_serverWidthInchesHasBeenSet; }
91 inline void SetServerWidthInches(double value) {
92 m_serverWidthInchesHasBeenSet = true;
93 m_serverWidthInches = value;
94 }
97 return *this;
98 }
100
102
105 inline double GetServerDepthInches() const { return m_serverDepthInches; }
106 inline bool ServerDepthInchesHasBeenSet() const { return m_serverDepthInchesHasBeenSet; }
107 inline void SetServerDepthInches(double value) {
108 m_serverDepthInchesHasBeenSet = true;
109 m_serverDepthInches = value;
110 }
113 return *this;
114 }
116
118
123 inline RackUnitHeight GetRackUnitHeight() const { return m_rackUnitHeight; }
124 inline bool RackUnitHeightHasBeenSet() const { return m_rackUnitHeightHasBeenSet; }
126 m_rackUnitHeightHasBeenSet = true;
127 m_rackUnitHeight = value;
128 }
130 SetRackUnitHeight(value);
131 return *this;
132 }
134
136
139 inline const Aws::Vector<EC2Capacity>& GetEC2Capacities() const { return m_eC2Capacities; }
140 inline bool EC2CapacitiesHasBeenSet() const { return m_eC2CapacitiesHasBeenSet; }
141 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
142 void SetEC2Capacities(EC2CapacitiesT&& value) {
143 m_eC2CapacitiesHasBeenSet = true;
144 m_eC2Capacities = std::forward<EC2CapacitiesT>(value);
145 }
146 template <typename EC2CapacitiesT = Aws::Vector<EC2Capacity>>
148 SetEC2Capacities(std::forward<EC2CapacitiesT>(value));
149 return *this;
150 }
151 template <typename EC2CapacitiesT = EC2Capacity>
153 m_eC2CapacitiesHasBeenSet = true;
154 m_eC2Capacities.emplace_back(std::forward<EC2CapacitiesT>(value));
155 return *this;
156 }
158 private:
159 double m_serverPowerDrawKva{0.0};
160
161 double m_serverWeightLbs{0.0};
162
163 double m_serverHeightInches{0.0};
164
165 double m_serverWidthInches{0.0};
166
167 double m_serverDepthInches{0.0};
168
169 RackUnitHeight m_rackUnitHeight{RackUnitHeight::NOT_SET};
170
171 Aws::Vector<EC2Capacity> m_eC2Capacities;
172 bool m_serverPowerDrawKvaHasBeenSet = false;
173 bool m_serverWeightLbsHasBeenSet = false;
174 bool m_serverHeightInchesHasBeenSet = false;
175 bool m_serverWidthInchesHasBeenSet = false;
176 bool m_serverDepthInchesHasBeenSet = false;
177 bool m_rackUnitHeightHasBeenSet = false;
178 bool m_eC2CapacitiesHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace Outposts
183} // namespace Aws
ServerSpecificationDetails & WithServerDepthInches(double value)
AWS_OUTPOSTS_API ServerSpecificationDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API ServerSpecificationDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EC2Capacity > & GetEC2Capacities() const
ServerSpecificationDetails & WithRackUnitHeight(RackUnitHeight value)
AWS_OUTPOSTS_API ServerSpecificationDetails()=default
ServerSpecificationDetails & WithServerWidthInches(double value)
ServerSpecificationDetails & WithServerWeightLbs(double value)
ServerSpecificationDetails & WithServerPowerDrawKva(double value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
ServerSpecificationDetails & WithEC2Capacities(EC2CapacitiesT &&value)
ServerSpecificationDetails & WithServerHeightInches(double value)
ServerSpecificationDetails & AddEC2Capacities(EC2CapacitiesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue