AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/CertificateStatus.h>
12#include <aws/lightsail/model/DomainValidationRecord.h>
13#include <aws/lightsail/model/RenewalSummary.h>
14#include <aws/lightsail/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Lightsail {
26namespace Model {
27
39 public:
40 AWS_LIGHTSAIL_API Certificate() = default;
41 AWS_LIGHTSAIL_API Certificate(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template <typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) {
53 m_arnHasBeenSet = true;
54 m_arn = std::forward<ArnT>(value);
55 }
56 template <typename ArnT = Aws::String>
57 Certificate& WithArn(ArnT&& value) {
58 SetArn(std::forward<ArnT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template <typename NameT = Aws::String>
70 void SetName(NameT&& value) {
71 m_nameHasBeenSet = true;
72 m_name = std::forward<NameT>(value);
73 }
74 template <typename NameT = Aws::String>
75 Certificate& WithName(NameT&& value) {
76 SetName(std::forward<NameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetDomainName() const { return m_domainName; }
86 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
87 template <typename DomainNameT = Aws::String>
88 void SetDomainName(DomainNameT&& value) {
89 m_domainNameHasBeenSet = true;
90 m_domainName = std::forward<DomainNameT>(value);
91 }
92 template <typename DomainNameT = Aws::String>
93 Certificate& WithDomainName(DomainNameT&& value) {
94 SetDomainName(std::forward<DomainNameT>(value));
95 return *this;
96 }
98
100
103 inline CertificateStatus GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(CertificateStatus value) {
106 m_statusHasBeenSet = true;
107 m_status = value;
108 }
110 SetStatus(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
120 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
121 template <typename SerialNumberT = Aws::String>
122 void SetSerialNumber(SerialNumberT&& value) {
123 m_serialNumberHasBeenSet = true;
124 m_serialNumber = std::forward<SerialNumberT>(value);
125 }
126 template <typename SerialNumberT = Aws::String>
127 Certificate& WithSerialNumber(SerialNumberT&& value) {
128 SetSerialNumber(std::forward<SerialNumberT>(value));
129 return *this;
130 }
132
134
139 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
140 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
141 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
142 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
143 m_subjectAlternativeNamesHasBeenSet = true;
144 m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value);
145 }
146 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
147 Certificate& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
148 SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value));
149 return *this;
150 }
151 template <typename SubjectAlternativeNamesT = Aws::String>
152 Certificate& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
153 m_subjectAlternativeNamesHasBeenSet = true;
154 m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Vector<DomainValidationRecord>& GetDomainValidationRecords() const { return m_domainValidationRecords; }
165 inline bool DomainValidationRecordsHasBeenSet() const { return m_domainValidationRecordsHasBeenSet; }
166 template <typename DomainValidationRecordsT = Aws::Vector<DomainValidationRecord>>
167 void SetDomainValidationRecords(DomainValidationRecordsT&& value) {
168 m_domainValidationRecordsHasBeenSet = true;
169 m_domainValidationRecords = std::forward<DomainValidationRecordsT>(value);
170 }
171 template <typename DomainValidationRecordsT = Aws::Vector<DomainValidationRecord>>
172 Certificate& WithDomainValidationRecords(DomainValidationRecordsT&& value) {
173 SetDomainValidationRecords(std::forward<DomainValidationRecordsT>(value));
174 return *this;
175 }
176 template <typename DomainValidationRecordsT = DomainValidationRecord>
177 Certificate& AddDomainValidationRecords(DomainValidationRecordsT&& value) {
178 m_domainValidationRecordsHasBeenSet = true;
179 m_domainValidationRecords.emplace_back(std::forward<DomainValidationRecordsT>(value));
180 return *this;
181 }
183
185
227 inline const Aws::String& GetRequestFailureReason() const { return m_requestFailureReason; }
228 inline bool RequestFailureReasonHasBeenSet() const { return m_requestFailureReasonHasBeenSet; }
229 template <typename RequestFailureReasonT = Aws::String>
230 void SetRequestFailureReason(RequestFailureReasonT&& value) {
231 m_requestFailureReasonHasBeenSet = true;
232 m_requestFailureReason = std::forward<RequestFailureReasonT>(value);
233 }
234 template <typename RequestFailureReasonT = Aws::String>
235 Certificate& WithRequestFailureReason(RequestFailureReasonT&& value) {
236 SetRequestFailureReason(std::forward<RequestFailureReasonT>(value));
237 return *this;
238 }
240
242
245 inline int GetInUseResourceCount() const { return m_inUseResourceCount; }
246 inline bool InUseResourceCountHasBeenSet() const { return m_inUseResourceCountHasBeenSet; }
247 inline void SetInUseResourceCount(int value) {
248 m_inUseResourceCountHasBeenSet = true;
249 m_inUseResourceCount = value;
250 }
253 return *this;
254 }
256
258
262 inline const Aws::String& GetKeyAlgorithm() const { return m_keyAlgorithm; }
263 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
264 template <typename KeyAlgorithmT = Aws::String>
265 void SetKeyAlgorithm(KeyAlgorithmT&& value) {
266 m_keyAlgorithmHasBeenSet = true;
267 m_keyAlgorithm = std::forward<KeyAlgorithmT>(value);
268 }
269 template <typename KeyAlgorithmT = Aws::String>
270 Certificate& WithKeyAlgorithm(KeyAlgorithmT&& value) {
271 SetKeyAlgorithm(std::forward<KeyAlgorithmT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
281 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
282 template <typename CreatedAtT = Aws::Utils::DateTime>
283 void SetCreatedAt(CreatedAtT&& value) {
284 m_createdAtHasBeenSet = true;
285 m_createdAt = std::forward<CreatedAtT>(value);
286 }
287 template <typename CreatedAtT = Aws::Utils::DateTime>
288 Certificate& WithCreatedAt(CreatedAtT&& value) {
289 SetCreatedAt(std::forward<CreatedAtT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Utils::DateTime& GetIssuedAt() const { return m_issuedAt; }
299 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
300 template <typename IssuedAtT = Aws::Utils::DateTime>
301 void SetIssuedAt(IssuedAtT&& value) {
302 m_issuedAtHasBeenSet = true;
303 m_issuedAt = std::forward<IssuedAtT>(value);
304 }
305 template <typename IssuedAtT = Aws::Utils::DateTime>
306 Certificate& WithIssuedAt(IssuedAtT&& value) {
307 SetIssuedAt(std::forward<IssuedAtT>(value));
308 return *this;
309 }
311
313
316 inline const Aws::String& GetIssuerCA() const { return m_issuerCA; }
317 inline bool IssuerCAHasBeenSet() const { return m_issuerCAHasBeenSet; }
318 template <typename IssuerCAT = Aws::String>
319 void SetIssuerCA(IssuerCAT&& value) {
320 m_issuerCAHasBeenSet = true;
321 m_issuerCA = std::forward<IssuerCAT>(value);
322 }
323 template <typename IssuerCAT = Aws::String>
324 Certificate& WithIssuerCA(IssuerCAT&& value) {
325 SetIssuerCA(std::forward<IssuerCAT>(value));
326 return *this;
327 }
329
331
334 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
335 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
336 template <typename NotBeforeT = Aws::Utils::DateTime>
337 void SetNotBefore(NotBeforeT&& value) {
338 m_notBeforeHasBeenSet = true;
339 m_notBefore = std::forward<NotBeforeT>(value);
340 }
341 template <typename NotBeforeT = Aws::Utils::DateTime>
342 Certificate& WithNotBefore(NotBeforeT&& value) {
343 SetNotBefore(std::forward<NotBeforeT>(value));
344 return *this;
345 }
347
349
352 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
353 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
354 template <typename NotAfterT = Aws::Utils::DateTime>
355 void SetNotAfter(NotAfterT&& value) {
356 m_notAfterHasBeenSet = true;
357 m_notAfter = std::forward<NotAfterT>(value);
358 }
359 template <typename NotAfterT = Aws::Utils::DateTime>
360 Certificate& WithNotAfter(NotAfterT&& value) {
361 SetNotAfter(std::forward<NotAfterT>(value));
362 return *this;
363 }
365
367
370 inline const Aws::String& GetEligibleToRenew() const { return m_eligibleToRenew; }
371 inline bool EligibleToRenewHasBeenSet() const { return m_eligibleToRenewHasBeenSet; }
372 template <typename EligibleToRenewT = Aws::String>
373 void SetEligibleToRenew(EligibleToRenewT&& value) {
374 m_eligibleToRenewHasBeenSet = true;
375 m_eligibleToRenew = std::forward<EligibleToRenewT>(value);
376 }
377 template <typename EligibleToRenewT = Aws::String>
378 Certificate& WithEligibleToRenew(EligibleToRenewT&& value) {
379 SetEligibleToRenew(std::forward<EligibleToRenewT>(value));
380 return *this;
381 }
383
385
389 inline const RenewalSummary& GetRenewalSummary() const { return m_renewalSummary; }
390 inline bool RenewalSummaryHasBeenSet() const { return m_renewalSummaryHasBeenSet; }
391 template <typename RenewalSummaryT = RenewalSummary>
392 void SetRenewalSummary(RenewalSummaryT&& value) {
393 m_renewalSummaryHasBeenSet = true;
394 m_renewalSummary = std::forward<RenewalSummaryT>(value);
395 }
396 template <typename RenewalSummaryT = RenewalSummary>
397 Certificate& WithRenewalSummary(RenewalSummaryT&& value) {
398 SetRenewalSummary(std::forward<RenewalSummaryT>(value));
399 return *this;
400 }
402
404
408 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
409 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
410 template <typename RevokedAtT = Aws::Utils::DateTime>
411 void SetRevokedAt(RevokedAtT&& value) {
412 m_revokedAtHasBeenSet = true;
413 m_revokedAt = std::forward<RevokedAtT>(value);
414 }
415 template <typename RevokedAtT = Aws::Utils::DateTime>
416 Certificate& WithRevokedAt(RevokedAtT&& value) {
417 SetRevokedAt(std::forward<RevokedAtT>(value));
418 return *this;
419 }
421
423
427 inline const Aws::String& GetRevocationReason() const { return m_revocationReason; }
428 inline bool RevocationReasonHasBeenSet() const { return m_revocationReasonHasBeenSet; }
429 template <typename RevocationReasonT = Aws::String>
430 void SetRevocationReason(RevocationReasonT&& value) {
431 m_revocationReasonHasBeenSet = true;
432 m_revocationReason = std::forward<RevocationReasonT>(value);
433 }
434 template <typename RevocationReasonT = Aws::String>
435 Certificate& WithRevocationReason(RevocationReasonT&& value) {
436 SetRevocationReason(std::forward<RevocationReasonT>(value));
437 return *this;
438 }
440
442
448 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
449 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
450 template <typename TagsT = Aws::Vector<Tag>>
451 void SetTags(TagsT&& value) {
452 m_tagsHasBeenSet = true;
453 m_tags = std::forward<TagsT>(value);
454 }
455 template <typename TagsT = Aws::Vector<Tag>>
456 Certificate& WithTags(TagsT&& value) {
457 SetTags(std::forward<TagsT>(value));
458 return *this;
459 }
460 template <typename TagsT = Tag>
461 Certificate& AddTags(TagsT&& value) {
462 m_tagsHasBeenSet = true;
463 m_tags.emplace_back(std::forward<TagsT>(value));
464 return *this;
465 }
467
469
474 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
475 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
476 template <typename SupportCodeT = Aws::String>
477 void SetSupportCode(SupportCodeT&& value) {
478 m_supportCodeHasBeenSet = true;
479 m_supportCode = std::forward<SupportCodeT>(value);
480 }
481 template <typename SupportCodeT = Aws::String>
482 Certificate& WithSupportCode(SupportCodeT&& value) {
483 SetSupportCode(std::forward<SupportCodeT>(value));
484 return *this;
485 }
487 private:
488 Aws::String m_arn;
489 bool m_arnHasBeenSet = false;
490
491 Aws::String m_name;
492 bool m_nameHasBeenSet = false;
493
494 Aws::String m_domainName;
495 bool m_domainNameHasBeenSet = false;
496
498 bool m_statusHasBeenSet = false;
499
500 Aws::String m_serialNumber;
501 bool m_serialNumberHasBeenSet = false;
502
503 Aws::Vector<Aws::String> m_subjectAlternativeNames;
504 bool m_subjectAlternativeNamesHasBeenSet = false;
505
506 Aws::Vector<DomainValidationRecord> m_domainValidationRecords;
507 bool m_domainValidationRecordsHasBeenSet = false;
508
509 Aws::String m_requestFailureReason;
510 bool m_requestFailureReasonHasBeenSet = false;
511
512 int m_inUseResourceCount{0};
513 bool m_inUseResourceCountHasBeenSet = false;
514
515 Aws::String m_keyAlgorithm;
516 bool m_keyAlgorithmHasBeenSet = false;
517
518 Aws::Utils::DateTime m_createdAt{};
519 bool m_createdAtHasBeenSet = false;
520
521 Aws::Utils::DateTime m_issuedAt{};
522 bool m_issuedAtHasBeenSet = false;
523
524 Aws::String m_issuerCA;
525 bool m_issuerCAHasBeenSet = false;
526
527 Aws::Utils::DateTime m_notBefore{};
528 bool m_notBeforeHasBeenSet = false;
529
530 Aws::Utils::DateTime m_notAfter{};
531 bool m_notAfterHasBeenSet = false;
532
533 Aws::String m_eligibleToRenew;
534 bool m_eligibleToRenewHasBeenSet = false;
535
536 RenewalSummary m_renewalSummary;
537 bool m_renewalSummaryHasBeenSet = false;
538
539 Aws::Utils::DateTime m_revokedAt{};
540 bool m_revokedAtHasBeenSet = false;
541
542 Aws::String m_revocationReason;
543 bool m_revocationReasonHasBeenSet = false;
544
545 Aws::Vector<Tag> m_tags;
546 bool m_tagsHasBeenSet = false;
547
548 Aws::String m_supportCode;
549 bool m_supportCodeHasBeenSet = false;
550};
551
552} // namespace Model
553} // namespace Lightsail
554} // namespace Aws
Certificate & WithEligibleToRenew(EligibleToRenewT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRequestFailureReason() const
Certificate & WithName(NameT &&value)
Definition Certificate.h:75
void SetSupportCode(SupportCodeT &&value)
Certificate & WithKeyAlgorithm(KeyAlgorithmT &&value)
void SetNotAfter(NotAfterT &&value)
void SetRevocationReason(RevocationReasonT &&value)
Certificate & WithDomainName(DomainNameT &&value)
Definition Certificate.h:93
Certificate & WithStatus(CertificateStatus value)
Certificate & WithRequestFailureReason(RequestFailureReasonT &&value)
const Aws::Vector< DomainValidationRecord > & GetDomainValidationRecords() const
const RenewalSummary & GetRenewalSummary() const
Certificate & WithIssuerCA(IssuerCAT &&value)
Certificate & AddDomainValidationRecords(DomainValidationRecordsT &&value)
void SetDomainValidationRecords(DomainValidationRecordsT &&value)
const Aws::String & GetKeyAlgorithm() const
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
Certificate & WithNotBefore(NotBeforeT &&value)
void SetEligibleToRenew(EligibleToRenewT &&value)
AWS_LIGHTSAIL_API Certificate & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
Definition Certificate.h:49
Certificate & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
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
void SetCreatedAt(CreatedAtT &&value)
Certificate & WithSerialNumber(SerialNumberT &&value)
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 SetSerialNumber(SerialNumberT &&value)
const Aws::Utils::DateTime & GetNotAfter() const
Certificate & WithRevocationReason(RevocationReasonT &&value)
const Aws::String & GetName() const
Definition Certificate.h:67
void SetNotBefore(NotBeforeT &&value)
Certificate & WithDomainValidationRecords(DomainValidationRecordsT &&value)
Certificate & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
Certificate & WithArn(ArnT &&value)
Definition Certificate.h:57
Certificate & WithInUseResourceCount(int value)
void SetRenewalSummary(RenewalSummaryT &&value)
Certificate & AddTags(TagsT &&value)
void SetDomainName(DomainNameT &&value)
Definition Certificate.h:88
void SetStatus(CertificateStatus value)
const Aws::String & GetDomainName() const
Definition Certificate.h:85
Certificate & WithIssuedAt(IssuedAtT &&value)
Certificate & WithRenewalSummary(RenewalSummaryT &&value)
const Aws::String & GetSerialNumber() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_LIGHTSAIL_API Certificate()=default
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Certificate & WithNotAfter(NotAfterT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue