AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
LoadBalancerTlsCertificate.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/LoadBalancerTlsCertificateDomainValidationRecord.h>
12#include <aws/lightsail/model/LoadBalancerTlsCertificateFailureReason.h>
13#include <aws/lightsail/model/LoadBalancerTlsCertificateRenewalSummary.h>
14#include <aws/lightsail/model/LoadBalancerTlsCertificateRevocationReason.h>
15#include <aws/lightsail/model/LoadBalancerTlsCertificateStatus.h>
16#include <aws/lightsail/model/ResourceLocation.h>
17#include <aws/lightsail/model/ResourceType.h>
18#include <aws/lightsail/model/Tag.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace Lightsail {
30namespace Model {
31
39 public:
40 AWS_LIGHTSAIL_API LoadBalancerTlsCertificate() = default;
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template <typename NameT = Aws::String>
52 void SetName(NameT&& value) {
53 m_nameHasBeenSet = true;
54 m_name = std::forward<NameT>(value);
55 }
56 template <typename NameT = Aws::String>
58 SetName(std::forward<NameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetArn() const { return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 template <typename ArnT = Aws::String>
70 void SetArn(ArnT&& value) {
71 m_arnHasBeenSet = true;
72 m_arn = std::forward<ArnT>(value);
73 }
74 template <typename ArnT = Aws::String>
76 SetArn(std::forward<ArnT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
88 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
89 template <typename SupportCodeT = Aws::String>
90 void SetSupportCode(SupportCodeT&& value) {
91 m_supportCodeHasBeenSet = true;
92 m_supportCode = std::forward<SupportCodeT>(value);
93 }
94 template <typename SupportCodeT = Aws::String>
96 SetSupportCode(std::forward<SupportCodeT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
106 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) {
109 m_createdAtHasBeenSet = true;
110 m_createdAt = std::forward<CreatedAtT>(value);
111 }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
114 SetCreatedAt(std::forward<CreatedAtT>(value));
115 return *this;
116 }
118
120
124 inline const ResourceLocation& GetLocation() const { return m_location; }
125 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
126 template <typename LocationT = ResourceLocation>
127 void SetLocation(LocationT&& value) {
128 m_locationHasBeenSet = true;
129 m_location = std::forward<LocationT>(value);
130 }
131 template <typename LocationT = ResourceLocation>
133 SetLocation(std::forward<LocationT>(value));
134 return *this;
135 }
137
139
154 inline ResourceType GetResourceType() const { return m_resourceType; }
155 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
156 inline void SetResourceType(ResourceType value) {
157 m_resourceTypeHasBeenSet = true;
158 m_resourceType = value;
159 }
161 SetResourceType(value);
162 return *this;
163 }
165
167
173 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template <typename TagsT = Aws::Vector<Tag>>
176 void SetTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags = std::forward<TagsT>(value);
179 }
180 template <typename TagsT = Aws::Vector<Tag>>
182 SetTags(std::forward<TagsT>(value));
183 return *this;
184 }
185 template <typename TagsT = Tag>
187 m_tagsHasBeenSet = true;
188 m_tags.emplace_back(std::forward<TagsT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetLoadBalancerName() const { return m_loadBalancerName; }
198 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
199 template <typename LoadBalancerNameT = Aws::String>
200 void SetLoadBalancerName(LoadBalancerNameT&& value) {
201 m_loadBalancerNameHasBeenSet = true;
202 m_loadBalancerName = std::forward<LoadBalancerNameT>(value);
203 }
204 template <typename LoadBalancerNameT = Aws::String>
206 SetLoadBalancerName(std::forward<LoadBalancerNameT>(value));
207 return *this;
208 }
210
212
216 inline bool GetIsAttached() const { return m_isAttached; }
217 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
218 inline void SetIsAttached(bool value) {
219 m_isAttachedHasBeenSet = true;
220 m_isAttached = value;
221 }
223 SetIsAttached(value);
224 return *this;
225 }
227
229
232 inline LoadBalancerTlsCertificateStatus GetStatus() const { return m_status; }
233 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
235 m_statusHasBeenSet = true;
236 m_status = value;
237 }
239 SetStatus(value);
240 return *this;
241 }
243
245
248 inline const Aws::String& GetDomainName() const { return m_domainName; }
249 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
250 template <typename DomainNameT = Aws::String>
251 void SetDomainName(DomainNameT&& value) {
252 m_domainNameHasBeenSet = true;
253 m_domainName = std::forward<DomainNameT>(value);
254 }
255 template <typename DomainNameT = Aws::String>
257 SetDomainName(std::forward<DomainNameT>(value));
258 return *this;
259 }
261
263
268 return m_domainValidationRecords;
269 }
270 inline bool DomainValidationRecordsHasBeenSet() const { return m_domainValidationRecordsHasBeenSet; }
271 template <typename DomainValidationRecordsT = Aws::Vector<LoadBalancerTlsCertificateDomainValidationRecord>>
272 void SetDomainValidationRecords(DomainValidationRecordsT&& value) {
273 m_domainValidationRecordsHasBeenSet = true;
274 m_domainValidationRecords = std::forward<DomainValidationRecordsT>(value);
275 }
276 template <typename DomainValidationRecordsT = Aws::Vector<LoadBalancerTlsCertificateDomainValidationRecord>>
277 LoadBalancerTlsCertificate& WithDomainValidationRecords(DomainValidationRecordsT&& value) {
278 SetDomainValidationRecords(std::forward<DomainValidationRecordsT>(value));
279 return *this;
280 }
281 template <typename DomainValidationRecordsT = LoadBalancerTlsCertificateDomainValidationRecord>
282 LoadBalancerTlsCertificate& AddDomainValidationRecords(DomainValidationRecordsT&& value) {
283 m_domainValidationRecordsHasBeenSet = true;
284 m_domainValidationRecords.emplace_back(std::forward<DomainValidationRecordsT>(value));
285 return *this;
286 }
288
290
331 inline LoadBalancerTlsCertificateFailureReason GetFailureReason() const { return m_failureReason; }
332 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
334 m_failureReasonHasBeenSet = true;
335 m_failureReason = value;
336 }
338 SetFailureReason(value);
339 return *this;
340 }
342
344
347 inline const Aws::Utils::DateTime& GetIssuedAt() const { return m_issuedAt; }
348 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
349 template <typename IssuedAtT = Aws::Utils::DateTime>
350 void SetIssuedAt(IssuedAtT&& value) {
351 m_issuedAtHasBeenSet = true;
352 m_issuedAt = std::forward<IssuedAtT>(value);
353 }
354 template <typename IssuedAtT = Aws::Utils::DateTime>
356 SetIssuedAt(std::forward<IssuedAtT>(value));
357 return *this;
358 }
360
362
365 inline const Aws::String& GetIssuer() const { return m_issuer; }
366 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
367 template <typename IssuerT = Aws::String>
368 void SetIssuer(IssuerT&& value) {
369 m_issuerHasBeenSet = true;
370 m_issuer = std::forward<IssuerT>(value);
371 }
372 template <typename IssuerT = Aws::String>
374 SetIssuer(std::forward<IssuerT>(value));
375 return *this;
376 }
378
380
383 inline const Aws::String& GetKeyAlgorithm() const { return m_keyAlgorithm; }
384 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
385 template <typename KeyAlgorithmT = Aws::String>
386 void SetKeyAlgorithm(KeyAlgorithmT&& value) {
387 m_keyAlgorithmHasBeenSet = true;
388 m_keyAlgorithm = std::forward<KeyAlgorithmT>(value);
389 }
390 template <typename KeyAlgorithmT = Aws::String>
392 SetKeyAlgorithm(std::forward<KeyAlgorithmT>(value));
393 return *this;
394 }
396
398
401 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
402 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
403 template <typename NotAfterT = Aws::Utils::DateTime>
404 void SetNotAfter(NotAfterT&& value) {
405 m_notAfterHasBeenSet = true;
406 m_notAfter = std::forward<NotAfterT>(value);
407 }
408 template <typename NotAfterT = Aws::Utils::DateTime>
410 SetNotAfter(std::forward<NotAfterT>(value));
411 return *this;
412 }
414
416
419 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
420 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
421 template <typename NotBeforeT = Aws::Utils::DateTime>
422 void SetNotBefore(NotBeforeT&& value) {
423 m_notBeforeHasBeenSet = true;
424 m_notBefore = std::forward<NotBeforeT>(value);
425 }
426 template <typename NotBeforeT = Aws::Utils::DateTime>
428 SetNotBefore(std::forward<NotBeforeT>(value));
429 return *this;
430 }
432
434
438 inline const LoadBalancerTlsCertificateRenewalSummary& GetRenewalSummary() const { return m_renewalSummary; }
439 inline bool RenewalSummaryHasBeenSet() const { return m_renewalSummaryHasBeenSet; }
440 template <typename RenewalSummaryT = LoadBalancerTlsCertificateRenewalSummary>
441 void SetRenewalSummary(RenewalSummaryT&& value) {
442 m_renewalSummaryHasBeenSet = true;
443 m_renewalSummary = std::forward<RenewalSummaryT>(value);
444 }
445 template <typename RenewalSummaryT = LoadBalancerTlsCertificateRenewalSummary>
447 SetRenewalSummary(std::forward<RenewalSummaryT>(value));
448 return *this;
449 }
451
453
457 inline LoadBalancerTlsCertificateRevocationReason GetRevocationReason() const { return m_revocationReason; }
458 inline bool RevocationReasonHasBeenSet() const { return m_revocationReasonHasBeenSet; }
460 m_revocationReasonHasBeenSet = true;
461 m_revocationReason = value;
462 }
464 SetRevocationReason(value);
465 return *this;
466 }
468
470
474 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
475 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
476 template <typename RevokedAtT = Aws::Utils::DateTime>
477 void SetRevokedAt(RevokedAtT&& value) {
478 m_revokedAtHasBeenSet = true;
479 m_revokedAt = std::forward<RevokedAtT>(value);
480 }
481 template <typename RevokedAtT = Aws::Utils::DateTime>
483 SetRevokedAt(std::forward<RevokedAtT>(value));
484 return *this;
485 }
487
489
492 inline const Aws::String& GetSerial() const { return m_serial; }
493 inline bool SerialHasBeenSet() const { return m_serialHasBeenSet; }
494 template <typename SerialT = Aws::String>
495 void SetSerial(SerialT&& value) {
496 m_serialHasBeenSet = true;
497 m_serial = std::forward<SerialT>(value);
498 }
499 template <typename SerialT = Aws::String>
501 SetSerial(std::forward<SerialT>(value));
502 return *this;
503 }
505
507
510 inline const Aws::String& GetSignatureAlgorithm() const { return m_signatureAlgorithm; }
511 inline bool SignatureAlgorithmHasBeenSet() const { return m_signatureAlgorithmHasBeenSet; }
512 template <typename SignatureAlgorithmT = Aws::String>
513 void SetSignatureAlgorithm(SignatureAlgorithmT&& value) {
514 m_signatureAlgorithmHasBeenSet = true;
515 m_signatureAlgorithm = std::forward<SignatureAlgorithmT>(value);
516 }
517 template <typename SignatureAlgorithmT = Aws::String>
519 SetSignatureAlgorithm(std::forward<SignatureAlgorithmT>(value));
520 return *this;
521 }
523
525
529 inline const Aws::String& GetSubject() const { return m_subject; }
530 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
531 template <typename SubjectT = Aws::String>
532 void SetSubject(SubjectT&& value) {
533 m_subjectHasBeenSet = true;
534 m_subject = std::forward<SubjectT>(value);
535 }
536 template <typename SubjectT = Aws::String>
538 SetSubject(std::forward<SubjectT>(value));
539 return *this;
540 }
542
544
549 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
550 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
551 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
552 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
553 m_subjectAlternativeNamesHasBeenSet = true;
554 m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value);
555 }
556 template <typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
557 LoadBalancerTlsCertificate& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
558 SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value));
559 return *this;
560 }
561 template <typename SubjectAlternativeNamesT = Aws::String>
562 LoadBalancerTlsCertificate& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) {
563 m_subjectAlternativeNamesHasBeenSet = true;
564 m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value));
565 return *this;
566 }
568 private:
569 Aws::String m_name;
570
571 Aws::String m_arn;
572
573 Aws::String m_supportCode;
574
575 Aws::Utils::DateTime m_createdAt{};
576
577 ResourceLocation m_location;
578
579 ResourceType m_resourceType{ResourceType::NOT_SET};
580
581 Aws::Vector<Tag> m_tags;
582
583 Aws::String m_loadBalancerName;
584
585 bool m_isAttached{false};
586
588
589 Aws::String m_domainName;
590
592
594
595 Aws::Utils::DateTime m_issuedAt{};
596
597 Aws::String m_issuer;
598
599 Aws::String m_keyAlgorithm;
600
601 Aws::Utils::DateTime m_notAfter{};
602
603 Aws::Utils::DateTime m_notBefore{};
604
605 LoadBalancerTlsCertificateRenewalSummary m_renewalSummary;
606
608
609 Aws::Utils::DateTime m_revokedAt{};
610
611 Aws::String m_serial;
612
613 Aws::String m_signatureAlgorithm;
614
615 Aws::String m_subject;
616
617 Aws::Vector<Aws::String> m_subjectAlternativeNames;
618 bool m_nameHasBeenSet = false;
619 bool m_arnHasBeenSet = false;
620 bool m_supportCodeHasBeenSet = false;
621 bool m_createdAtHasBeenSet = false;
622 bool m_locationHasBeenSet = false;
623 bool m_resourceTypeHasBeenSet = false;
624 bool m_tagsHasBeenSet = false;
625 bool m_loadBalancerNameHasBeenSet = false;
626 bool m_isAttachedHasBeenSet = false;
627 bool m_statusHasBeenSet = false;
628 bool m_domainNameHasBeenSet = false;
629 bool m_domainValidationRecordsHasBeenSet = false;
630 bool m_failureReasonHasBeenSet = false;
631 bool m_issuedAtHasBeenSet = false;
632 bool m_issuerHasBeenSet = false;
633 bool m_keyAlgorithmHasBeenSet = false;
634 bool m_notAfterHasBeenSet = false;
635 bool m_notBeforeHasBeenSet = false;
636 bool m_renewalSummaryHasBeenSet = false;
637 bool m_revocationReasonHasBeenSet = false;
638 bool m_revokedAtHasBeenSet = false;
639 bool m_serialHasBeenSet = false;
640 bool m_signatureAlgorithmHasBeenSet = false;
641 bool m_subjectHasBeenSet = false;
642 bool m_subjectAlternativeNamesHasBeenSet = false;
643};
644
645} // namespace Model
646} // namespace Lightsail
647} // namespace Aws
LoadBalancerTlsCertificate & WithIsAttached(bool value)
AWS_LIGHTSAIL_API LoadBalancerTlsCertificate(Aws::Utils::Json::JsonView jsonValue)
LoadBalancerTlsCertificate & WithSubject(SubjectT &&value)
LoadBalancerTlsCertificate & WithName(NameT &&value)
LoadBalancerTlsCertificate & WithTags(TagsT &&value)
LoadBalancerTlsCertificate & WithNotAfter(NotAfterT &&value)
AWS_LIGHTSAIL_API LoadBalancerTlsCertificate & operator=(Aws::Utils::Json::JsonView jsonValue)
LoadBalancerTlsCertificate & WithSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
const LoadBalancerTlsCertificateRenewalSummary & GetRenewalSummary() const
LoadBalancerTlsCertificate & WithSerial(SerialT &&value)
LoadBalancerTlsCertificate & WithResourceType(ResourceType value)
LoadBalancerTlsCertificate & WithRenewalSummary(RenewalSummaryT &&value)
LoadBalancerTlsCertificate & WithLoadBalancerName(LoadBalancerNameT &&value)
LoadBalancerTlsCertificate & WithIssuedAt(IssuedAtT &&value)
void SetFailureReason(LoadBalancerTlsCertificateFailureReason value)
const Aws::Vector< LoadBalancerTlsCertificateDomainValidationRecord > & GetDomainValidationRecords() const
LoadBalancerTlsCertificate & AddDomainValidationRecords(DomainValidationRecordsT &&value)
void SetSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
LoadBalancerTlsCertificate & WithCreatedAt(CreatedAtT &&value)
LoadBalancerTlsCertificate & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
LoadBalancerTlsCertificate & WithStatus(LoadBalancerTlsCertificateStatus value)
LoadBalancerTlsCertificate & AddTags(TagsT &&value)
LoadBalancerTlsCertificate & WithDomainName(DomainNameT &&value)
void SetDomainValidationRecords(DomainValidationRecordsT &&value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
LoadBalancerTlsCertificate & WithKeyAlgorithm(KeyAlgorithmT &&value)
LoadBalancerTlsCertificate & WithDomainValidationRecords(DomainValidationRecordsT &&value)
LoadBalancerTlsCertificateFailureReason GetFailureReason() const
void SetRevocationReason(LoadBalancerTlsCertificateRevocationReason value)
AWS_LIGHTSAIL_API LoadBalancerTlsCertificate()=default
LoadBalancerTlsCertificate & WithSupportCode(SupportCodeT &&value)
LoadBalancerTlsCertificate & WithLocation(LocationT &&value)
LoadBalancerTlsCertificate & WithNotBefore(NotBeforeT &&value)
LoadBalancerTlsCertificateRevocationReason GetRevocationReason() const
LoadBalancerTlsCertificate & WithRevokedAt(RevokedAtT &&value)
LoadBalancerTlsCertificate & WithArn(ArnT &&value)
LoadBalancerTlsCertificate & WithFailureReason(LoadBalancerTlsCertificateFailureReason value)
LoadBalancerTlsCertificate & WithRevocationReason(LoadBalancerTlsCertificateRevocationReason value)
LoadBalancerTlsCertificate & WithIssuer(IssuerT &&value)
LoadBalancerTlsCertificate & WithSignatureAlgorithm(SignatureAlgorithmT &&value)
void SetStatus(LoadBalancerTlsCertificateStatus 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