AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCapacityBlockOfferingId(const Aws::String& value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId = value; }
52 inline void SetCapacityBlockOfferingId(Aws::String&& value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId = std::move(value); }
53 inline void SetCapacityBlockOfferingId(const char* value) { m_capacityBlockOfferingIdHasBeenSet = true; m_capacityBlockOfferingId.assign(value); }
56 inline CapacityBlockOffering& WithCapacityBlockOfferingId(const char* value) { SetCapacityBlockOfferingId(value); return *this;}
58
60
63 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
64 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
65 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
66 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
67 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
68 inline CapacityBlockOffering& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
69 inline CapacityBlockOffering& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
70 inline CapacityBlockOffering& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
72
74
77 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
78 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
79 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
80 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
81 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
82 inline CapacityBlockOffering& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
83 inline CapacityBlockOffering& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
84 inline CapacityBlockOffering& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
86
88
91 inline int GetInstanceCount() const{ return m_instanceCount; }
92 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
93 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
94 inline CapacityBlockOffering& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
102 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
103 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
104 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
105 inline CapacityBlockOffering& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
106 inline CapacityBlockOffering& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
114 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
115 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
116 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
117 inline CapacityBlockOffering& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
118 inline CapacityBlockOffering& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
120
122
125 inline int GetCapacityBlockDurationHours() const{ return m_capacityBlockDurationHours; }
126 inline bool CapacityBlockDurationHoursHasBeenSet() const { return m_capacityBlockDurationHoursHasBeenSet; }
127 inline void SetCapacityBlockDurationHours(int value) { m_capacityBlockDurationHoursHasBeenSet = true; m_capacityBlockDurationHours = value; }
130
132
135 inline const Aws::String& GetUpfrontFee() const{ return m_upfrontFee; }
136 inline bool UpfrontFeeHasBeenSet() const { return m_upfrontFeeHasBeenSet; }
137 inline void SetUpfrontFee(const Aws::String& value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee = value; }
138 inline void SetUpfrontFee(Aws::String&& value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee = std::move(value); }
139 inline void SetUpfrontFee(const char* value) { m_upfrontFeeHasBeenSet = true; m_upfrontFee.assign(value); }
140 inline CapacityBlockOffering& WithUpfrontFee(const Aws::String& value) { SetUpfrontFee(value); return *this;}
141 inline CapacityBlockOffering& WithUpfrontFee(Aws::String&& value) { SetUpfrontFee(std::move(value)); return *this;}
142 inline CapacityBlockOffering& WithUpfrontFee(const char* value) { SetUpfrontFee(value); return *this;}
144
146
149 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
150 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
151 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
152 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
153 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
154 inline CapacityBlockOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
155 inline CapacityBlockOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
156 inline CapacityBlockOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
158
160
163 inline const CapacityReservationTenancy& GetTenancy() const{ return m_tenancy; }
164 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
165 inline void SetTenancy(const CapacityReservationTenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
166 inline void SetTenancy(CapacityReservationTenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
167 inline CapacityBlockOffering& WithTenancy(const CapacityReservationTenancy& value) { SetTenancy(value); return *this;}
168 inline CapacityBlockOffering& WithTenancy(CapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;}
170 private:
171
172 Aws::String m_capacityBlockOfferingId;
173 bool m_capacityBlockOfferingIdHasBeenSet = false;
174
175 Aws::String m_instanceType;
176 bool m_instanceTypeHasBeenSet = false;
177
178 Aws::String m_availabilityZone;
179 bool m_availabilityZoneHasBeenSet = false;
180
181 int m_instanceCount;
182 bool m_instanceCountHasBeenSet = false;
183
184 Aws::Utils::DateTime m_startDate;
185 bool m_startDateHasBeenSet = false;
186
187 Aws::Utils::DateTime m_endDate;
188 bool m_endDateHasBeenSet = false;
189
190 int m_capacityBlockDurationHours;
191 bool m_capacityBlockDurationHoursHasBeenSet = false;
192
193 Aws::String m_upfrontFee;
194 bool m_upfrontFeeHasBeenSet = false;
195
196 Aws::String m_currencyCode;
197 bool m_currencyCodeHasBeenSet = false;
198
200 bool m_tenancyHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace EC2
205} // namespace Aws
CapacityBlockOffering & WithUpfrontFee(const Aws::String &value)
CapacityBlockOffering & WithCurrencyCode(const Aws::String &value)
const Aws::String & GetInstanceType() const
CapacityBlockOffering & WithAvailabilityZone(const char *value)
void SetStartDate(const Aws::Utils::DateTime &value)
void SetCapacityBlockOfferingId(const Aws::String &value)
CapacityBlockOffering & WithUpfrontFee(Aws::String &&value)
const Aws::String & GetCapacityBlockOfferingId() const
CapacityBlockOffering & WithCurrencyCode(Aws::String &&value)
void SetEndDate(const Aws::Utils::DateTime &value)
CapacityBlockOffering & WithInstanceType(Aws::String &&value)
CapacityBlockOffering & WithStartDate(Aws::Utils::DateTime &&value)
CapacityBlockOffering & WithCapacityBlockOfferingId(Aws::String &&value)
const Aws::Utils::DateTime & GetStartDate() const
void SetCapacityBlockOfferingId(Aws::String &&value)
CapacityBlockOffering & WithCurrencyCode(const char *value)
AWS_EC2_API CapacityBlockOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityBlockOffering & WithEndDate(const Aws::Utils::DateTime &value)
void SetStartDate(Aws::Utils::DateTime &&value)
const CapacityReservationTenancy & GetTenancy() const
const Aws::Utils::DateTime & GetEndDate() const
CapacityBlockOffering & WithCapacityBlockOfferingId(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CapacityBlockOffering & WithStartDate(const Aws::Utils::DateTime &value)
void SetTenancy(CapacityReservationTenancy &&value)
CapacityBlockOffering & WithUpfrontFee(const char *value)
CapacityBlockOffering & WithInstanceCount(int value)
void SetTenancy(const CapacityReservationTenancy &value)
void SetCurrencyCode(const Aws::String &value)
CapacityBlockOffering & WithEndDate(Aws::Utils::DateTime &&value)
CapacityBlockOffering & WithTenancy(const CapacityReservationTenancy &value)
const Aws::String & GetAvailabilityZone() const
CapacityBlockOffering & WithCapacityBlockDurationHours(int value)
CapacityBlockOffering & WithAvailabilityZone(const Aws::String &value)
CapacityBlockOffering & WithTenancy(CapacityReservationTenancy &&value)
void SetAvailabilityZone(const Aws::String &value)
CapacityBlockOffering & WithInstanceType(const Aws::String &value)
CapacityBlockOffering & WithCapacityBlockOfferingId(const Aws::String &value)
void SetInstanceType(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetEndDate(Aws::Utils::DateTime &&value)
void SetUpfrontFee(const Aws::String &value)
AWS_EC2_API CapacityBlockOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
CapacityBlockOffering & WithAvailabilityZone(Aws::String &&value)
CapacityBlockOffering & WithInstanceType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream