AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SavingsPlan.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/savingsplans/model/SavingsPlanState.h>
10#include <aws/savingsplans/model/SavingsPlanType.h>
11#include <aws/savingsplans/model/SavingsPlanPaymentOption.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/savingsplans/model/CurrencyCode.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/savingsplans/model/SavingsPlanProductType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SavingsPlans
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_SAVINGSPLANS_API SavingsPlan();
42 AWS_SAVINGSPLANS_API SavingsPlan(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SAVINGSPLANS_API SavingsPlan& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetOfferingId() const{ return m_offeringId; }
52 inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; }
53 inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; }
54 inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); }
55 inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); }
56 inline SavingsPlan& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;}
57 inline SavingsPlan& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;}
58 inline SavingsPlan& WithOfferingId(const char* value) { SetOfferingId(value); return *this;}
60
62
65 inline const Aws::String& GetSavingsPlanId() const{ return m_savingsPlanId; }
66 inline bool SavingsPlanIdHasBeenSet() const { return m_savingsPlanIdHasBeenSet; }
67 inline void SetSavingsPlanId(const Aws::String& value) { m_savingsPlanIdHasBeenSet = true; m_savingsPlanId = value; }
68 inline void SetSavingsPlanId(Aws::String&& value) { m_savingsPlanIdHasBeenSet = true; m_savingsPlanId = std::move(value); }
69 inline void SetSavingsPlanId(const char* value) { m_savingsPlanIdHasBeenSet = true; m_savingsPlanId.assign(value); }
70 inline SavingsPlan& WithSavingsPlanId(const Aws::String& value) { SetSavingsPlanId(value); return *this;}
71 inline SavingsPlan& WithSavingsPlanId(Aws::String&& value) { SetSavingsPlanId(std::move(value)); return *this;}
72 inline SavingsPlan& WithSavingsPlanId(const char* value) { SetSavingsPlanId(value); return *this;}
74
76
79 inline const Aws::String& GetSavingsPlanArn() const{ return m_savingsPlanArn; }
80 inline bool SavingsPlanArnHasBeenSet() const { return m_savingsPlanArnHasBeenSet; }
81 inline void SetSavingsPlanArn(const Aws::String& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = value; }
82 inline void SetSavingsPlanArn(Aws::String&& value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn = std::move(value); }
83 inline void SetSavingsPlanArn(const char* value) { m_savingsPlanArnHasBeenSet = true; m_savingsPlanArn.assign(value); }
84 inline SavingsPlan& WithSavingsPlanArn(const Aws::String& value) { SetSavingsPlanArn(value); return *this;}
85 inline SavingsPlan& WithSavingsPlanArn(Aws::String&& value) { SetSavingsPlanArn(std::move(value)); return *this;}
86 inline SavingsPlan& WithSavingsPlanArn(const char* value) { SetSavingsPlanArn(value); return *this;}
88
90
93 inline const Aws::String& GetDescription() const{ return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
98 inline SavingsPlan& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
99 inline SavingsPlan& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
100 inline SavingsPlan& WithDescription(const char* value) { SetDescription(value); return *this;}
102
104
107 inline const Aws::String& GetStart() const{ return m_start; }
108 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
109 inline void SetStart(const Aws::String& value) { m_startHasBeenSet = true; m_start = value; }
110 inline void SetStart(Aws::String&& value) { m_startHasBeenSet = true; m_start = std::move(value); }
111 inline void SetStart(const char* value) { m_startHasBeenSet = true; m_start.assign(value); }
112 inline SavingsPlan& WithStart(const Aws::String& value) { SetStart(value); return *this;}
113 inline SavingsPlan& WithStart(Aws::String&& value) { SetStart(std::move(value)); return *this;}
114 inline SavingsPlan& WithStart(const char* value) { SetStart(value); return *this;}
116
118
121 inline const Aws::String& GetEnd() const{ return m_end; }
122 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
123 inline void SetEnd(const Aws::String& value) { m_endHasBeenSet = true; m_end = value; }
124 inline void SetEnd(Aws::String&& value) { m_endHasBeenSet = true; m_end = std::move(value); }
125 inline void SetEnd(const char* value) { m_endHasBeenSet = true; m_end.assign(value); }
126 inline SavingsPlan& WithEnd(const Aws::String& value) { SetEnd(value); return *this;}
127 inline SavingsPlan& WithEnd(Aws::String&& value) { SetEnd(std::move(value)); return *this;}
128 inline SavingsPlan& WithEnd(const char* value) { SetEnd(value); return *this;}
130
132
135 inline const SavingsPlanState& GetState() const{ return m_state; }
136 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
137 inline void SetState(const SavingsPlanState& value) { m_stateHasBeenSet = true; m_state = value; }
138 inline void SetState(SavingsPlanState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
139 inline SavingsPlan& WithState(const SavingsPlanState& value) { SetState(value); return *this;}
140 inline SavingsPlan& WithState(SavingsPlanState&& value) { SetState(std::move(value)); return *this;}
142
144
147 inline const Aws::String& GetRegion() const{ return m_region; }
148 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
149 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
150 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
151 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
152 inline SavingsPlan& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
153 inline SavingsPlan& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
154 inline SavingsPlan& WithRegion(const char* value) { SetRegion(value); return *this;}
156
158
161 inline const Aws::String& GetEc2InstanceFamily() const{ return m_ec2InstanceFamily; }
162 inline bool Ec2InstanceFamilyHasBeenSet() const { return m_ec2InstanceFamilyHasBeenSet; }
163 inline void SetEc2InstanceFamily(const Aws::String& value) { m_ec2InstanceFamilyHasBeenSet = true; m_ec2InstanceFamily = value; }
164 inline void SetEc2InstanceFamily(Aws::String&& value) { m_ec2InstanceFamilyHasBeenSet = true; m_ec2InstanceFamily = std::move(value); }
165 inline void SetEc2InstanceFamily(const char* value) { m_ec2InstanceFamilyHasBeenSet = true; m_ec2InstanceFamily.assign(value); }
166 inline SavingsPlan& WithEc2InstanceFamily(const Aws::String& value) { SetEc2InstanceFamily(value); return *this;}
167 inline SavingsPlan& WithEc2InstanceFamily(Aws::String&& value) { SetEc2InstanceFamily(std::move(value)); return *this;}
168 inline SavingsPlan& WithEc2InstanceFamily(const char* value) { SetEc2InstanceFamily(value); return *this;}
170
172
175 inline const SavingsPlanType& GetSavingsPlanType() const{ return m_savingsPlanType; }
176 inline bool SavingsPlanTypeHasBeenSet() const { return m_savingsPlanTypeHasBeenSet; }
177 inline void SetSavingsPlanType(const SavingsPlanType& value) { m_savingsPlanTypeHasBeenSet = true; m_savingsPlanType = value; }
178 inline void SetSavingsPlanType(SavingsPlanType&& value) { m_savingsPlanTypeHasBeenSet = true; m_savingsPlanType = std::move(value); }
179 inline SavingsPlan& WithSavingsPlanType(const SavingsPlanType& value) { SetSavingsPlanType(value); return *this;}
180 inline SavingsPlan& WithSavingsPlanType(SavingsPlanType&& value) { SetSavingsPlanType(std::move(value)); return *this;}
182
184
187 inline const SavingsPlanPaymentOption& GetPaymentOption() const{ return m_paymentOption; }
188 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
189 inline void SetPaymentOption(const SavingsPlanPaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
190 inline void SetPaymentOption(SavingsPlanPaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
191 inline SavingsPlan& WithPaymentOption(const SavingsPlanPaymentOption& value) { SetPaymentOption(value); return *this;}
192 inline SavingsPlan& WithPaymentOption(SavingsPlanPaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;}
194
196
199 inline const Aws::Vector<SavingsPlanProductType>& GetProductTypes() const{ return m_productTypes; }
200 inline bool ProductTypesHasBeenSet() const { return m_productTypesHasBeenSet; }
201 inline void SetProductTypes(const Aws::Vector<SavingsPlanProductType>& value) { m_productTypesHasBeenSet = true; m_productTypes = value; }
202 inline void SetProductTypes(Aws::Vector<SavingsPlanProductType>&& value) { m_productTypesHasBeenSet = true; m_productTypes = std::move(value); }
204 inline SavingsPlan& WithProductTypes(Aws::Vector<SavingsPlanProductType>&& value) { SetProductTypes(std::move(value)); return *this;}
205 inline SavingsPlan& AddProductTypes(const SavingsPlanProductType& value) { m_productTypesHasBeenSet = true; m_productTypes.push_back(value); return *this; }
206 inline SavingsPlan& AddProductTypes(SavingsPlanProductType&& value) { m_productTypesHasBeenSet = true; m_productTypes.push_back(std::move(value)); return *this; }
208
210
213 inline const CurrencyCode& GetCurrency() const{ return m_currency; }
214 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
215 inline void SetCurrency(const CurrencyCode& value) { m_currencyHasBeenSet = true; m_currency = value; }
216 inline void SetCurrency(CurrencyCode&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
217 inline SavingsPlan& WithCurrency(const CurrencyCode& value) { SetCurrency(value); return *this;}
218 inline SavingsPlan& WithCurrency(CurrencyCode&& value) { SetCurrency(std::move(value)); return *this;}
220
222
225 inline const Aws::String& GetCommitment() const{ return m_commitment; }
226 inline bool CommitmentHasBeenSet() const { return m_commitmentHasBeenSet; }
227 inline void SetCommitment(const Aws::String& value) { m_commitmentHasBeenSet = true; m_commitment = value; }
228 inline void SetCommitment(Aws::String&& value) { m_commitmentHasBeenSet = true; m_commitment = std::move(value); }
229 inline void SetCommitment(const char* value) { m_commitmentHasBeenSet = true; m_commitment.assign(value); }
230 inline SavingsPlan& WithCommitment(const Aws::String& value) { SetCommitment(value); return *this;}
231 inline SavingsPlan& WithCommitment(Aws::String&& value) { SetCommitment(std::move(value)); return *this;}
232 inline SavingsPlan& WithCommitment(const char* value) { SetCommitment(value); return *this;}
234
236
239 inline const Aws::String& GetUpfrontPaymentAmount() const{ return m_upfrontPaymentAmount; }
240 inline bool UpfrontPaymentAmountHasBeenSet() const { return m_upfrontPaymentAmountHasBeenSet; }
241 inline void SetUpfrontPaymentAmount(const Aws::String& value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount = value; }
242 inline void SetUpfrontPaymentAmount(Aws::String&& value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount = std::move(value); }
243 inline void SetUpfrontPaymentAmount(const char* value) { m_upfrontPaymentAmountHasBeenSet = true; m_upfrontPaymentAmount.assign(value); }
244 inline SavingsPlan& WithUpfrontPaymentAmount(const Aws::String& value) { SetUpfrontPaymentAmount(value); return *this;}
245 inline SavingsPlan& WithUpfrontPaymentAmount(Aws::String&& value) { SetUpfrontPaymentAmount(std::move(value)); return *this;}
246 inline SavingsPlan& WithUpfrontPaymentAmount(const char* value) { SetUpfrontPaymentAmount(value); return *this;}
248
250
253 inline const Aws::String& GetRecurringPaymentAmount() const{ return m_recurringPaymentAmount; }
254 inline bool RecurringPaymentAmountHasBeenSet() const { return m_recurringPaymentAmountHasBeenSet; }
255 inline void SetRecurringPaymentAmount(const Aws::String& value) { m_recurringPaymentAmountHasBeenSet = true; m_recurringPaymentAmount = value; }
256 inline void SetRecurringPaymentAmount(Aws::String&& value) { m_recurringPaymentAmountHasBeenSet = true; m_recurringPaymentAmount = std::move(value); }
257 inline void SetRecurringPaymentAmount(const char* value) { m_recurringPaymentAmountHasBeenSet = true; m_recurringPaymentAmount.assign(value); }
259 inline SavingsPlan& WithRecurringPaymentAmount(Aws::String&& value) { SetRecurringPaymentAmount(std::move(value)); return *this;}
260 inline SavingsPlan& WithRecurringPaymentAmount(const char* value) { SetRecurringPaymentAmount(value); return *this;}
262
264
267 inline long long GetTermDurationInSeconds() const{ return m_termDurationInSeconds; }
268 inline bool TermDurationInSecondsHasBeenSet() const { return m_termDurationInSecondsHasBeenSet; }
269 inline void SetTermDurationInSeconds(long long value) { m_termDurationInSecondsHasBeenSet = true; m_termDurationInSeconds = value; }
270 inline SavingsPlan& WithTermDurationInSeconds(long long value) { SetTermDurationInSeconds(value); return *this;}
272
274
277 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
278 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
279 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
280 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
281 inline SavingsPlan& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
282 inline SavingsPlan& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
283 inline SavingsPlan& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
284 inline SavingsPlan& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
285 inline SavingsPlan& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
286 inline SavingsPlan& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
287 inline SavingsPlan& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
288 inline SavingsPlan& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
289 inline SavingsPlan& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
291
293
298 inline const Aws::String& GetReturnableUntil() const{ return m_returnableUntil; }
299 inline bool ReturnableUntilHasBeenSet() const { return m_returnableUntilHasBeenSet; }
300 inline void SetReturnableUntil(const Aws::String& value) { m_returnableUntilHasBeenSet = true; m_returnableUntil = value; }
301 inline void SetReturnableUntil(Aws::String&& value) { m_returnableUntilHasBeenSet = true; m_returnableUntil = std::move(value); }
302 inline void SetReturnableUntil(const char* value) { m_returnableUntilHasBeenSet = true; m_returnableUntil.assign(value); }
303 inline SavingsPlan& WithReturnableUntil(const Aws::String& value) { SetReturnableUntil(value); return *this;}
304 inline SavingsPlan& WithReturnableUntil(Aws::String&& value) { SetReturnableUntil(std::move(value)); return *this;}
305 inline SavingsPlan& WithReturnableUntil(const char* value) { SetReturnableUntil(value); return *this;}
307 private:
308
309 Aws::String m_offeringId;
310 bool m_offeringIdHasBeenSet = false;
311
312 Aws::String m_savingsPlanId;
313 bool m_savingsPlanIdHasBeenSet = false;
314
315 Aws::String m_savingsPlanArn;
316 bool m_savingsPlanArnHasBeenSet = false;
317
318 Aws::String m_description;
319 bool m_descriptionHasBeenSet = false;
320
321 Aws::String m_start;
322 bool m_startHasBeenSet = false;
323
324 Aws::String m_end;
325 bool m_endHasBeenSet = false;
326
327 SavingsPlanState m_state;
328 bool m_stateHasBeenSet = false;
329
330 Aws::String m_region;
331 bool m_regionHasBeenSet = false;
332
333 Aws::String m_ec2InstanceFamily;
334 bool m_ec2InstanceFamilyHasBeenSet = false;
335
336 SavingsPlanType m_savingsPlanType;
337 bool m_savingsPlanTypeHasBeenSet = false;
338
339 SavingsPlanPaymentOption m_paymentOption;
340 bool m_paymentOptionHasBeenSet = false;
341
343 bool m_productTypesHasBeenSet = false;
344
345 CurrencyCode m_currency;
346 bool m_currencyHasBeenSet = false;
347
348 Aws::String m_commitment;
349 bool m_commitmentHasBeenSet = false;
350
351 Aws::String m_upfrontPaymentAmount;
352 bool m_upfrontPaymentAmountHasBeenSet = false;
353
354 Aws::String m_recurringPaymentAmount;
355 bool m_recurringPaymentAmountHasBeenSet = false;
356
357 long long m_termDurationInSeconds;
358 bool m_termDurationInSecondsHasBeenSet = false;
359
361 bool m_tagsHasBeenSet = false;
362
363 Aws::String m_returnableUntil;
364 bool m_returnableUntilHasBeenSet = false;
365 };
366
367} // namespace Model
368} // namespace SavingsPlans
369} // namespace Aws
void SetOfferingId(const Aws::String &value)
Definition SavingsPlan.h:53
SavingsPlan & WithEc2InstanceFamily(const Aws::String &value)
void SetRegion(const char *value)
SavingsPlan & WithTermDurationInSeconds(long long value)
void SetUpfrontPaymentAmount(Aws::String &&value)
void SetRegion(Aws::String &&value)
SavingsPlan & WithCurrency(CurrencyCode &&value)
void SetState(const SavingsPlanState &value)
SavingsPlan & WithState(SavingsPlanState &&value)
AWS_SAVINGSPLANS_API SavingsPlan & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSavingsPlanType(SavingsPlanType &&value)
const Aws::Vector< SavingsPlanProductType > & GetProductTypes() const
SavingsPlan & WithSavingsPlanId(const Aws::String &value)
Definition SavingsPlan.h:70
SavingsPlan & WithUpfrontPaymentAmount(const Aws::String &value)
SavingsPlan & WithReturnableUntil(const Aws::String &value)
const Aws::String & GetSavingsPlanId() const
Definition SavingsPlan.h:65
SavingsPlan & WithCurrency(const CurrencyCode &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SavingsPlan & WithSavingsPlanId(Aws::String &&value)
Definition SavingsPlan.h:71
AWS_SAVINGSPLANS_API SavingsPlan(Aws::Utils::Json::JsonView jsonValue)
void SetUpfrontPaymentAmount(const Aws::String &value)
SavingsPlan & WithRecurringPaymentAmount(const char *value)
SavingsPlan & AddTags(Aws::String &&key, Aws::String &&value)
SavingsPlan & WithPaymentOption(const SavingsPlanPaymentOption &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SavingsPlan & WithReturnableUntil(Aws::String &&value)
void SetSavingsPlanArn(const Aws::String &value)
Definition SavingsPlan.h:81
void SetDescription(const char *value)
Definition SavingsPlan.h:97
void SetProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
SavingsPlan & WithDescription(Aws::String &&value)
Definition SavingsPlan.h:99
void SetRecurringPaymentAmount(const Aws::String &value)
SavingsPlan & WithEc2InstanceFamily(const char *value)
const Aws::String & GetOfferingId() const
Definition SavingsPlan.h:51
void SetSavingsPlanArn(Aws::String &&value)
Definition SavingsPlan.h:82
void SetEc2InstanceFamily(Aws::String &&value)
void SetDescription(Aws::String &&value)
Definition SavingsPlan.h:96
SavingsPlan & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
SavingsPlan & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::String & GetStart() const
void SetPaymentOption(SavingsPlanPaymentOption &&value)
void SetStart(const char *value)
void SetCommitment(const char *value)
void SetCurrency(CurrencyCode &&value)
SavingsPlan & WithOfferingId(Aws::String &&value)
Definition SavingsPlan.h:57
SavingsPlan & AddTags(Aws::String &&key, const Aws::String &value)
SavingsPlan & WithReturnableUntil(const char *value)
void SetSavingsPlanType(const SavingsPlanType &value)
void SetRecurringPaymentAmount(const char *value)
const Aws::String & GetRecurringPaymentAmount() const
SavingsPlan & WithEc2InstanceFamily(Aws::String &&value)
SavingsPlan & WithOfferingId(const Aws::String &value)
Definition SavingsPlan.h:56
SavingsPlan & WithStart(const Aws::String &value)
void SetReturnableUntil(const char *value)
SavingsPlan & WithEnd(Aws::String &&value)
SavingsPlan & WithProductTypes(Aws::Vector< SavingsPlanProductType > &&value)
void SetSavingsPlanId(const char *value)
Definition SavingsPlan.h:69
void SetEc2InstanceFamily(const char *value)
SavingsPlan & WithRegion(const Aws::String &value)
SavingsPlan & WithCommitment(const char *value)
SavingsPlan & AddTags(const char *key, const char *value)
SavingsPlan & AddTags(Aws::String &&key, const char *value)
SavingsPlan & WithSavingsPlanArn(Aws::String &&value)
Definition SavingsPlan.h:85
SavingsPlan & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetRegion() const
SavingsPlan & WithCommitment(const Aws::String &value)
SavingsPlan & WithPaymentOption(SavingsPlanPaymentOption &&value)
const SavingsPlanType & GetSavingsPlanType() const
void SetSavingsPlanArn(const char *value)
Definition SavingsPlan.h:83
void SetEnd(Aws::String &&value)
SavingsPlan & WithRegion(Aws::String &&value)
void SetPaymentOption(const SavingsPlanPaymentOption &value)
SavingsPlan & WithEnd(const Aws::String &value)
const Aws::String & GetSavingsPlanArn() const
Definition SavingsPlan.h:79
void SetEc2InstanceFamily(const Aws::String &value)
SavingsPlan & AddTags(const Aws::String &key, const Aws::String &value)
AWS_SAVINGSPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
SavingsPlan & WithRegion(const char *value)
void SetTermDurationInSeconds(long long value)
const Aws::String & GetReturnableUntil() const
void SetReturnableUntil(const Aws::String &value)
const SavingsPlanPaymentOption & GetPaymentOption() const
void SetSavingsPlanId(const Aws::String &value)
Definition SavingsPlan.h:67
SavingsPlan & WithStart(Aws::String &&value)
void SetEnd(const Aws::String &value)
const Aws::String & GetDescription() const
Definition SavingsPlan.h:93
SavingsPlan & WithProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
const Aws::String & GetUpfrontPaymentAmount() const
SavingsPlan & WithSavingsPlanType(const SavingsPlanType &value)
const SavingsPlanState & GetState() const
void SetCurrency(const CurrencyCode &value)
AWS_SAVINGSPLANS_API SavingsPlan()
SavingsPlan & WithUpfrontPaymentAmount(const char *value)
const Aws::String & GetCommitment() const
SavingsPlan & WithDescription(const char *value)
SavingsPlan & WithStart(const char *value)
void SetUpfrontPaymentAmount(const char *value)
void SetState(SavingsPlanState &&value)
void SetProductTypes(Aws::Vector< SavingsPlanProductType > &&value)
SavingsPlan & WithCommitment(Aws::String &&value)
void SetRegion(const Aws::String &value)
SavingsPlan & WithSavingsPlanId(const char *value)
Definition SavingsPlan.h:72
SavingsPlan & WithRecurringPaymentAmount(const Aws::String &value)
void SetRecurringPaymentAmount(Aws::String &&value)
void SetStart(Aws::String &&value)
const Aws::String & GetEc2InstanceFamily() const
SavingsPlan & WithDescription(const Aws::String &value)
Definition SavingsPlan.h:98
SavingsPlan & AddProductTypes(const SavingsPlanProductType &value)
SavingsPlan & WithSavingsPlanArn(const Aws::String &value)
Definition SavingsPlan.h:84
void SetOfferingId(Aws::String &&value)
Definition SavingsPlan.h:54
SavingsPlan & WithSavingsPlanArn(const char *value)
Definition SavingsPlan.h:86
SavingsPlan & WithEnd(const char *value)
void SetStart(const Aws::String &value)
void SetOfferingId(const char *value)
Definition SavingsPlan.h:55
SavingsPlan & AddProductTypes(SavingsPlanProductType &&value)
SavingsPlan & WithState(const SavingsPlanState &value)
void SetReturnableUntil(Aws::String &&value)
SavingsPlan & WithUpfrontPaymentAmount(Aws::String &&value)
void SetDescription(const Aws::String &value)
Definition SavingsPlan.h:95
SavingsPlan & WithSavingsPlanType(SavingsPlanType &&value)
const CurrencyCode & GetCurrency() const
SavingsPlan & AddTags(const char *key, Aws::String &&value)
SavingsPlan & WithRecurringPaymentAmount(Aws::String &&value)
void SetCommitment(Aws::String &&value)
SavingsPlan & WithOfferingId(const char *value)
Definition SavingsPlan.h:58
void SetCommitment(const Aws::String &value)
const Aws::String & GetEnd() const
void SetSavingsPlanId(Aws::String &&value)
Definition SavingsPlan.h:68
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue