AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CapacityBlockExtensionOffering.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 CapacityBlockExtensionOffering() = 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& GetCapacityBlockExtensionOfferingId() const { return m_capacityBlockExtensionOfferingId; }
44 inline bool CapacityBlockExtensionOfferingIdHasBeenSet() const { return m_capacityBlockExtensionOfferingIdHasBeenSet; }
45 template <typename CapacityBlockExtensionOfferingIdT = Aws::String>
46 void SetCapacityBlockExtensionOfferingId(CapacityBlockExtensionOfferingIdT&& value) {
47 m_capacityBlockExtensionOfferingIdHasBeenSet = true;
48 m_capacityBlockExtensionOfferingId = std::forward<CapacityBlockExtensionOfferingIdT>(value);
49 }
50 template <typename CapacityBlockExtensionOfferingIdT = Aws::String>
51 CapacityBlockExtensionOffering& WithCapacityBlockExtensionOfferingId(CapacityBlockExtensionOfferingIdT&& value) {
52 SetCapacityBlockExtensionOfferingId(std::forward<CapacityBlockExtensionOfferingIdT>(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>
70 SetInstanceType(std::forward<InstanceTypeT>(value));
71 return *this;
72 }
74
76
79 inline int GetInstanceCount() const { return m_instanceCount; }
80 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
81 inline void SetInstanceCount(int value) {
82 m_instanceCountHasBeenSet = true;
83 m_instanceCount = value;
84 }
86 SetInstanceCount(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
96 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
97 template <typename AvailabilityZoneT = Aws::String>
98 void SetAvailabilityZone(AvailabilityZoneT&& value) {
99 m_availabilityZoneHasBeenSet = true;
100 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
101 }
102 template <typename AvailabilityZoneT = Aws::String>
104 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
114 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
115 template <typename AvailabilityZoneIdT = Aws::String>
116 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
117 m_availabilityZoneIdHasBeenSet = true;
118 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
119 }
120 template <typename AvailabilityZoneIdT = Aws::String>
122 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
132 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
133 template <typename StartDateT = Aws::Utils::DateTime>
134 void SetStartDate(StartDateT&& value) {
135 m_startDateHasBeenSet = true;
136 m_startDate = std::forward<StartDateT>(value);
137 }
138 template <typename StartDateT = Aws::Utils::DateTime>
140 SetStartDate(std::forward<StartDateT>(value));
141 return *this;
142 }
144
146
151 inline const Aws::Utils::DateTime& GetCapacityBlockExtensionStartDate() const { return m_capacityBlockExtensionStartDate; }
152 inline bool CapacityBlockExtensionStartDateHasBeenSet() const { return m_capacityBlockExtensionStartDateHasBeenSet; }
153 template <typename CapacityBlockExtensionStartDateT = Aws::Utils::DateTime>
154 void SetCapacityBlockExtensionStartDate(CapacityBlockExtensionStartDateT&& value) {
155 m_capacityBlockExtensionStartDateHasBeenSet = true;
156 m_capacityBlockExtensionStartDate = std::forward<CapacityBlockExtensionStartDateT>(value);
157 }
158 template <typename CapacityBlockExtensionStartDateT = Aws::Utils::DateTime>
159 CapacityBlockExtensionOffering& WithCapacityBlockExtensionStartDate(CapacityBlockExtensionStartDateT&& value) {
160 SetCapacityBlockExtensionStartDate(std::forward<CapacityBlockExtensionStartDateT>(value));
161 return *this;
162 }
164
166
172 inline const Aws::Utils::DateTime& GetCapacityBlockExtensionEndDate() const { return m_capacityBlockExtensionEndDate; }
173 inline bool CapacityBlockExtensionEndDateHasBeenSet() const { return m_capacityBlockExtensionEndDateHasBeenSet; }
174 template <typename CapacityBlockExtensionEndDateT = Aws::Utils::DateTime>
175 void SetCapacityBlockExtensionEndDate(CapacityBlockExtensionEndDateT&& value) {
176 m_capacityBlockExtensionEndDateHasBeenSet = true;
177 m_capacityBlockExtensionEndDate = std::forward<CapacityBlockExtensionEndDateT>(value);
178 }
179 template <typename CapacityBlockExtensionEndDateT = Aws::Utils::DateTime>
180 CapacityBlockExtensionOffering& WithCapacityBlockExtensionEndDate(CapacityBlockExtensionEndDateT&& value) {
181 SetCapacityBlockExtensionEndDate(std::forward<CapacityBlockExtensionEndDateT>(value));
182 return *this;
183 }
185
187
190 inline int GetCapacityBlockExtensionDurationHours() const { return m_capacityBlockExtensionDurationHours; }
191 inline bool CapacityBlockExtensionDurationHoursHasBeenSet() const { return m_capacityBlockExtensionDurationHoursHasBeenSet; }
193 m_capacityBlockExtensionDurationHoursHasBeenSet = true;
194 m_capacityBlockExtensionDurationHours = value;
195 }
198 return *this;
199 }
201
203
207 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
208 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
209 template <typename UpfrontFeeT = Aws::String>
210 void SetUpfrontFee(UpfrontFeeT&& value) {
211 m_upfrontFeeHasBeenSet = true;
212 m_upfrontFee = std::forward<UpfrontFeeT>(value);
213 }
214 template <typename UpfrontFeeT = Aws::String>
216 SetUpfrontFee(std::forward<UpfrontFeeT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
226 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
227 template <typename CurrencyCodeT = Aws::String>
228 void SetCurrencyCode(CurrencyCodeT&& value) {
229 m_currencyCodeHasBeenSet = true;
230 m_currencyCode = std::forward<CurrencyCodeT>(value);
231 }
232 template <typename CurrencyCodeT = Aws::String>
234 SetCurrencyCode(std::forward<CurrencyCodeT>(value));
235 return *this;
236 }
238
240
248 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
249 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
251 m_tenancyHasBeenSet = true;
252 m_tenancy = value;
253 }
255 SetTenancy(value);
256 return *this;
257 }
259
261
265 inline const Aws::String& GetZoneType() const { return m_zoneType; }
266 inline bool ZoneTypeHasBeenSet() const { return m_zoneTypeHasBeenSet; }
267 template <typename ZoneTypeT = Aws::String>
268 void SetZoneType(ZoneTypeT&& value) {
269 m_zoneTypeHasBeenSet = true;
270 m_zoneType = std::forward<ZoneTypeT>(value);
271 }
272 template <typename ZoneTypeT = Aws::String>
274 SetZoneType(std::forward<ZoneTypeT>(value));
275 return *this;
276 }
278 private:
279 Aws::String m_capacityBlockExtensionOfferingId;
280
281 Aws::String m_instanceType;
282
283 int m_instanceCount{0};
284
285 Aws::String m_availabilityZone;
286
287 Aws::String m_availabilityZoneId;
288
289 Aws::Utils::DateTime m_startDate{};
290
291 Aws::Utils::DateTime m_capacityBlockExtensionStartDate{};
292
293 Aws::Utils::DateTime m_capacityBlockExtensionEndDate{};
294
295 int m_capacityBlockExtensionDurationHours{0};
296
297 Aws::String m_upfrontFee;
298
299 Aws::String m_currencyCode;
300
302
303 Aws::String m_zoneType;
304 bool m_capacityBlockExtensionOfferingIdHasBeenSet = false;
305 bool m_instanceTypeHasBeenSet = false;
306 bool m_instanceCountHasBeenSet = false;
307 bool m_availabilityZoneHasBeenSet = false;
308 bool m_availabilityZoneIdHasBeenSet = false;
309 bool m_startDateHasBeenSet = false;
310 bool m_capacityBlockExtensionStartDateHasBeenSet = false;
311 bool m_capacityBlockExtensionEndDateHasBeenSet = false;
312 bool m_capacityBlockExtensionDurationHoursHasBeenSet = false;
313 bool m_upfrontFeeHasBeenSet = false;
314 bool m_currencyCodeHasBeenSet = false;
315 bool m_tenancyHasBeenSet = false;
316 bool m_zoneTypeHasBeenSet = false;
317};
318
319} // namespace Model
320} // namespace EC2
321} // namespace Aws
const Aws::Utils::DateTime & GetCapacityBlockExtensionEndDate() const
CapacityBlockExtensionOffering & WithInstanceType(InstanceTypeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityBlockExtensionOffering & WithCapacityBlockExtensionOfferingId(CapacityBlockExtensionOfferingIdT &&value)
void SetCapacityBlockExtensionStartDate(CapacityBlockExtensionStartDateT &&value)
CapacityBlockExtensionOffering & WithCurrencyCode(CurrencyCodeT &&value)
CapacityBlockExtensionOffering & WithTenancy(CapacityReservationTenancy value)
CapacityBlockExtensionOffering & WithUpfrontFee(UpfrontFeeT &&value)
CapacityBlockExtensionOffering & WithCapacityBlockExtensionStartDate(CapacityBlockExtensionStartDateT &&value)
void SetCapacityBlockExtensionOfferingId(CapacityBlockExtensionOfferingIdT &&value)
CapacityBlockExtensionOffering & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
CapacityBlockExtensionOffering & WithCapacityBlockExtensionDurationHours(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API CapacityBlockExtensionOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityBlockExtensionOffering & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_EC2_API CapacityBlockExtensionOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCapacityBlockExtensionEndDate(CapacityBlockExtensionEndDateT &&value)
CapacityBlockExtensionOffering & WithInstanceCount(int value)
const Aws::Utils::DateTime & GetCapacityBlockExtensionStartDate() const
CapacityBlockExtensionOffering & WithCapacityBlockExtensionEndDate(CapacityBlockExtensionEndDateT &&value)
CapacityBlockExtensionOffering & WithZoneType(ZoneTypeT &&value)
CapacityBlockExtensionOffering & WithStartDate(StartDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream