AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoadBalancerTlsCertificate.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/LoadBalancerTlsCertificateStatus.h>
14#include <aws/lightsail/model/LoadBalancerTlsCertificateFailureReason.h>
15#include <aws/lightsail/model/LoadBalancerTlsCertificateRenewalSummary.h>
16#include <aws/lightsail/model/LoadBalancerTlsCertificateRevocationReason.h>
17#include <aws/lightsail/model/Tag.h>
18#include <aws/lightsail/model/LoadBalancerTlsCertificateDomainValidationRecord.h>
19#include <utility>
20
21namespace Aws
22{
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28 class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Lightsail
32{
33namespace Model
34{
35
43 {
44 public:
45 AWS_LIGHTSAIL_API LoadBalancerTlsCertificate() = default;
48 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 LoadBalancerTlsCertificate& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
71 template<typename ArnT = Aws::String>
72 LoadBalancerTlsCertificate& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
74
76
81 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
82 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
83 template<typename SupportCodeT = Aws::String>
84 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::forward<SupportCodeT>(value); }
85 template<typename SupportCodeT = Aws::String>
86 LoadBalancerTlsCertificate& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template<typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
97 template<typename CreatedAtT = Aws::Utils::DateTime>
98 LoadBalancerTlsCertificate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
100
102
106 inline const ResourceLocation& GetLocation() const { return m_location; }
107 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
108 template<typename LocationT = ResourceLocation>
109 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
110 template<typename LocationT = ResourceLocation>
111 LoadBalancerTlsCertificate& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
113
115
130 inline ResourceType GetResourceType() const { return m_resourceType; }
131 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
132 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
135
137
143 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Vector<Tag>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Vector<Tag>>
148 LoadBalancerTlsCertificate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsT = Tag>
150 LoadBalancerTlsCertificate& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
152
154
157 inline const Aws::String& GetLoadBalancerName() const { return m_loadBalancerName; }
158 inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
159 template<typename LoadBalancerNameT = Aws::String>
160 void SetLoadBalancerName(LoadBalancerNameT&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::forward<LoadBalancerNameT>(value); }
161 template<typename LoadBalancerNameT = Aws::String>
162 LoadBalancerTlsCertificate& WithLoadBalancerName(LoadBalancerNameT&& value) { SetLoadBalancerName(std::forward<LoadBalancerNameT>(value)); return *this;}
164
166
170 inline bool GetIsAttached() const { return m_isAttached; }
171 inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; }
172 inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; }
173 inline LoadBalancerTlsCertificate& WithIsAttached(bool value) { SetIsAttached(value); return *this;}
175
177
180 inline LoadBalancerTlsCertificateStatus GetStatus() const { return m_status; }
181 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
182 inline void SetStatus(LoadBalancerTlsCertificateStatus value) { m_statusHasBeenSet = true; m_status = value; }
185
187
190 inline const Aws::String& GetDomainName() const { return m_domainName; }
191 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
192 template<typename DomainNameT = Aws::String>
193 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
194 template<typename DomainNameT = Aws::String>
195 LoadBalancerTlsCertificate& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
197
199
203 inline const Aws::Vector<LoadBalancerTlsCertificateDomainValidationRecord>& GetDomainValidationRecords() const { return m_domainValidationRecords; }
204 inline bool DomainValidationRecordsHasBeenSet() const { return m_domainValidationRecordsHasBeenSet; }
205 template<typename DomainValidationRecordsT = Aws::Vector<LoadBalancerTlsCertificateDomainValidationRecord>>
206 void SetDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords = std::forward<DomainValidationRecordsT>(value); }
207 template<typename DomainValidationRecordsT = Aws::Vector<LoadBalancerTlsCertificateDomainValidationRecord>>
208 LoadBalancerTlsCertificate& WithDomainValidationRecords(DomainValidationRecordsT&& value) { SetDomainValidationRecords(std::forward<DomainValidationRecordsT>(value)); return *this;}
209 template<typename DomainValidationRecordsT = LoadBalancerTlsCertificateDomainValidationRecord>
210 LoadBalancerTlsCertificate& AddDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords.emplace_back(std::forward<DomainValidationRecordsT>(value)); return *this; }
212
214
255 inline LoadBalancerTlsCertificateFailureReason GetFailureReason() const { return m_failureReason; }
256 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
257 inline void SetFailureReason(LoadBalancerTlsCertificateFailureReason value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
260
262
265 inline const Aws::Utils::DateTime& GetIssuedAt() const { return m_issuedAt; }
266 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
267 template<typename IssuedAtT = Aws::Utils::DateTime>
268 void SetIssuedAt(IssuedAtT&& value) { m_issuedAtHasBeenSet = true; m_issuedAt = std::forward<IssuedAtT>(value); }
269 template<typename IssuedAtT = Aws::Utils::DateTime>
270 LoadBalancerTlsCertificate& WithIssuedAt(IssuedAtT&& value) { SetIssuedAt(std::forward<IssuedAtT>(value)); return *this;}
272
274
277 inline const Aws::String& GetIssuer() const { return m_issuer; }
278 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
279 template<typename IssuerT = Aws::String>
280 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
281 template<typename IssuerT = Aws::String>
282 LoadBalancerTlsCertificate& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
284
286
289 inline const Aws::String& GetKeyAlgorithm() const { return m_keyAlgorithm; }
290 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
291 template<typename KeyAlgorithmT = Aws::String>
292 void SetKeyAlgorithm(KeyAlgorithmT&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::forward<KeyAlgorithmT>(value); }
293 template<typename KeyAlgorithmT = Aws::String>
294 LoadBalancerTlsCertificate& WithKeyAlgorithm(KeyAlgorithmT&& value) { SetKeyAlgorithm(std::forward<KeyAlgorithmT>(value)); return *this;}
296
298
301 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
302 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
303 template<typename NotAfterT = Aws::Utils::DateTime>
304 void SetNotAfter(NotAfterT&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::forward<NotAfterT>(value); }
305 template<typename NotAfterT = Aws::Utils::DateTime>
306 LoadBalancerTlsCertificate& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
308
310
313 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
314 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
315 template<typename NotBeforeT = Aws::Utils::DateTime>
316 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::forward<NotBeforeT>(value); }
317 template<typename NotBeforeT = Aws::Utils::DateTime>
318 LoadBalancerTlsCertificate& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
320
322
326 inline const LoadBalancerTlsCertificateRenewalSummary& GetRenewalSummary() const { return m_renewalSummary; }
327 inline bool RenewalSummaryHasBeenSet() const { return m_renewalSummaryHasBeenSet; }
328 template<typename RenewalSummaryT = LoadBalancerTlsCertificateRenewalSummary>
329 void SetRenewalSummary(RenewalSummaryT&& value) { m_renewalSummaryHasBeenSet = true; m_renewalSummary = std::forward<RenewalSummaryT>(value); }
330 template<typename RenewalSummaryT = LoadBalancerTlsCertificateRenewalSummary>
331 LoadBalancerTlsCertificate& WithRenewalSummary(RenewalSummaryT&& value) { SetRenewalSummary(std::forward<RenewalSummaryT>(value)); return *this;}
333
335
339 inline LoadBalancerTlsCertificateRevocationReason GetRevocationReason() const { return m_revocationReason; }
340 inline bool RevocationReasonHasBeenSet() const { return m_revocationReasonHasBeenSet; }
341 inline void SetRevocationReason(LoadBalancerTlsCertificateRevocationReason value) { m_revocationReasonHasBeenSet = true; m_revocationReason = value; }
344
346
350 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
351 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
352 template<typename RevokedAtT = Aws::Utils::DateTime>
353 void SetRevokedAt(RevokedAtT&& value) { m_revokedAtHasBeenSet = true; m_revokedAt = std::forward<RevokedAtT>(value); }
354 template<typename RevokedAtT = Aws::Utils::DateTime>
355 LoadBalancerTlsCertificate& WithRevokedAt(RevokedAtT&& value) { SetRevokedAt(std::forward<RevokedAtT>(value)); return *this;}
357
359
362 inline const Aws::String& GetSerial() const { return m_serial; }
363 inline bool SerialHasBeenSet() const { return m_serialHasBeenSet; }
364 template<typename SerialT = Aws::String>
365 void SetSerial(SerialT&& value) { m_serialHasBeenSet = true; m_serial = std::forward<SerialT>(value); }
366 template<typename SerialT = Aws::String>
367 LoadBalancerTlsCertificate& WithSerial(SerialT&& value) { SetSerial(std::forward<SerialT>(value)); return *this;}
369
371
374 inline const Aws::String& GetSignatureAlgorithm() const { return m_signatureAlgorithm; }
375 inline bool SignatureAlgorithmHasBeenSet() const { return m_signatureAlgorithmHasBeenSet; }
376 template<typename SignatureAlgorithmT = Aws::String>
377 void SetSignatureAlgorithm(SignatureAlgorithmT&& value) { m_signatureAlgorithmHasBeenSet = true; m_signatureAlgorithm = std::forward<SignatureAlgorithmT>(value); }
378 template<typename SignatureAlgorithmT = Aws::String>
379 LoadBalancerTlsCertificate& WithSignatureAlgorithm(SignatureAlgorithmT&& value) { SetSignatureAlgorithm(std::forward<SignatureAlgorithmT>(value)); return *this;}
381
383
387 inline const Aws::String& GetSubject() const { return m_subject; }
388 inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; }
389 template<typename SubjectT = Aws::String>
390 void SetSubject(SubjectT&& value) { m_subjectHasBeenSet = true; m_subject = std::forward<SubjectT>(value); }
391 template<typename SubjectT = Aws::String>
392 LoadBalancerTlsCertificate& WithSubject(SubjectT&& value) { SetSubject(std::forward<SubjectT>(value)); return *this;}
394
396
401 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
402 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
403 template<typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
404 void SetSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = std::forward<SubjectAlternativeNamesT>(value); }
405 template<typename SubjectAlternativeNamesT = Aws::Vector<Aws::String>>
406 LoadBalancerTlsCertificate& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value)); return *this;}
407 template<typename SubjectAlternativeNamesT = Aws::String>
408 LoadBalancerTlsCertificate& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value)); return *this; }
410 private:
411
412 Aws::String m_name;
413 bool m_nameHasBeenSet = false;
414
415 Aws::String m_arn;
416 bool m_arnHasBeenSet = false;
417
418 Aws::String m_supportCode;
419 bool m_supportCodeHasBeenSet = false;
420
421 Aws::Utils::DateTime m_createdAt{};
422 bool m_createdAtHasBeenSet = false;
423
424 ResourceLocation m_location;
425 bool m_locationHasBeenSet = false;
426
427 ResourceType m_resourceType{ResourceType::NOT_SET};
428 bool m_resourceTypeHasBeenSet = false;
429
430 Aws::Vector<Tag> m_tags;
431 bool m_tagsHasBeenSet = false;
432
433 Aws::String m_loadBalancerName;
434 bool m_loadBalancerNameHasBeenSet = false;
435
436 bool m_isAttached{false};
437 bool m_isAttachedHasBeenSet = false;
438
440 bool m_statusHasBeenSet = false;
441
442 Aws::String m_domainName;
443 bool m_domainNameHasBeenSet = false;
444
446 bool m_domainValidationRecordsHasBeenSet = false;
447
449 bool m_failureReasonHasBeenSet = false;
450
451 Aws::Utils::DateTime m_issuedAt{};
452 bool m_issuedAtHasBeenSet = false;
453
454 Aws::String m_issuer;
455 bool m_issuerHasBeenSet = false;
456
457 Aws::String m_keyAlgorithm;
458 bool m_keyAlgorithmHasBeenSet = false;
459
460 Aws::Utils::DateTime m_notAfter{};
461 bool m_notAfterHasBeenSet = false;
462
463 Aws::Utils::DateTime m_notBefore{};
464 bool m_notBeforeHasBeenSet = false;
465
466 LoadBalancerTlsCertificateRenewalSummary m_renewalSummary;
467 bool m_renewalSummaryHasBeenSet = false;
468
470 bool m_revocationReasonHasBeenSet = false;
471
472 Aws::Utils::DateTime m_revokedAt{};
473 bool m_revokedAtHasBeenSet = false;
474
475 Aws::String m_serial;
476 bool m_serialHasBeenSet = false;
477
478 Aws::String m_signatureAlgorithm;
479 bool m_signatureAlgorithmHasBeenSet = false;
480
481 Aws::String m_subject;
482 bool m_subjectHasBeenSet = false;
483
484 Aws::Vector<Aws::String> m_subjectAlternativeNames;
485 bool m_subjectAlternativeNamesHasBeenSet = false;
486 };
487
488} // namespace Model
489} // namespace Lightsail
490} // 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