7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/model/EksAnywhereSubscriptionTerm.h>
11#include <aws/eks/model/EksAnywhereSubscriptionLicenseType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/UUID.h>
49 template<
typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
51 template<
typename NameT = Aws::String>
65 template<
typename TermT = EksAnywhereSubscriptionTerm>
66 void SetTerm(TermT&& value) { m_termHasBeenSet =
true; m_term = std::forward<TermT>(value); }
67 template<
typename TermT = EksAnywhereSubscriptionTerm>
79 inline void SetLicenseQuantity(
int value) { m_licenseQuantityHasBeenSet =
true; m_licenseQuantity = value; }
102 inline void SetAutoRenew(
bool value) { m_autoRenewHasBeenSet =
true; m_autoRenew = value; }
113 template<
typename ClientRequestTokenT = Aws::String>
114 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet =
true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
115 template<
typename ClientRequestTokenT = Aws::String>
128 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
130 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
134 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
140 bool m_nameHasBeenSet =
false;
143 bool m_termHasBeenSet =
false;
145 int m_licenseQuantity{0};
146 bool m_licenseQuantityHasBeenSet =
false;
149 bool m_licenseTypeHasBeenSet =
false;
151 bool m_autoRenew{
false};
152 bool m_autoRenewHasBeenSet =
false;
155 bool m_clientRequestTokenHasBeenSet =
true;
158 bool m_tagsHasBeenSet =
false;
bool LicenseQuantityHasBeenSet() const
CreateEksAnywhereSubscriptionRequest & WithTerm(TermT &&value)
const EksAnywhereSubscriptionTerm & GetTerm() const
bool NameHasBeenSet() const
void SetTags(TagsT &&value)
void SetName(NameT &&value)
bool ClientRequestTokenHasBeenSet() const
CreateEksAnywhereSubscriptionRequest & WithAutoRenew(bool value)
void SetLicenseQuantity(int value)
void SetLicenseType(EksAnywhereSubscriptionLicenseType value)
CreateEksAnywhereSubscriptionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
bool TermHasBeenSet() const
bool TagsHasBeenSet() const
bool GetAutoRenew() const
int GetLicenseQuantity() const
AWS_EKS_API Aws::String SerializePayload() const override
void SetAutoRenew(bool value)
CreateEksAnywhereSubscriptionRequest & WithName(NameT &&value)
AWS_EKS_API CreateEksAnywhereSubscriptionRequest()=default
const Aws::String & GetName() const
CreateEksAnywhereSubscriptionRequest & WithLicenseQuantity(int value)
CreateEksAnywhereSubscriptionRequest & WithTags(TagsT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
bool LicenseTypeHasBeenSet() const
CreateEksAnywhereSubscriptionRequest & WithLicenseType(EksAnywhereSubscriptionLicenseType value)
EksAnywhereSubscriptionLicenseType GetLicenseType() const
const Aws::String & GetClientRequestToken() const
void SetTerm(TermT &&value)
CreateEksAnywhereSubscriptionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
bool AutoRenewHasBeenSet() const
static Aws::Utils::UUID PseudoRandomUUID()
EksAnywhereSubscriptionLicenseType
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