7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/eks/model/EksAnywhereSubscriptionLicenseType.h>
11#include <aws/eks/model/EksAnywhereSubscriptionTerm.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/eks/model/License.h>
54 template<
typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
56 template<
typename IdT = Aws::String>
66 template<
typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
68 template<
typename ArnT = Aws::String>
78 template<
typename CreatedAtT = Aws::Utils::DateTime>
79 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
80 template<
typename CreatedAtT = Aws::Utils::DateTime>
90 template<
typename EffectiveDateT = Aws::Utils::DateTime>
91 void SetEffectiveDate(EffectiveDateT&& value) { m_effectiveDateHasBeenSet =
true; m_effectiveDate = std::forward<EffectiveDateT>(value); }
92 template<
typename EffectiveDateT = Aws::Utils::DateTime>
103 template<
typename ExpirationDateT = Aws::Utils::DateTime>
104 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet =
true; m_expirationDate = std::forward<ExpirationDateT>(value); }
105 template<
typename ExpirationDateT = Aws::Utils::DateTime>
116 inline void SetLicenseQuantity(
int value) { m_licenseQuantityHasBeenSet =
true; m_licenseQuantity = value; }
138 template<
typename TermT = EksAnywhereSubscriptionTerm>
139 void SetTerm(TermT&& value) { m_termHasBeenSet =
true; m_term = std::forward<TermT>(value); }
140 template<
typename TermT = EksAnywhereSubscriptionTerm>
150 template<
typename StatusT = Aws::String>
151 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
152 template<
typename StatusT = Aws::String>
163 inline void SetAutoRenew(
bool value) { m_autoRenewHasBeenSet =
true; m_autoRenew = value; }
173 template<
typename LicenseArnsT = Aws::Vector<Aws::String>>
174 void SetLicenseArns(LicenseArnsT&& value) { m_licenseArnsHasBeenSet =
true; m_licenseArns = std::forward<LicenseArnsT>(value); }
175 template<
typename LicenseArnsT = Aws::Vector<Aws::String>>
177 template<
typename LicenseArnsT = Aws::String>
188 template<
typename LicensesT = Aws::Vector<License>>
189 void SetLicenses(LicensesT&& value) { m_licensesHasBeenSet =
true; m_licenses = std::forward<LicensesT>(value); }
190 template<
typename LicensesT = Aws::Vector<License>>
192 template<
typename LicensesT = License>
205 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
207 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
209 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
211 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
217 bool m_idHasBeenSet =
false;
220 bool m_arnHasBeenSet =
false;
223 bool m_createdAtHasBeenSet =
false;
226 bool m_effectiveDateHasBeenSet =
false;
229 bool m_expirationDateHasBeenSet =
false;
231 int m_licenseQuantity{0};
232 bool m_licenseQuantityHasBeenSet =
false;
235 bool m_licenseTypeHasBeenSet =
false;
237 EksAnywhereSubscriptionTerm m_term;
238 bool m_termHasBeenSet =
false;
241 bool m_statusHasBeenSet =
false;
243 bool m_autoRenew{
false};
244 bool m_autoRenewHasBeenSet =
false;
247 bool m_licenseArnsHasBeenSet =
false;
250 bool m_licensesHasBeenSet =
false;
253 bool m_tagsHasBeenSet =
false;
void SetTerm(TermT &&value)
bool EffectiveDateHasBeenSet() const
const Aws::String & GetArn() const
void SetCreatedAt(CreatedAtT &&value)
EksAnywhereSubscription & WithId(IdT &&value)
bool TermHasBeenSet() const
EksAnywhereSubscription & WithTags(TagsT &&value)
EksAnywhereSubscription & WithArn(ArnT &&value)
void SetLicenseArns(LicenseArnsT &&value)
void SetAutoRenew(bool value)
int GetLicenseQuantity() const
void SetLicenseQuantity(int value)
bool LicenseArnsHasBeenSet() const
void SetEffectiveDate(EffectiveDateT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetLicenseType(EksAnywhereSubscriptionLicenseType value)
void SetTags(TagsT &&value)
EksAnywhereSubscription & AddLicenseArns(LicenseArnsT &&value)
bool CreatedAtHasBeenSet() const
EksAnywhereSubscriptionLicenseType GetLicenseType() const
EksAnywhereSubscription & WithLicenseQuantity(int value)
EksAnywhereSubscription & AddLicenses(LicensesT &&value)
EksAnywhereSubscription & WithStatus(StatusT &&value)
bool GetAutoRenew() const
EksAnywhereSubscription & WithEffectiveDate(EffectiveDateT &&value)
const Aws::Vector< License > & GetLicenses() const
void SetLicenses(LicensesT &&value)
void SetExpirationDate(ExpirationDateT &&value)
bool LicenseQuantityHasBeenSet() const
EksAnywhereSubscription & WithTerm(TermT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
EksAnywhereSubscription & WithLicenseArns(LicenseArnsT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
const Aws::Utils::DateTime & GetEffectiveDate() const
bool ExpirationDateHasBeenSet() const
bool TagsHasBeenSet() const
AWS_EKS_API EksAnywhereSubscription()=default
EksAnywhereSubscription & WithExpirationDate(ExpirationDateT &&value)
bool AutoRenewHasBeenSet() const
EksAnywhereSubscription & WithLicenseType(EksAnywhereSubscriptionLicenseType value)
EksAnywhereSubscription & WithCreatedAt(CreatedAtT &&value)
bool LicenseTypeHasBeenSet() const
const Aws::String & GetId() const
AWS_EKS_API EksAnywhereSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
EksAnywhereSubscription & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool LicensesHasBeenSet() const
void SetArn(ArnT &&value)
void SetStatus(StatusT &&value)
const EksAnywhereSubscriptionTerm & GetTerm() const
const Aws::Vector< Aws::String > & GetLicenseArns() const
AWS_EKS_API EksAnywhereSubscription(Aws::Utils::Json::JsonView jsonValue)
EksAnywhereSubscription & WithAutoRenew(bool value)
const Aws::String & GetStatus() const
EksAnywhereSubscription & WithLicenses(LicensesT &&value)
bool ArnHasBeenSet() const
bool IdHasBeenSet() const
bool StatusHasBeenSet() const
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue