AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReservedInstanceOffering.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/model/OpenSearchPartitionInstanceType.h>
10#include <aws/opensearch/model/ReservedInstancePaymentOption.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opensearch/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 OpenSearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering();
40 AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetReservedInstanceOfferingId() const{ return m_reservedInstanceOfferingId; }
50 inline bool ReservedInstanceOfferingIdHasBeenSet() const { return m_reservedInstanceOfferingIdHasBeenSet; }
51 inline void SetReservedInstanceOfferingId(const Aws::String& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = value; }
52 inline void SetReservedInstanceOfferingId(Aws::String&& value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId = std::move(value); }
53 inline void SetReservedInstanceOfferingId(const char* value) { m_reservedInstanceOfferingIdHasBeenSet = true; m_reservedInstanceOfferingId.assign(value); }
58
60
63 inline const OpenSearchPartitionInstanceType& GetInstanceType() const{ return m_instanceType; }
64 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
65 inline void SetInstanceType(const OpenSearchPartitionInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
66 inline void SetInstanceType(OpenSearchPartitionInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
70
72
76 inline int GetDuration() const{ return m_duration; }
77 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
78 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
79 inline ReservedInstanceOffering& WithDuration(int value) { SetDuration(value); return *this;}
81
83
87 inline double GetFixedPrice() const{ return m_fixedPrice; }
88 inline bool FixedPriceHasBeenSet() const { return m_fixedPriceHasBeenSet; }
89 inline void SetFixedPrice(double value) { m_fixedPriceHasBeenSet = true; m_fixedPrice = value; }
90 inline ReservedInstanceOffering& WithFixedPrice(double value) { SetFixedPrice(value); return *this;}
92
94
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 ReservedInstanceOffering& 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 ReservedInstanceOffering& WithCurrencyCode(const Aws::String& value) { SetCurrencyCode(value); return *this;}
114 inline ReservedInstanceOffering& WithCurrencyCode(Aws::String&& value) { SetCurrencyCode(std::move(value)); return *this;}
115 inline ReservedInstanceOffering& WithCurrencyCode(const char* value) { SetCurrencyCode(value); return *this;}
117
119
122 inline const ReservedInstancePaymentOption& GetPaymentOption() const{ return m_paymentOption; }
123 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
124 inline void SetPaymentOption(const ReservedInstancePaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
125 inline void SetPaymentOption(ReservedInstancePaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
129
131
135 inline const Aws::Vector<RecurringCharge>& GetRecurringCharges() const{ return m_recurringCharges; }
136 inline bool RecurringChargesHasBeenSet() const { return m_recurringChargesHasBeenSet; }
137 inline void SetRecurringCharges(const Aws::Vector<RecurringCharge>& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = value; }
138 inline void SetRecurringCharges(Aws::Vector<RecurringCharge>&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges = std::move(value); }
141 inline ReservedInstanceOffering& AddRecurringCharges(const RecurringCharge& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(value); return *this; }
142 inline ReservedInstanceOffering& AddRecurringCharges(RecurringCharge&& value) { m_recurringChargesHasBeenSet = true; m_recurringCharges.push_back(std::move(value)); return *this; }
144 private:
145
146 Aws::String m_reservedInstanceOfferingId;
147 bool m_reservedInstanceOfferingIdHasBeenSet = false;
148
149 OpenSearchPartitionInstanceType m_instanceType;
150 bool m_instanceTypeHasBeenSet = false;
151
152 int m_duration;
153 bool m_durationHasBeenSet = false;
154
155 double m_fixedPrice;
156 bool m_fixedPriceHasBeenSet = false;
157
158 double m_usagePrice;
159 bool m_usagePriceHasBeenSet = false;
160
161 Aws::String m_currencyCode;
162 bool m_currencyCodeHasBeenSet = false;
163
164 ReservedInstancePaymentOption m_paymentOption;
165 bool m_paymentOptionHasBeenSet = false;
166
167 Aws::Vector<RecurringCharge> m_recurringCharges;
168 bool m_recurringChargesHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace OpenSearchService
173} // namespace Aws
ReservedInstanceOffering & WithInstanceType(const OpenSearchPartitionInstanceType &value)
AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(const OpenSearchPartitionInstanceType &value)
ReservedInstanceOffering & WithCurrencyCode(Aws::String &&value)
ReservedInstanceOffering & WithCurrencyCode(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPaymentOption(const ReservedInstancePaymentOption &value)
const OpenSearchPartitionInstanceType & GetInstanceType() const
void SetRecurringCharges(Aws::Vector< RecurringCharge > &&value)
ReservedInstanceOffering & WithCurrencyCode(const char *value)
void SetInstanceType(OpenSearchPartitionInstanceType &&value)
void SetRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedInstanceOffering & WithReservedInstanceOfferingId(Aws::String &&value)
ReservedInstanceOffering & AddRecurringCharges(RecurringCharge &&value)
const ReservedInstancePaymentOption & GetPaymentOption() const
ReservedInstanceOffering & AddRecurringCharges(const RecurringCharge &value)
ReservedInstanceOffering & WithInstanceType(OpenSearchPartitionInstanceType &&value)
ReservedInstanceOffering & WithRecurringCharges(const Aws::Vector< RecurringCharge > &value)
ReservedInstanceOffering & WithPaymentOption(const ReservedInstancePaymentOption &value)
ReservedInstanceOffering & WithReservedInstanceOfferingId(const Aws::String &value)
void SetPaymentOption(ReservedInstancePaymentOption &&value)
ReservedInstanceOffering & WithPaymentOption(ReservedInstancePaymentOption &&value)
const Aws::Vector< RecurringCharge > & GetRecurringCharges() const
ReservedInstanceOffering & WithReservedInstanceOfferingId(const char *value)
ReservedInstanceOffering & WithRecurringCharges(Aws::Vector< RecurringCharge > &&value)
AWS_OPENSEARCHSERVICE_API ReservedInstanceOffering & 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