7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/CertificateStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/lightsail/model/RenewalSummary.h>
13#include <aws/lightsail/model/DomainValidationRecord.h>
14#include <aws/lightsail/model/Tag.h>
57 template<
typename ArnT = Aws::String>
58 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
59 template<
typename ArnT = Aws::String>
69 template<
typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
71 template<
typename NameT = Aws::String>
81 template<
typename DomainNameT = Aws::String>
82 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet =
true; m_domainName = std::forward<DomainNameT>(value); }
83 template<
typename DomainNameT = Aws::String>
103 template<
typename SerialNumberT = Aws::String>
104 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet =
true; m_serialNumber = std::forward<SerialNumberT>(value); }
105 template<
typename SerialNumberT = Aws::String>
117 template<
typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
118 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet =
true; m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value); }
119 template<
typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
121 template<
typename SubjectAlternativeNamesT = Aws::String>
122 Certificate&
AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet =
true; m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
return *
this; }
132 template<
typename DomainVal
idationRecordsT = Aws::Vector<DomainVal
idationRecord>>
133 void SetDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet =
true; m_domainValidationRecords = std::forward<DomainValidationRecordsT>(value); }
134 template<
typename DomainVal
idationRecordsT = Aws::Vector<DomainVal
idationRecord>>
136 template<
typename DomainVal
idationRecordsT = DomainVal
idationRecord>
137 Certificate&
AddDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet =
true; m_domainValidationRecords.emplace_back(std::forward<DomainValidationRecordsT>(value));
return *
this; }
185 template<
typename RequestFailureReasonT = Aws::String>
186 void SetRequestFailureReason(RequestFailureReasonT&& value) { m_requestFailureReasonHasBeenSet =
true; m_requestFailureReason = std::forward<RequestFailureReasonT>(value); }
187 template<
typename RequestFailureReasonT = Aws::String>
197 inline void SetInUseResourceCount(
int value) { m_inUseResourceCountHasBeenSet =
true; m_inUseResourceCount = value; }
208 template<
typename KeyAlgorithmT = Aws::String>
209 void SetKeyAlgorithm(KeyAlgorithmT&& value) { m_keyAlgorithmHasBeenSet =
true; m_keyAlgorithm = std::forward<KeyAlgorithmT>(value); }
210 template<
typename KeyAlgorithmT = Aws::String>
220 template<
typename CreatedAtT = Aws::Utils::DateTime>
221 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
222 template<
typename CreatedAtT = Aws::Utils::DateTime>
232 template<
typename IssuedAtT = Aws::Utils::DateTime>
233 void SetIssuedAt(IssuedAtT&& value) { m_issuedAtHasBeenSet =
true; m_issuedAt = std::forward<IssuedAtT>(value); }
234 template<
typename IssuedAtT = Aws::Utils::DateTime>
244 template<
typename IssuerCAT = Aws::String>
245 void SetIssuerCA(IssuerCAT&& value) { m_issuerCAHasBeenSet =
true; m_issuerCA = std::forward<IssuerCAT>(value); }
246 template<
typename IssuerCAT = Aws::String>
256 template<
typename NotBeforeT = Aws::Utils::DateTime>
257 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet =
true; m_notBefore = std::forward<NotBeforeT>(value); }
258 template<
typename NotBeforeT = Aws::Utils::DateTime>
268 template<
typename NotAfterT = Aws::Utils::DateTime>
269 void SetNotAfter(NotAfterT&& value) { m_notAfterHasBeenSet =
true; m_notAfter = std::forward<NotAfterT>(value); }
270 template<
typename NotAfterT = Aws::Utils::DateTime>
280 template<
typename EligibleToRenewT = Aws::String>
281 void SetEligibleToRenew(EligibleToRenewT&& value) { m_eligibleToRenewHasBeenSet =
true; m_eligibleToRenew = std::forward<EligibleToRenewT>(value); }
282 template<
typename EligibleToRenewT = Aws::String>
293 template<
typename RenewalSummaryT = RenewalSummary>
294 void SetRenewalSummary(RenewalSummaryT&& value) { m_renewalSummaryHasBeenSet =
true; m_renewalSummary = std::forward<RenewalSummaryT>(value); }
295 template<
typename RenewalSummaryT = RenewalSummary>
306 template<
typename RevokedAtT = Aws::Utils::DateTime>
307 void SetRevokedAt(RevokedAtT&& value) { m_revokedAtHasBeenSet =
true; m_revokedAt = std::forward<RevokedAtT>(value); }
308 template<
typename RevokedAtT = Aws::Utils::DateTime>
319 template<
typename RevocationReasonT = Aws::String>
320 void SetRevocationReason(RevocationReasonT&& value) { m_revocationReasonHasBeenSet =
true; m_revocationReason = std::forward<RevocationReasonT>(value); }
321 template<
typename RevocationReasonT = Aws::String>
334 template<
typename TagsT = Aws::Vector<Tag>>
335 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
336 template<
typename TagsT = Aws::Vector<Tag>>
338 template<
typename TagsT = Tag>
339 Certificate&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
350 template<
typename SupportCodeT = Aws::String>
351 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet =
true; m_supportCode = std::forward<SupportCodeT>(value); }
352 template<
typename SupportCodeT = Aws::String>
358 bool m_arnHasBeenSet =
false;
361 bool m_nameHasBeenSet =
false;
364 bool m_domainNameHasBeenSet =
false;
367 bool m_statusHasBeenSet =
false;
370 bool m_serialNumberHasBeenSet =
false;
373 bool m_subjectAlternativeNamesHasBeenSet =
false;
376 bool m_domainValidationRecordsHasBeenSet =
false;
379 bool m_requestFailureReasonHasBeenSet =
false;
381 int m_inUseResourceCount{0};
382 bool m_inUseResourceCountHasBeenSet =
false;
385 bool m_keyAlgorithmHasBeenSet =
false;
388 bool m_createdAtHasBeenSet =
false;
391 bool m_issuedAtHasBeenSet =
false;
394 bool m_issuerCAHasBeenSet =
false;
397 bool m_notBeforeHasBeenSet =
false;
400 bool m_notAfterHasBeenSet =
false;
403 bool m_eligibleToRenewHasBeenSet =
false;
405 RenewalSummary m_renewalSummary;
406 bool m_renewalSummaryHasBeenSet =
false;
409 bool m_revokedAtHasBeenSet =
false;
412 bool m_revocationReasonHasBeenSet =
false;
415 bool m_tagsHasBeenSet =
false;
418 bool m_supportCodeHasBeenSet =
false;
Certificate & WithEligibleToRenew(EligibleToRenewT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRequestFailureReason() const
Certificate & WithName(NameT &&value)
void SetSupportCode(SupportCodeT &&value)
Certificate & WithKeyAlgorithm(KeyAlgorithmT &&value)
void SetNotAfter(NotAfterT &&value)
void SetRevocationReason(RevocationReasonT &&value)
Certificate & WithDomainName(DomainNameT &&value)
Certificate & WithStatus(CertificateStatus value)
bool SubjectAlternativeNamesHasBeenSet() const
Certificate & WithRequestFailureReason(RequestFailureReasonT &&value)
const Aws::Vector< DomainValidationRecord > & GetDomainValidationRecords() const
const RenewalSummary & GetRenewalSummary() const
bool NotBeforeHasBeenSet() const
Certificate & WithIssuerCA(IssuerCAT &&value)
Certificate & AddDomainValidationRecords(DomainValidationRecordsT &&value)
bool NotAfterHasBeenSet() const
void SetDomainValidationRecords(DomainValidationRecordsT &&value)
const Aws::String & GetKeyAlgorithm() const
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
Certificate & WithNotBefore(NotBeforeT &&value)
bool StatusHasBeenSet() const
bool DomainValidationRecordsHasBeenSet() const
void SetEligibleToRenew(EligibleToRenewT &&value)
AWS_LIGHTSAIL_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Certificate & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
bool IssuedAtHasBeenSet() const
void SetIssuerCA(IssuerCAT &&value)
Certificate & WithSupportCode(SupportCodeT &&value)
CertificateStatus GetStatus() const
AWS_LIGHTSAIL_API Certificate(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEligibleToRenew() const
bool ArnHasBeenSet() const
void SetTags(TagsT &&value)
void SetCreatedAt(CreatedAtT &&value)
Certificate & WithSerialNumber(SerialNumberT &&value)
void SetArn(ArnT &&value)
bool TagsHasBeenSet() const
const Aws::Utils::DateTime & GetNotBefore() const
const Aws::Utils::DateTime & GetRevokedAt() const
const Aws::String & GetIssuerCA() const
const Aws::String & GetSupportCode() const
Certificate & WithRevokedAt(RevokedAtT &&value)
const Aws::String & GetRevocationReason() const
Certificate & WithTags(TagsT &&value)
void SetRevokedAt(RevokedAtT &&value)
void SetIssuedAt(IssuedAtT &&value)
Certificate & WithCreatedAt(CreatedAtT &&value)
void SetRequestFailureReason(RequestFailureReasonT &&value)
const Aws::Utils::DateTime & GetIssuedAt() const
void SetKeyAlgorithm(KeyAlgorithmT &&value)
void SetInUseResourceCount(int value)
bool SupportCodeHasBeenSet() const
bool RenewalSummaryHasBeenSet() const
bool RevokedAtHasBeenSet() const
bool NameHasBeenSet() const
void SetSerialNumber(SerialNumberT &&value)
bool DomainNameHasBeenSet() const
const Aws::Utils::DateTime & GetNotAfter() const
Certificate & WithRevocationReason(RevocationReasonT &&value)
int GetInUseResourceCount() const
const Aws::String & GetName() const
void SetNotBefore(NotBeforeT &&value)
Certificate & WithDomainValidationRecords(DomainValidationRecordsT &&value)
Certificate & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
Certificate & WithArn(ArnT &&value)
bool CreatedAtHasBeenSet() const
bool KeyAlgorithmHasBeenSet() const
bool InUseResourceCountHasBeenSet() const
Certificate & WithInUseResourceCount(int value)
void SetRenewalSummary(RenewalSummaryT &&value)
void SetName(NameT &&value)
Certificate & AddTags(TagsT &&value)
void SetDomainName(DomainNameT &&value)
bool SerialNumberHasBeenSet() const
void SetStatus(CertificateStatus value)
const Aws::String & GetDomainName() const
Certificate & WithIssuedAt(IssuedAtT &&value)
Certificate & WithRenewalSummary(RenewalSummaryT &&value)
const Aws::String & GetSerialNumber() const
bool RevocationReasonHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
bool RequestFailureReasonHasBeenSet() const
AWS_LIGHTSAIL_API Certificate()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Certificate & WithNotAfter(NotAfterT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
bool EligibleToRenewHasBeenSet() const
bool IssuerCAHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue