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>
55 inline void SetOfferingId(
const char* value) { m_offeringIdHasBeenSet =
true; m_offeringId.assign(value); }
69 inline void SetSavingsPlanId(
const char* value) { m_savingsPlanIdHasBeenSet =
true; m_savingsPlanId.assign(value); }
83 inline void SetSavingsPlanArn(
const char* value) { m_savingsPlanArnHasBeenSet =
true; m_savingsPlanArn.assign(value); }
97 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
111 inline void SetStart(
const char* value) { m_startHasBeenSet =
true; m_start.assign(value); }
125 inline void SetEnd(
const char* value) { m_endHasBeenSet =
true; m_end.assign(value); }
151 inline void SetRegion(
const char* value) { m_regionHasBeenSet =
true; m_region.assign(value); }
165 inline void SetEc2InstanceFamily(
const char* value) { m_ec2InstanceFamilyHasBeenSet =
true; m_ec2InstanceFamily.assign(value); }
229 inline void SetCommitment(
const char* value) { m_commitmentHasBeenSet =
true; m_commitment.assign(value); }
243 inline void SetUpfrontPaymentAmount(
const char* value) { m_upfrontPaymentAmountHasBeenSet =
true; m_upfrontPaymentAmount.assign(value); }
257 inline void SetRecurringPaymentAmount(
const char* value) { m_recurringPaymentAmountHasBeenSet =
true; m_recurringPaymentAmount.assign(value); }
269 inline void SetTermDurationInSeconds(
long long value) { m_termDurationInSecondsHasBeenSet =
true; m_termDurationInSeconds = value; }
289 inline SavingsPlan&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
302 inline void SetReturnableUntil(
const char* value) { m_returnableUntilHasBeenSet =
true; m_returnableUntil.assign(value); }
310 bool m_offeringIdHasBeenSet =
false;
313 bool m_savingsPlanIdHasBeenSet =
false;
316 bool m_savingsPlanArnHasBeenSet =
false;
319 bool m_descriptionHasBeenSet =
false;
322 bool m_startHasBeenSet =
false;
325 bool m_endHasBeenSet =
false;
328 bool m_stateHasBeenSet =
false;
331 bool m_regionHasBeenSet =
false;
334 bool m_ec2InstanceFamilyHasBeenSet =
false;
337 bool m_savingsPlanTypeHasBeenSet =
false;
340 bool m_paymentOptionHasBeenSet =
false;
343 bool m_productTypesHasBeenSet =
false;
346 bool m_currencyHasBeenSet =
false;
349 bool m_commitmentHasBeenSet =
false;
352 bool m_upfrontPaymentAmountHasBeenSet =
false;
355 bool m_recurringPaymentAmountHasBeenSet =
false;
357 long long m_termDurationInSeconds;
358 bool m_termDurationInSecondsHasBeenSet =
false;
361 bool m_tagsHasBeenSet =
false;
364 bool m_returnableUntilHasBeenSet =
false;
void SetOfferingId(const Aws::String &value)
bool SavingsPlanTypeHasBeenSet() const
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)
bool ProductTypesHasBeenSet() const
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)
SavingsPlan & WithUpfrontPaymentAmount(const Aws::String &value)
SavingsPlan & WithReturnableUntil(const Aws::String &value)
bool UpfrontPaymentAmountHasBeenSet() const
const Aws::String & GetSavingsPlanId() const
SavingsPlan & WithCurrency(const CurrencyCode &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
SavingsPlan & WithSavingsPlanId(Aws::String &&value)
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)
bool StateHasBeenSet() const
void SetSavingsPlanArn(const Aws::String &value)
void SetDescription(const char *value)
void SetProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
bool TagsHasBeenSet() const
bool DescriptionHasBeenSet() const
SavingsPlan & WithDescription(Aws::String &&value)
bool CurrencyHasBeenSet() const
void SetRecurringPaymentAmount(const Aws::String &value)
SavingsPlan & WithEc2InstanceFamily(const char *value)
const Aws::String & GetOfferingId() const
void SetSavingsPlanArn(Aws::String &&value)
void SetEc2InstanceFamily(Aws::String &&value)
void SetDescription(Aws::String &&value)
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)
bool ReturnableUntilHasBeenSet() const
void SetStart(const char *value)
void SetCommitment(const char *value)
void SetCurrency(CurrencyCode &&value)
SavingsPlan & WithOfferingId(Aws::String &&value)
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)
SavingsPlan & WithStart(const Aws::String &value)
void SetReturnableUntil(const char *value)
bool SavingsPlanIdHasBeenSet() const
SavingsPlan & WithEnd(Aws::String &&value)
SavingsPlan & WithProductTypes(Aws::Vector< SavingsPlanProductType > &&value)
void SetSavingsPlanId(const char *value)
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)
SavingsPlan & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
bool TermDurationInSecondsHasBeenSet() const
bool EndHasBeenSet() const
const Aws::String & GetRegion() const
SavingsPlan & WithCommitment(const Aws::String &value)
SavingsPlan & WithPaymentOption(SavingsPlanPaymentOption &&value)
const SavingsPlanType & GetSavingsPlanType() const
void SetSavingsPlanArn(const char *value)
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
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)
SavingsPlan & WithStart(Aws::String &&value)
void SetEnd(const Aws::String &value)
const Aws::String & GetDescription() const
bool SavingsPlanArnHasBeenSet() const
SavingsPlan & WithProductTypes(const Aws::Vector< SavingsPlanProductType > &value)
const Aws::String & GetUpfrontPaymentAmount() const
SavingsPlan & WithSavingsPlanType(const SavingsPlanType &value)
bool StartHasBeenSet() const
const SavingsPlanState & GetState() const
void SetCurrency(const CurrencyCode &value)
bool Ec2InstanceFamilyHasBeenSet() const
AWS_SAVINGSPLANS_API SavingsPlan()
SavingsPlan & WithUpfrontPaymentAmount(const char *value)
const Aws::String & GetCommitment() const
long long GetTermDurationInSeconds() const
void SetEnd(const char *value)
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)
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)
SavingsPlan & AddProductTypes(const SavingsPlanProductType &value)
SavingsPlan & WithSavingsPlanArn(const Aws::String &value)
void SetOfferingId(Aws::String &&value)
SavingsPlan & WithSavingsPlanArn(const char *value)
SavingsPlan & WithEnd(const char *value)
void SetStart(const Aws::String &value)
void SetOfferingId(const char *value)
SavingsPlan & AddProductTypes(SavingsPlanProductType &&value)
bool PaymentOptionHasBeenSet() const
SavingsPlan & WithState(const SavingsPlanState &value)
bool RegionHasBeenSet() const
void SetReturnableUntil(Aws::String &&value)
SavingsPlan & WithUpfrontPaymentAmount(Aws::String &&value)
bool OfferingIdHasBeenSet() const
void SetDescription(const Aws::String &value)
bool CommitmentHasBeenSet() const
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)
void SetCommitment(const Aws::String &value)
const Aws::String & GetEnd() const
bool RecurringPaymentAmountHasBeenSet() const
void SetSavingsPlanId(Aws::String &&value)
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