AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlanOffering.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/savingsplans/model/SavingsPlanType.h>
11#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
12#include <aws/savingsplans/model/CurrencyCode.h>
13#include <aws/savingsplans/model/SavingsPlanProductType.h>
14#include <aws/savingsplans/model/SavingsPlanOfferingProperty.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SavingsPlans
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_SAVINGSPLANS_API SavingsPlanOffering();
41 AWS_SAVINGSPLANS_API SavingsPlanOffering(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
51 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
52 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
53 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
54 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
55 inline SavingsPlanOffering& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
56 inline SavingsPlanOffering& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
57 inline SavingsPlanOffering& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
59
61
64 inline const Aws::Vector<SavingsPlanProductType>& GetProductTypes() const{ return m_productTypes; }
65 inline bool ProductTypesHasBeenSet() const { return m_productTypesHasBeenSet; }
66 inline void SetProductTypes(const Aws::Vector<SavingsPlanProductType>& value) { m_productTypesHasBeenSet = true; m_productTypes = value; }
67 inline void SetProductTypes(Aws::Vector<SavingsPlanProductType>&& value) { m_productTypesHasBeenSet = true; m_productTypes = std::move(value); }
70 inline SavingsPlanOffering& AddProductTypes(const SavingsPlanProductType& value) { m_productTypesHasBeenSet = true; m_productTypes.push_back(value); return *this; }
71 inline SavingsPlanOffering& AddProductTypes(SavingsPlanProductType&& value) { m_productTypesHasBeenSet = true; m_productTypes.push_back(std::move(value)); return *this; }
73
75
78 inline const SavingsPlanType& GetPlanType() const{ return m_planType; }
79 inline bool PlanTypeHasBeenSet() const { return m_planTypeHasBeenSet; }
80 inline void SetPlanType(const SavingsPlanType& value) { m_planTypeHasBeenSet = true; m_planType = value; }
81 inline void SetPlanType(SavingsPlanType&& value) { m_planTypeHasBeenSet = true; m_planType = std::move(value); }
82 inline SavingsPlanOffering& WithPlanType(const SavingsPlanType& value) { SetPlanType(value); return *this;}
83 inline SavingsPlanOffering& WithPlanType(SavingsPlanType&& value) { SetPlanType(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline SavingsPlanOffering& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline SavingsPlanOffering& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline SavingsPlanOffering& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
104 inline const SavingsPlanPaymentOption& GetPaymentOption() const{ return m_paymentOption; }
105 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
106 inline void SetPaymentOption(const SavingsPlanPaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
107 inline void SetPaymentOption(SavingsPlanPaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
109 inline SavingsPlanOffering& WithPaymentOption(SavingsPlanPaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
111
113
116 inline long long GetDurationSeconds() const{ return m_durationSeconds; }
117 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
118 inline void SetDurationSeconds(long long value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
119 inline SavingsPlanOffering& WithDurationSeconds(long long value) { SetDurationSeconds(value); return *this;}
121
123
126 inline const CurrencyCode& GetCurrency() const{ return m_currency; }
127 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
128 inline void SetCurrency(const CurrencyCode& value) { m_currencyHasBeenSet = true; m_currency = value; }
129 inline void SetCurrency(CurrencyCode&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
130 inline SavingsPlanOffering& WithCurrency(const CurrencyCode& value) { SetCurrency(value); return *this;}
131 inline SavingsPlanOffering& WithCurrency(CurrencyCode&& value) { SetCurrency(std::move(value)); return *this;}
133
135
138 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
139 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
140 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
141 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
142 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
143 inline SavingsPlanOffering& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
144 inline SavingsPlanOffering& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
145 inline SavingsPlanOffering& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
147
149
152 inline const Aws::String& GetUsageType() const{ return m_usageType; }
153 inline bool UsageTypeHasBeenSet() const { return m_usageTypeHasBeenSet; }
154 inline void SetUsageType(const Aws::String& value) { m_usageTypeHasBeenSet = true; m_usageType = value; }
155 inline void SetUsageType(Aws::String&& value) { m_usageTypeHasBeenSet = true; m_usageType = std::move(value); }
156 inline void SetUsageType(const char* value) { m_usageTypeHasBeenSet = true; m_usageType.assign(value); }
157 inline SavingsPlanOffering& WithUsageType(const Aws::String& value) { SetUsageType(value); return *this;}
158 inline SavingsPlanOffering& WithUsageType(Aws::String&& value) { SetUsageType(std::move(value)); return *this;}
159 inline SavingsPlanOffering& WithUsageType(const char* value) { SetUsageType(value); return *this;}
161
163
167 inline const Aws::String& GetOperation() const{ return m_operation; }
168 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
169 inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
170 inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
171 inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
172 inline SavingsPlanOffering& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
173 inline SavingsPlanOffering& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
174 inline SavingsPlanOffering& WithOperation(const char* value) { SetOperation(value); return *this;}
176
178
181 inline const Aws::Vector<SavingsPlanOfferingProperty>& GetProperties() const{ return m_properties; }
182 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
183 inline void SetProperties(const Aws::Vector<SavingsPlanOfferingProperty>& value) { m_propertiesHasBeenSet = true; m_properties = value; }
184 inline void SetProperties(Aws::Vector<SavingsPlanOfferingProperty>&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
187 inline SavingsPlanOffering& AddProperties(const SavingsPlanOfferingProperty& value) { m_propertiesHasBeenSet = true; m_properties.push_back(value); return *this; }
188 inline SavingsPlanOffering& AddProperties(SavingsPlanOfferingProperty&& value) { m_propertiesHasBeenSet = true; m_properties.push_back(std::move(value)); return *this; }
190 private:
191
192 Aws::String m_offeringId;
193 bool m_offeringIdHasBeenSet = false;
194
196 bool m_productTypesHasBeenSet = false;
197
198 SavingsPlanType m_planType;
199 bool m_planTypeHasBeenSet = false;
200
201 Aws::String m_description;
202 bool m_descriptionHasBeenSet = false;
203
204 SavingsPlanPaymentOption m_paymentOption;
205 bool m_paymentOptionHasBeenSet = false;
206
207 long long m_durationSeconds;
208 bool m_durationSecondsHasBeenSet = false;
209
210 CurrencyCode m_currency;
211 bool m_currencyHasBeenSet = false;
212
213 Aws::String m_serviceCode;
214 bool m_serviceCodeHasBeenSet = false;
215
216 Aws::String m_usageType;
217 bool m_usageTypeHasBeenSet = false;
218
219 Aws::String m_operation;
220 bool m_operationHasBeenSet = false;
221
223 bool m_propertiesHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace SavingsPlans
228} // namespace Aws
SavingsPlanOffering & WithOfferingId(const char *value)
void SetProductTypes(Aws::Vector< SavingsPlanProductType > &&value)
SavingsPlanOffering & WithCurrency(const CurrencyCode &value)
SavingsPlanOffering & WithOfferingId(Aws::String &&value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlanOffering & WithServiceCode(Aws::String &&value)
SavingsPlanOffering & WithProperties(Aws::Vector< SavingsPlanOfferingProperty > &&value)
SavingsPlanOffering & WithOperation(Aws::String &&value)
const Aws::Vector< SavingsPlanProductType > & GetProductTypes() const
SavingsPlanOffering & WithPlanType(const SavingsPlanType &value)
void SetProperties(Aws::Vector< SavingsPlanOfferingProperty > &&value)
SavingsPlanOffering & AddProductTypes(const SavingsPlanProductType &value)
AWS_SAVINGSPLANS_API SavingsPlanOffering(Aws::Utils::Json::JsonView jsonValue)
void SetPaymentOption(SavingsPlanPaymentOption &&value)
SavingsPlanOffering & WithProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
SavingsPlanOffering & WithProperties(const Aws::Vector< SavingsPlanOfferingProperty > &value)
SavingsPlanOffering & WithPaymentOption(SavingsPlanPaymentOption &&value)
SavingsPlanOffering & WithServiceCode(const Aws::String &value)
void SetProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
SavingsPlanOffering & AddProductTypes(SavingsPlanProductType &&value)
SavingsPlanOffering & WithCurrency(CurrencyCode &&value)
SavingsPlanOffering & WithPaymentOption(const SavingsPlanPaymentOption &value)
SavingsPlanOffering & WithOperation(const Aws::String &value)
const SavingsPlanPaymentOption & GetPaymentOption() const
SavingsPlanOffering & WithUsageType(const Aws::String &value)
SavingsPlanOffering & WithUsageType(Aws::String &&value)
SavingsPlanOffering & WithDurationSeconds(long long value)
void SetProperties(const Aws::Vector< SavingsPlanOfferingProperty > &value)
SavingsPlanOffering & WithPlanType(SavingsPlanType &&value)
SavingsPlanOffering & AddProperties(SavingsPlanOfferingProperty &&value)
SavingsPlanOffering & WithDescription(Aws::String &&value)
SavingsPlanOffering & WithProductTypes(Aws::Vector< SavingsPlanProductType > &&value)
const Aws::Vector< SavingsPlanOfferingProperty > & GetProperties() const
void SetPlanType(const SavingsPlanType &value)
void SetPaymentOption(const SavingsPlanPaymentOption &value)
SavingsPlanOffering & WithDescription(const char *value)
SavingsPlanOffering & WithOfferingId(const Aws::String &value)
SavingsPlanOffering & WithUsageType(const char *value)
SavingsPlanOffering & AddProperties(const SavingsPlanOfferingProperty &value)
SavingsPlanOffering & WithDescription(const Aws::String &value)
AWS_SAVINGSPLANS_API SavingsPlanOffering & operator=(Aws::Utils::Json::JsonView jsonValue)
SavingsPlanOffering & WithOperation(const char *value)
SavingsPlanOffering & WithServiceCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue