AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedElasticsearchInstanceOffering.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/model/ESPartitionInstanceType.h>
10#include <aws/es/model/ReservedElasticsearchInstancePaymentOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/es/model/RecurringCharge.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ElasticsearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstanceOffering();
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetReservedElasticsearchInstanceOfferingId() const{ return m_reservedElasticsearchInstanceOfferingId; }
50 inline bool ReservedElasticsearchInstanceOfferingIdHasBeenSet() const { return m_reservedElasticsearchInstanceOfferingIdHasBeenSet; }
51 inline void SetReservedElasticsearchInstanceOfferingId(const Aws::String& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = value; }
52 inline void SetReservedElasticsearchInstanceOfferingId(Aws::String&& value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId = std::move(value); }
53 inline void SetReservedElasticsearchInstanceOfferingId(const char* value) { m_reservedElasticsearchInstanceOfferingIdHasBeenSet = true; m_reservedElasticsearchInstanceOfferingId.assign(value); }
58
60
64 inline const ESPartitionInstanceType& GetElasticsearchInstanceType() const{ return m_elasticsearchInstanceType; }
65 inline bool ElasticsearchInstanceTypeHasBeenSet() const { return m_elasticsearchInstanceTypeHasBeenSet; }
66 inline void SetElasticsearchInstanceType(const ESPartitionInstanceType& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = value; }
67 inline void SetElasticsearchInstanceType(ESPartitionInstanceType&& value) { m_elasticsearchInstanceTypeHasBeenSet = true; m_elasticsearchInstanceType = std::move(value); }
71
73
77 inline int GetDuration() const{ return m_duration; }
78 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
79 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
80 inline ReservedElasticsearchInstanceOffering& WithDuration(int value) { SetDuration(value); return *this;}
82
84
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 ReservedElasticsearchInstanceOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
93
95
99 inline double GetUsagePrice() const{ return m_usagePrice; }
100 inline bool UsagePriceHasBeenSet() const { return m_usagePriceHasBeenSet; }
101 inline void SetUsagePrice(double value) { m_usagePriceHasBeenSet = true; m_usagePrice = value; }
102 inline ReservedElasticsearchInstanceOffering& WithUsagePrice(double value) { SetUsagePrice(value); return *this;}
104
106
109 inline const Aws::String& GetCurrencyCode() const{ return m_currencyCode; }
110 inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; }
111 inline void SetCurrencyCode(const Aws::String& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = value; }
112 inline void SetCurrencyCode(Aws::String&& value) { m_currencyCodeHasBeenSet = true; m_currencyCode = std::move(value); }
113 inline void SetCurrencyCode(const char* value) { m_currencyCodeHasBeenSet = true; m_currencyCode.assign(value); }
115 inline ReservedElasticsearchInstanceOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
116 inline ReservedElasticsearchInstanceOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
118
120
123 inline const ReservedElasticsearchInstancePaymentOption& GetPaymentOption() const{ return m_paymentOption; }
124 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
125 inline void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
126 inline void SetPaymentOption(ReservedElasticsearchInstancePaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
130
132
136 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
137 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
138 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
139 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
142 inline ReservedElasticsearchInstanceOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
143 inline ReservedElasticsearchInstanceOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
145 private:
146
147 Aws::String m_reservedElasticsearchInstanceOfferingId;
148 bool m_reservedElasticsearchInstanceOfferingIdHasBeenSet = false;
149
150 ESPartitionInstanceType m_elasticsearchInstanceType;
151 bool m_elasticsearchInstanceTypeHasBeenSet = false;
152
153 int m_duration;
154 bool m_durationHasBeenSet = false;
155
156 double m_fixedPrice;
157 bool m_fixedPriceHasBeenSet = false;
158
159 double m_usagePrice;
160 bool m_usagePriceHasBeenSet = false;
161
162 Aws::String m_currencyCode;
163 bool m_currencyCodeHasBeenSet = false;
164
166 bool m_paymentOptionHasBeenSet = false;
167
168 Aws::Vector<RecurringCharge> m_recurringCharges;
169 bool m_recurringChargesHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace ElasticsearchService
174} // namespace Aws
ReservedElasticsearchInstanceOffering & WithCurrencyCode(Aws::String &&value)
ReservedElasticsearchInstanceOffering & WithPaymentOption(ReservedElasticsearchInstancePaymentOption &&value)
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(const char *value)
ReservedElasticsearchInstanceOffering & AddRecurringCharges(RecurringCharge &&value)
ReservedElasticsearchInstanceOffering & WithPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
ReservedElasticsearchInstanceOffering & AddRecurringCharges(const RecurringCharge &value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstanceOffering(Aws::Utils::Json::JsonView jsonValue)
ReservedElasticsearchInstanceOffering & WithElasticsearchInstanceType(ESPartitionInstanceType &&value)
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(Aws::String &&value)
ReservedElasticsearchInstanceOffering & WithElasticsearchInstanceType(const ESPartitionInstanceType &value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ReservedElasticsearchInstanceOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedElasticsearchInstanceOffering & WithReservedElasticsearchInstanceOfferingId(const Aws::String &value)
ReservedElasticsearchInstanceOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedElasticsearchInstanceOffering & WithCurrencyCode(const Aws::String &value)
void SetPaymentOption(const ReservedElasticsearchInstancePaymentOption &value)
AWS_ELASTICSEARCHSERVICE_API ReservedElasticsearchInstanceOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue