AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CapacityBlockOffering.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2 {
22namespace Model {
23
31 public:
32 AWS_EC2_API CapacityBlockOffering() = default;
35
36 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetCapacityBlockOfferingId() const { return m_capacityBlockOfferingId; }
44 inline bool CapacityBlockOfferingIdHasBeenSet() const { return m_capacityBlockOfferingIdHasBeenSet; }
45 template <typename CapacityBlockOfferingIdT = Aws::String>
46 void SetCapacityBlockOfferingId(CapacityBlockOfferingIdT&& value) {
47 m_capacityBlockOfferingIdHasBeenSet = true;
48 m_capacityBlockOfferingId = std::forward<CapacityBlockOfferingIdT>(value);
49 }
50 template <typename CapacityBlockOfferingIdT = Aws::String>
51 CapacityBlockOffering& WithCapacityBlockOfferingId(CapacityBlockOfferingIdT&& value) {
52 SetCapacityBlockOfferingId(std::forward<CapacityBlockOfferingIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 template <typename InstanceTypeT = Aws::String>
64 void SetInstanceType(InstanceTypeT&& value) {
65 m_instanceTypeHasBeenSet = true;
66 m_instanceType = std::forward<InstanceTypeT>(value);
67 }
68 template <typename InstanceTypeT = Aws::String>
69 CapacityBlockOffering& WithInstanceType(InstanceTypeT&& value) {
70 SetInstanceType(std::forward<InstanceTypeT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
80 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
81 template <typename AvailabilityZoneT = Aws::String>
82 void SetAvailabilityZone(AvailabilityZoneT&& value) {
83 m_availabilityZoneHasBeenSet = true;
84 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
85 }
86 template <typename AvailabilityZoneT = Aws::String>
87 CapacityBlockOffering& WithAvailabilityZone(AvailabilityZoneT&& value) {
88 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
89 return *this;
90 }
92
94
97 inline int GetInstanceCount() const { return m_instanceCount; }
98 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
99 inline void SetInstanceCount(int value) {
100 m_instanceCountHasBeenSet = true;
101 m_instanceCount = value;
102 }
104 SetInstanceCount(value);
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
114 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
115 template <typename StartDateT = Aws::Utils::DateTime>
116 void SetStartDate(StartDateT&& value) {
117 m_startDateHasBeenSet = true;
118 m_startDate = std::forward<StartDateT>(value);
119 }
120 template <typename StartDateT = Aws::Utils::DateTime>
122 SetStartDate(std::forward<StartDateT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
132 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
133 template <typename EndDateT = Aws::Utils::DateTime>
134 void SetEndDate(EndDateT&& value) {
135 m_endDateHasBeenSet = true;
136 m_endDate = std::forward<EndDateT>(value);
137 }
138 template <typename EndDateT = Aws::Utils::DateTime>
140 SetEndDate(std::forward<EndDateT>(value));
141 return *this;
142 }
144
146
152 inline int GetCapacityBlockDurationHours() const { return m_capacityBlockDurationHours; }
153 inline bool CapacityBlockDurationHoursHasBeenSet() const { return m_capacityBlockDurationHoursHasBeenSet; }
154 inline void SetCapacityBlockDurationHours(int value) {
155 m_capacityBlockDurationHoursHasBeenSet = true;
156 m_capacityBlockDurationHours = value;
157 }
160 return *this;
161 }
163
165
168 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
169 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
170 template <typename UpfrontFeeT = Aws::String>
171 void SetUpfrontFee(UpfrontFeeT&& value) {
172 m_upfrontFeeHasBeenSet = true;
173 m_upfrontFee = std::forward<UpfrontFeeT>(value);
174 }
175 template <typename UpfrontFeeT = Aws::String>
176 CapacityBlockOffering& WithUpfrontFee(UpfrontFeeT&& value) {
177 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
187 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
188 template <typename CurrencyCodeT = Aws::String>
189 void SetCurrencyCode(CurrencyCodeT&& value) {
190 m_currencyCodeHasBeenSet = true;
191 m_currencyCode = std::forward<CurrencyCodeT>(value);
192 }
193 template <typename CurrencyCodeT = Aws::String>
194 CapacityBlockOffering& WithCurrencyCode(CurrencyCodeT&& value) {
195 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
196 return *this;
197 }
199
201
204 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
205 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
207 m_tenancyHasBeenSet = true;
208 m_tenancy = value;
209 }
211 SetTenancy(value);
212 return *this;
213 }
215
217
220 inline const Aws::String& GetUltraserverType() const { return m_ultraserverType; }
221 inline bool UltraserverTypeHasBeenSet() const { return m_ultraserverTypeHasBeenSet; }
222 template <typename UltraserverTypeT = Aws::String>
223 void SetUltraserverType(UltraserverTypeT&& value) {
224 m_ultraserverTypeHasBeenSet = true;
225 m_ultraserverType = std::forward<UltraserverTypeT>(value);
226 }
227 template <typename UltraserverTypeT = Aws::String>
228 CapacityBlockOffering& WithUltraserverType(UltraserverTypeT&& value) {
229 SetUltraserverType(std::forward<UltraserverTypeT>(value));
230 return *this;
231 }
233
235
238 inline int GetUltraserverCount() const { return m_ultraserverCount; }
239 inline bool UltraserverCountHasBeenSet() const { return m_ultraserverCountHasBeenSet; }
240 inline void SetUltraserverCount(int value) {
241 m_ultraserverCountHasBeenSet = true;
242 m_ultraserverCount = value;
243 }
245 SetUltraserverCount(value);
246 return *this;
247 }
249
251
257 inline int GetCapacityBlockDurationMinutes() const { return m_capacityBlockDurationMinutes; }
258 inline bool CapacityBlockDurationMinutesHasBeenSet() const { return m_capacityBlockDurationMinutesHasBeenSet; }
259 inline void SetCapacityBlockDurationMinutes(int value) {
260 m_capacityBlockDurationMinutesHasBeenSet = true;
261 m_capacityBlockDurationMinutes = value;
262 }
265 return *this;
266 }
268 private:
269 Aws::String m_capacityBlockOfferingId;
270
271 Aws::String m_instanceType;
272
273 Aws::String m_availabilityZone;
274
275 int m_instanceCount{0};
276
277 Aws::Utils::DateTime m_startDate{};
278
279 Aws::Utils::DateTime m_endDate{};
280
281 int m_capacityBlockDurationHours{0};
282
283 Aws::String m_upfrontFee;
284
285 Aws::String m_currencyCode;
286
288
289 Aws::String m_ultraserverType;
290
291 int m_ultraserverCount{0};
292
293 int m_capacityBlockDurationMinutes{0};
294 bool m_capacityBlockOfferingIdHasBeenSet = false;
295 bool m_instanceTypeHasBeenSet = false;
296 bool m_availabilityZoneHasBeenSet = false;
297 bool m_instanceCountHasBeenSet = false;
298 bool m_startDateHasBeenSet = false;
299 bool m_endDateHasBeenSet = false;
300 bool m_capacityBlockDurationHoursHasBeenSet = false;
301 bool m_upfrontFeeHasBeenSet = false;
302 bool m_currencyCodeHasBeenSet = false;
303 bool m_tenancyHasBeenSet = false;
304 bool m_ultraserverTypeHasBeenSet = false;
305 bool m_ultraserverCountHasBeenSet = false;
306 bool m_capacityBlockDurationMinutesHasBeenSet = false;
307};
308
309} // namespace Model
310} // namespace EC2
311} // namespace Aws
void SetUltraserverType(UltraserverTypeT &&value)
void SetTenancy(CapacityReservationTenancy value)
void SetInstanceType(InstanceTypeT &&value)
CapacityBlockOffering & WithCapacityBlockDurationMinutes(int value)
const Aws::String & GetInstanceType() const
CapacityBlockOffering & WithEndDate(EndDateT &&value)
CapacityBlockOffering & WithUpfrontFee(UpfrontFeeT &&value)
CapacityBlockOffering & WithStartDate(StartDateT &&value)
CapacityBlockOffering & WithCurrencyCode(CurrencyCodeT &&value)
const Aws::String & GetCapacityBlockOfferingId() const
const Aws::Utils::DateTime & GetStartDate() const
AWS_EC2_API CapacityBlockOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityReservationTenancy GetTenancy() const
const Aws::Utils::DateTime & GetEndDate() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityBlockOffering & WithInstanceType(InstanceTypeT &&value)
CapacityBlockOffering & WithCapacityBlockOfferingId(CapacityBlockOfferingIdT &&value)
CapacityBlockOffering & WithUltraserverCount(int value)
AWS_EC2_API CapacityBlockOffering()=default
void SetCapacityBlockOfferingId(CapacityBlockOfferingIdT &&value)
CapacityBlockOffering & WithInstanceCount(int value)
CapacityBlockOffering & WithUltraserverType(UltraserverTypeT &&value)
const Aws::String & GetAvailabilityZone() const
CapacityBlockOffering & WithCapacityBlockDurationHours(int value)
const Aws::String & GetUltraserverType() const
CapacityBlockOffering & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CapacityBlockOffering & WithTenancy(CapacityReservationTenancy value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API CapacityBlockOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream