AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedDBInstancesOffering.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/memory/stl/AWSVector.h>
11#include <aws/rds/model/RecurringCharge.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace RDS
24{
25namespace Model
26{
27
36 {
37 public:
41
42 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetReservedDBInstancesOfferingId() const{ return m_reservedDBInstancesOfferingId; }
51 inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
52 inline void SetReservedDBInstancesOfferingId(const Aws::String& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = value; }
53 inline void SetReservedDBInstancesOfferingId(Aws::String&& value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId = std::move(value); }
54 inline void SetReservedDBInstancesOfferingId(const char* value) { m_reservedDBInstancesOfferingIdHasBeenSet = true; m_reservedDBInstancesOfferingId.assign(value); }
59
61
64 inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
65 inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
66 inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
67 inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
68 inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
70 inline ReservedDBInstancesOffering& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
71 inline ReservedDBInstancesOffering& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
73
75
78 inline int GetDuration() const{ return m_duration; }
79 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
80 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
81 inline ReservedDBInstancesOffering& WithDuration(int value) { SetDuration(value); return *this;}
83
85
88 inline double GetFixedPrice() const{ return m_fixedPrice; }
89 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
90 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
91 inline ReservedDBInstancesOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
93
95
98 inline double GetUsagePrice() const{ return m_usagePrice; }
99 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
100 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
101 inline ReservedDBInstancesOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
103
105
108 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
109 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
110 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
111 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
112 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
113 inline ReservedDBInstancesOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
114 inline ReservedDBInstancesOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
115 inline ReservedDBInstancesOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
117
119
122 inline const Aws::String& GetProductDescription() const{ return m_productDescription; }
123 inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
124 inline void SetProductDescription(const Aws::String& value) { m_productDescriptionHasBeenSet = true; m_productDescription = value; }
125 inline void SetProductDescription(Aws::String&& value) { m_productDescriptionHasBeenSet = true; m_productDescription = std::move(value); }
126 inline void SetProductDescription(const char* value) { m_productDescriptionHasBeenSet = true; m_productDescription.assign(value); }
128 inline ReservedDBInstancesOffering& WithProductDescription(Aws::String&& value) { SetProductDescription(std::move(value)); return *this;}
129 inline ReservedDBInstancesOffering& WithProductDescription(const char* value) { SetProductDescription(value); return *this;}
131
133
136 inline const Aws::String& GetOfferingType() const{ return m_offeringType; }
137 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
138 inline void SetOfferingType(const Aws::String& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
139 inline void SetOfferingType(Aws::String&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
140 inline void SetOfferingType(const char* value) { m_offeringTypeHasBeenSet = true; m_offeringType.assign(value); }
141 inline ReservedDBInstancesOffering& WithOfferingType(const Aws::String& value) { SetOfferingType(value); return *this;}
142 inline ReservedDBInstancesOffering& WithOfferingType(Aws::String&& value) { SetOfferingType(std::move(value)); return *this;}
143 inline ReservedDBInstancesOffering& WithOfferingType(const char* value) { SetOfferingType(value); return *this;}
145
147
150 inline bool GetMultiAZ() const{ return m_multiAZ; }
151 inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
152 inline void SetMultiAZ(bool value) { m_multiAZHasBeenSet = true; m_multiAZ = value; }
153 inline ReservedDBInstancesOffering& WithMultiAZ(bool value) { SetMultiAZ(value); return *this;}
155
157
160 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
161 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
162 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
163 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
166 inline ReservedDBInstancesOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
167 inline ReservedDBInstancesOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
169 private:
170
171 Aws::String m_reservedDBInstancesOfferingId;
172 bool m_reservedDBInstancesOfferingIdHasBeenSet = false;
173
174 Aws::String m_dBInstanceClass;
175 bool m_dBInstanceClassHasBeenSet = false;
176
177 int m_duration;
178 bool m_durationHasBeenSet = false;
179
180 double m_fixedPrice;
181 bool m_fixedPriceHasBeenSet = false;
182
183 double m_usagePrice;
184 bool m_usagePriceHasBeenSet = false;
185
186 Aws::String m_currencyCode;
187 bool m_currencyCodeHasBeenSet = false;
188
189 Aws::String m_productDescription;
190 bool m_productDescriptionHasBeenSet = false;
191
192 Aws::String m_offeringType;
193 bool m_offeringTypeHasBeenSet = false;
194
195 bool m_multiAZ;
196 bool m_multiAZHasBeenSet = false;
197
198 Aws::Vector<RecurringCharge> m_recurringCharges;
199 bool m_recurringChargesHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace RDS
204} // namespace Aws
ReservedDBInstancesOffering & WithOfferingType(const Aws::String &value)
ReservedDBInstancesOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedDBInstancesOffering & WithFixedPrice(double value)
ReservedDBInstancesOffering & WithDuration(int value)
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedDBInstancesOffering & AddRecurringCharges(const RecurringCharge &value)
ReservedDBInstancesOffering & WithCurrencyCode(Aws::String &&value)
ReservedDBInstancesOffering & WithReservedDBInstancesOfferingId(Aws::String &&value)
void SetReservedDBInstancesOfferingId(const Aws::String &value)
ReservedDBInstancesOffering & WithOfferingType(const char *value)
ReservedDBInstancesOffering & WithOfferingType(Aws::String &&value)
AWS_RDS_API ReservedDBInstancesOffering(const Aws::Utils::Xml::XmlNode &xmlNode)
ReservedDBInstancesOffering & WithDBInstanceClass(const Aws::String &value)
ReservedDBInstancesOffering & WithReservedDBInstancesOfferingId(const Aws::String &value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ReservedDBInstancesOffering & WithCurrencyCode(const char *value)
ReservedDBInstancesOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedDBInstancesOffering & WithMultiAZ(bool value)
ReservedDBInstancesOffering & WithCurrencyCode(const Aws::String &value)
ReservedDBInstancesOffering & WithReservedDBInstancesOfferingId(const char *value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedDBInstancesOffering & WithDBInstanceClass(Aws::String &&value)
ReservedDBInstancesOffering & WithProductDescription(const char *value)
ReservedDBInstancesOffering & WithDBInstanceClass(const char *value)
AWS_RDS_API ReservedDBInstancesOffering & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ReservedDBInstancesOffering & WithProductDescription(Aws::String &&value)
ReservedDBInstancesOffering & WithProductDescription(const Aws::String &value)
ReservedDBInstancesOffering & WithUsagePrice(double value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedDBInstancesOffering & AddRecurringCharges(RecurringCharge &&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