AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedDBInstance.h
1
6#pragma once
7#include <aws/rds/RDS_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/core/utils/memory/stl/AWSVector.h>
12#include <aws/rds/model/RecurringCharge.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace RDS
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_RDS_API ReservedDBInstance();
41 AWS_RDS_API ReservedDBInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetReservedDBInstanceId() const{ return m_reservedDBInstanceId; }
53 inline bool ReservedDBInstanceIdHasBeenSet() const { return m_reservedDBInstanceIdHasBeenSet; }
54 inline void SetReservedDBInstanceId(const Aws::String& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = value; }
55 inline void SetReservedDBInstanceId(Aws::String&& value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId = std::move(value); }
56 inline void SetReservedDBInstanceId(const char* value) { m_reservedDBInstanceIdHasBeenSet = true; m_reservedDBInstanceId.assign(value); }
58 inline ReservedDBInstance& WithReservedDBInstanceId(Aws::String&& value) { SetReservedDBInstanceId(std::move(value)); return *this;}
59 inline ReservedDBInstance& WithReservedDBInstanceId(const char* value) { SetReservedDBInstanceId(value); return *this;}
61
63
66 inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
67 inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
68 inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
69 inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
70 inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
75
77
80 inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
81 inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
82 inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
83 inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
84 inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
85 inline ReservedDBInstance& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
86 inline ReservedDBInstance& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
87 inline ReservedDBInstance& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
95 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
96 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
97 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
98 inline ReservedDBInstance& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
99 inline ReservedDBInstance& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
101
103
106 inline int GetDuration() const{ return m_duration; }
107 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
108 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
109 inline ReservedDBInstance& WithDuration(int value) { SetDuration(value); return *this;}
111
113
116 inline double GetFixedPrice() const{ return m_fixedPrice; }
117 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
118 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
119 inline ReservedDBInstance& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
121
123
126 inline double GetUsagePrice() const{ return m_usagePrice; }
127 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
128 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
129 inline ReservedDBInstance& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
131
133
136 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
137 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
138 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
139 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
140 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
141 inline ReservedDBInstance& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
142 inline ReservedDBInstance& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
143 inline ReservedDBInstance& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
145
147
150 inline int GetDBInstanceCount() const{ return m_dBInstanceCount; }
151 inline bool DBInstanceCountHasBeenSet() const { return m_dBInstanceCountHasBeenSet; }
152 inline void SetDBInstanceCount(int value) { m_dBInstanceCountHasBeenSet = true; m_dBInstanceCount = value; }
153 inline ReservedDBInstance& WithDBInstanceCount(int value) { SetDBInstanceCount(value); return *this;}
155
157
160 inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
161 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
162 inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
163 inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
164 inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
165 inline ReservedDBInstance& WithProductDescription(const Aws::String& value) { SetProductDescription(value); return *this;}
166 inline ReservedDBInstance& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
167 inline ReservedDBInstance& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
169
171
174 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
175 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
176 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
177 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
178 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
179 inline ReservedDBInstance& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
180 inline ReservedDBInstance& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
181 inline ReservedDBInstance& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
183
185
188 inline bool GetMultiAZ() const{ return m_multiAZ; }
189 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
190 inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
191 inline ReservedDBInstance& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
193
195
198 inline const Aws::String& GetState() const{ return m_state; }
199 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
200 inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
201 inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
202 inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
203 inline ReservedDBInstance& WithState(const Aws::String& value) { SetState(value); return *this;}
204 inline ReservedDBInstance& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
205 inline ReservedDBInstance& WithState(const char* value) { SetState(value); return *this;}
207
209
212 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
213 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
214 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
215 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
218 inline ReservedDBInstance& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
219 inline ReservedDBInstance& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
221
223
226 inline const Aws::String& GetReservedDBInstanceArn() const{ return m_reservedDBInstanceArn; }
227 inline bool ReservedDBInstanceArnHasBeenSet() const { return m_reservedDBInstanceArnHasBeenSet; }
228 inline void SetReservedDBInstanceArn(const Aws::String& value) { m_reservedDBInstanceArnHasBeenSet = true; m_reservedDBInstanceArn = value; }
229 inline void SetReservedDBInstanceArn(Aws::String&& value) { m_reservedDBInstanceArnHasBeenSet = true; m_reservedDBInstanceArn = std::move(value); }
230 inline void SetReservedDBInstanceArn(const char* value) { m_reservedDBInstanceArnHasBeenSet = true; m_reservedDBInstanceArn.assign(value); }
232 inline ReservedDBInstance& WithReservedDBInstanceArn(Aws::String&& value) { SetReservedDBInstanceArn(std::move(value)); return *this;}
233 inline ReservedDBInstance& WithReservedDBInstanceArn(const char* value) { SetReservedDBInstanceArn(value); return *this;}
235
237
242 inline const Aws::String& GetLeaseId() const{ return m_leaseId; }
243 inline bool LeaseIdHasBeenSet() const { return m_leaseIdHasBeenSet; }
244 inline void SetLeaseId(const Aws::String& value) { m_leaseIdHasBeenSet = true; m_leaseId = value; }
245 inline void SetLeaseId(Aws::String&& value) { m_leaseIdHasBeenSet = true; m_leaseId = std::move(value); }
246 inline void SetLeaseId(const char* value) { m_leaseIdHasBeenSet = true; m_leaseId.assign(value); }
247 inline ReservedDBInstance& WithLeaseId(const Aws::String& value) { SetLeaseId(value); return *this;}
248 inline ReservedDBInstance& WithLeaseId(Aws::String&& value) { SetLeaseId(std::move(value)); return *this;}
249 inline ReservedDBInstance& WithLeaseId(const char* value) { SetLeaseId(value); return *this;}
251 private:
252
253 Aws::String m_reservedDBInstanceId;
254 bool m_reservedDBInstanceIdHasBeenSet = false;
255
256 Aws::String m_reservedDBInstancesOfferingId;
257 bool m_reservedDBInstancesOfferingIdHasBeenSet = false;
258
259 Aws::String m_dBInstanceClass;
260 bool m_dBInstanceClassHasBeenSet = false;
261
262 Aws::Utils::DateTime m_startTime;
263 bool m_startTimeHasBeenSet = false;
264
265 int m_duration;
266 bool m_durationHasBeenSet = false;
267
268 double m_fixedPrice;
269 bool m_fixedPriceHasBeenSet = false;
270
271 double m_usagePrice;
272 bool m_usagePriceHasBeenSet = false;
273
274 Aws::String m_currencyCode;
275 bool m_currencyCodeHasBeenSet = false;
276
277 int m_dBInstanceCount;
278 bool m_dBInstanceCountHasBeenSet = false;
279
280 Aws::String m_productDescription;
281 bool m_productDescriptionHasBeenSet = false;
282
283 Aws::String m_offeringType;
284 bool m_offeringTypeHasBeenSet = false;
285
286 bool m_multiAZ;
287 bool m_multiAZHasBeenSet = false;
288
289 Aws::String m_state;
290 bool m_stateHasBeenSet = false;
291
292 Aws::Vector<RecurringCharge> m_recurringCharges;
293 bool m_recurringChargesHasBeenSet = false;
294
295 Aws::String m_reservedDBInstanceArn;
296 bool m_reservedDBInstanceArnHasBeenSet = false;
297
298 Aws::String m_leaseId;
299 bool m_leaseIdHasBeenSet = false;
300 };
301
302} // namespace Model
303} // namespace RDS
304} // namespace Aws
void SetReservedDBInstanceId(const Aws::String &value)
ReservedDBInstance & WithDBInstanceClass(const Aws::String &value)
void SetState(const Aws::String &value)
void SetReservedDBInstanceArn(const Aws::String &value)
ReservedDBInstance & WithUsagePrice(double value)
void SetOfferingType(Aws::String &&value)
const Aws::String & GetState() const
ReservedDBInstance & WithProductDescription(const char *value)
ReservedDBInstance & WithLeaseId(Aws::String &&value)
const Aws::String & GetProductDescription() const
ReservedDBInstance & WithLeaseId(const Aws::String &value)
ReservedDBInstance & WithReservedDBInstanceId(Aws::String &&value)
ReservedDBInstance & WithProductDescription(Aws::String &&value)
void SetReservedDBInstanceId(Aws::String &&value)
const Aws::String & GetDBInstanceClass() const
ReservedDBInstance & WithReservedDBInstancesOfferingId(Aws::String &&value)
ReservedDBInstance & WithReservedDBInstancesOfferingId(const Aws::String &value)
void SetReservedDBInstanceArn(Aws::String &&value)
ReservedDBInstance & WithStartTime(Aws::Utils::DateTime &&value)
AWS_RDS_API ReservedDBInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedDBInstance & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedDBInstance & WithCurrencyCode(const char *value)
ReservedDBInstance & WithOfferingType(Aws::String &&value)
ReservedDBInstance & WithStartTime(const Aws::Utils::DateTime &value)
ReservedDBInstance & WithDBInstanceCount(int value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedDBInstance & WithState(const char *value)
void SetReservedDBInstanceArn(const char *value)
ReservedDBInstance & WithState(const Aws::String &value)
ReservedDBInstance & WithMultiAZ(bool value)
AWS_RDS_API ReservedDBInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedDBInstance & WithCurrencyCode(Aws::String &&value)
const Aws::String & GetReservedDBInstanceArn() const
void SetProductDescription(const Aws::String &value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedDBInstance & WithReservedDBInstanceArn(const Aws::String &value)
const Aws::String & GetLeaseId() const
ReservedDBInstance & WithReservedDBInstanceId(const char *value)
void SetLeaseId(const Aws::String &value)
const Aws::String & GetReservedDBInstancesOfferingId() const
ReservedDBInstance & WithReservedDBInstanceId(const Aws::String &value)
ReservedDBInstance & WithDBInstanceClass(const char *value)
void SetReservedDBInstancesOfferingId(const char *value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedDBInstance & AddRecurringCharges(const RecurringCharge &value)
ReservedDBInstance & WithLeaseId(const char *value)
ReservedDBInstance & WithDBInstanceClass(Aws::String &&value)
ReservedDBInstance & AddRecurringCharges(RecurringCharge &&value)
void SetProductDescription(const char *value)
ReservedDBInstance & WithOfferingType(const char *value)
ReservedDBInstance & WithCurrencyCode(const Aws::String &value)
void SetCurrencyCode(Aws::String &&value)
const Aws::String & GetCurrencyCode() const
ReservedDBInstance & WithReservedDBInstanceArn(const char *value)
void SetCurrencyCode(const Aws::String &value)
ReservedDBInstance & WithReservedDBInstanceArn(Aws::String &&value)
void SetDBInstanceClass(const char *value)
const Aws::String & GetOfferingType() const
ReservedDBInstance & WithReservedDBInstancesOfferingId(const char *value)
ReservedDBInstance & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetStartTime(Aws::Utils::DateTime &&value)
void SetReservedDBInstanceId(const char *value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetStartTime() const
ReservedDBInstance & WithDuration(int value)
void SetProductDescription(Aws::String &&value)
void SetDBInstanceClass(const Aws::String &value)
ReservedDBInstance & WithState(Aws::String &&value)
const Aws::String & GetReservedDBInstanceId() const
ReservedDBInstance & WithFixedPrice(double value)
void SetReservedDBInstancesOfferingId(const Aws::String &value)
void SetOfferingType(const Aws::String &value)
void SetDBInstanceClass(Aws::String &&value)
ReservedDBInstance & WithProductDescription(const Aws::String &value)
ReservedDBInstance & WithOfferingType(const Aws::String &value)
void SetReservedDBInstancesOfferingId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream