7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/SavingsPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/UUID.h>
44 template<
typename SavingsPlanOfferingIdT = Aws::String>
45 void SetSavingsPlanOfferingId(SavingsPlanOfferingIdT&& value) { m_savingsPlanOfferingIdHasBeenSet =
true; m_savingsPlanOfferingId = std::forward<SavingsPlanOfferingIdT>(value); }
46 template<
typename SavingsPlanOfferingIdT = Aws::String>
58 template<
typename CommitmentT = Aws::String>
59 void SetCommitment(CommitmentT&& value) { m_commitmentHasBeenSet =
true; m_commitment = std::forward<CommitmentT>(value); }
60 template<
typename CommitmentT = Aws::String>
72 template<
typename UpfrontPaymentAmountT = Aws::String>
73 void SetUpfrontPaymentAmount(UpfrontPaymentAmountT&& value) { m_upfrontPaymentAmountHasBeenSet =
true; m_upfrontPaymentAmount = std::forward<UpfrontPaymentAmountT>(value); }
74 template<
typename UpfrontPaymentAmountT = Aws::String>
85 template<
typename PurchaseTimeT = Aws::Utils::DateTime>
86 void SetPurchaseTime(PurchaseTimeT&& value) { m_purchaseTimeHasBeenSet =
true; m_purchaseTime = std::forward<PurchaseTimeT>(value); }
87 template<
typename PurchaseTimeT = Aws::Utils::DateTime>
98 template<
typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
100 template<
typename ClientTokenT = Aws::String>
110 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
112 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
114 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
116 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
122 bool m_savingsPlanOfferingIdHasBeenSet =
false;
125 bool m_commitmentHasBeenSet =
false;
128 bool m_upfrontPaymentAmountHasBeenSet =
false;
131 bool m_purchaseTimeHasBeenSet =
false;
134 bool m_clientTokenHasBeenSet =
true;
137 bool m_tagsHasBeenSet =
false;
void SetPurchaseTime(PurchaseTimeT &&value)
AWS_SAVINGSPLANS_API CreateSavingsPlanRequest()=default
bool TagsHasBeenSet() const
void SetSavingsPlanOfferingId(SavingsPlanOfferingIdT &&value)
CreateSavingsPlanRequest & WithUpfrontPaymentAmount(UpfrontPaymentAmountT &&value)
bool ClientTokenHasBeenSet() const
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
bool CommitmentHasBeenSet() const
const Aws::String & GetClientToken() const
CreateSavingsPlanRequest & WithPurchaseTime(PurchaseTimeT &&value)
CreateSavingsPlanRequest & WithCommitment(CommitmentT &&value)
CreateSavingsPlanRequest & WithSavingsPlanOfferingId(SavingsPlanOfferingIdT &&value)
CreateSavingsPlanRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetCommitment() const
virtual const char * GetServiceRequestName() const override
CreateSavingsPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetPurchaseTime() const
void SetUpfrontPaymentAmount(UpfrontPaymentAmountT &&value)
bool PurchaseTimeHasBeenSet() const
CreateSavingsPlanRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(TagsT &&value)
void SetCommitment(CommitmentT &&value)
void SetClientToken(ClientTokenT &&value)
bool SavingsPlanOfferingIdHasBeenSet() const
const Aws::String & GetUpfrontPaymentAmount() const
bool UpfrontPaymentAmountHasBeenSet() const
const Aws::String & GetSavingsPlanOfferingId() const
static Aws::Utils::UUID PseudoRandomUUID()
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