AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CapacityBlockOffering.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/CapacityReservationTenancy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace EC2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_EC2_API CapacityBlockOffering() = default;
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetCapacityBlockOfferingId() const { return m_capacityBlockOfferingId; }
50 inline bool CapacityBlockOfferingIdHasBeenSet() const { return m_capacityBlockOfferingIdHasBeenSet; }
51 template<typename CapacityBlockOfferingIdT = Aws::String>
52 void SetCapacityBlockOfferingId(CapacityBlockOfferingIdT&& value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId = std::forward<CapacityBlockOfferingIdT>(value); }
53 template<typename CapacityBlockOfferingIdT = Aws::String>
54 CapacityBlockOffering& WithCapacityBlockOfferingId(CapacityBlockOfferingIdT&& value) { SetCapacityBlockOfferingId(std::forward<CapacityBlockOfferingIdT>(value)); return *this;}
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) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
65 template<typename InstanceTypeT = Aws::String>
66 CapacityBlockOffering& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
74 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
75 template<typename AvailabilityZoneT = Aws::String>
76 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
77 template<typename AvailabilityZoneT = Aws::String>
78 CapacityBlockOffering& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
80
82
85 inline int GetInstanceCount() const { return m_instanceCount; }
86 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
87 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
88 inline CapacityBlockOffering& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
96 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
97 template<typename StartDateT = Aws::Utils::DateTime>
98 void SetStartDate(StartDateT&& value) { m_startDateHasBeenSet = true; m_startDate = std::forward<StartDateT>(value); }
99 template<typename StartDateT = Aws::Utils::DateTime>
100 CapacityBlockOffering& WithStartDate(StartDateT&& value) { SetStartDate(std::forward<StartDateT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
108 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
109 template<typename EndDateT = Aws::Utils::DateTime>
110 void SetEndDate(EndDateT&& value) { m_endDateHasBeenSet = true; m_endDate = std::forward<EndDateT>(value); }
111 template<typename EndDateT = Aws::Utils::DateTime>
112 CapacityBlockOffering& WithEndDate(EndDateT&& value) { SetEndDate(std::forward<EndDateT>(value)); return *this;}
114
116
122 inline int GetCapacityBlockDurationHours() const { return m_capacityBlockDurationHours; }
123 inline bool CapacityBlockDurationHoursHasBeenSet() const { return m_capacityBlockDurationHoursHasBeenSet; }
124 inline void SetCapacityBlockDurationHours(int value) { m_capacityBlockDurationHoursHasBeenSet = true; m_capacityBlockDurationHours = value; }
127
129
132 inline const Aws::String& GetUpfrontFee() const { return m_upfrontFee; }
133 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
134 template<typename UpfrontFeeT = Aws::String>
135 void SetUpfrontFee(UpfrontFeeT&& value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee = std::forward<UpfrontFeeT>(value); }
136 template<typename UpfrontFeeT = Aws::String>
137 CapacityBlockOffering& WithUpfrontFee(UpfrontFeeT&& value) { SetUpfrontFee(std::forward<UpfrontFeeT>(value)); return *this;}
139
141
144 inline const Aws::String& GetCurrencyCode() const { return m_currencyCode; }
145 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
146 template<typename CurrencyCodeT = Aws::String>
147 void SetCurrencyCode(CurrencyCodeT&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::forward<CurrencyCodeT>(value); }
148 template<typename CurrencyCodeT = Aws::String>
149 CapacityBlockOffering& WithCurrencyCode(CurrencyCodeT&& value) { SetCurrencyCode(std::forward<CurrencyCodeT>(value)); return *this;}
151
153
156 inline CapacityReservationTenancy GetTenancy() const { return m_tenancy; }
157 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
158 inline void SetTenancy(CapacityReservationTenancy value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
161
163
166 inline const Aws::String& GetUltraserverType() const { return m_ultraserverType; }
167 inline bool UltraserverTypeHasBeenSet() const { return m_ultraserverTypeHasBeenSet; }
168 template<typename UltraserverTypeT = Aws::String>
169 void SetUltraserverType(UltraserverTypeT&& value) { m_ultraserverTypeHasBeenSet = true; m_ultraserverType = std::forward<UltraserverTypeT>(value); }
170 template<typename UltraserverTypeT = Aws::String>
171 CapacityBlockOffering& WithUltraserverType(UltraserverTypeT&& value) { SetUltraserverType(std::forward<UltraserverTypeT>(value)); return *this;}
173
175
178 inline int GetUltraserverCount() const { return m_ultraserverCount; }
179 inline bool UltraserverCountHasBeenSet() const { return m_ultraserverCountHasBeenSet; }
180 inline void SetUltraserverCount(int value) { m_ultraserverCountHasBeenSet = true; m_ultraserverCount = value; }
181 inline CapacityBlockOffering& WithUltraserverCount(int value) { SetUltraserverCount(value); return *this;}
183
185
191 inline int GetCapacityBlockDurationMinutes() const { return m_capacityBlockDurationMinutes; }
192 inline bool CapacityBlockDurationMinutesHasBeenSet() const { return m_capacityBlockDurationMinutesHasBeenSet; }
193 inline void SetCapacityBlockDurationMinutes(int value) { m_capacityBlockDurationMinutesHasBeenSet = true; m_capacityBlockDurationMinutes = value; }
196 private:
197
198 Aws::String m_capacityBlockOfferingId;
199 bool m_capacityBlockOfferingIdHasBeenSet = false;
200
201 Aws::String m_instanceType;
202 bool m_instanceTypeHasBeenSet = false;
203
204 Aws::String m_availabilityZone;
205 bool m_availabilityZoneHasBeenSet = false;
206
207 int m_instanceCount{0};
208 bool m_instanceCountHasBeenSet = false;
209
210 Aws::Utils::DateTime m_startDate{};
211 bool m_startDateHasBeenSet = false;
212
213 Aws::Utils::DateTime m_endDate{};
214 bool m_endDateHasBeenSet = false;
215
216 int m_capacityBlockDurationHours{0};
217 bool m_capacityBlockDurationHoursHasBeenSet = false;
218
219 Aws::String m_upfrontFee;
220 bool m_upfrontFeeHasBeenSet = false;
221
222 Aws::String m_currencyCode;
223 bool m_currencyCodeHasBeenSet = false;
224
226 bool m_tenancyHasBeenSet = false;
227
228 Aws::String m_ultraserverType;
229 bool m_ultraserverTypeHasBeenSet = false;
230
231 int m_ultraserverCount{0};
232 bool m_ultraserverCountHasBeenSet = false;
233
234 int m_capacityBlockDurationMinutes{0};
235 bool m_capacityBlockDurationMinutesHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace EC2
240} // 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