AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Certificate.h
1
6#pragma once
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>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Lightsail
28{
29namespace Model
30{
31
43 {
44 public:
45 AWS_LIGHTSAIL_API Certificate() = default;
46 AWS_LIGHTSAIL_API Certificate(Aws::Utils::Json::JsonView jsonValue);
47 AWS_LIGHTSAIL_API Certificate& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
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>
60 Certificate& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 Certificate& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDomainName() const { return m_domainName; }
80 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
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>
84 Certificate& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
86
88
91 inline CertificateStatus GetStatus() const { return m_status; }
92 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 inline void SetStatus(CertificateStatus value) { m_statusHasBeenSet = true; m_status = value; }
94 inline Certificate& WithStatus(CertificateStatus value) { SetStatus(value); return *this;}
96
98
101 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
102 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
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>
106 Certificate& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
108
110
115 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const { return m_subjectAlternativeNames; }
116 inline bool SubjectAlternativeNamesHasBeenSet() const { return m_subjectAlternativeNamesHasBeenSet; }
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>>
120 Certificate& WithSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { SetSubjectAlternativeNames(std::forward<SubjectAlternativeNamesT>(value)); return *this;}
121 template<typename SubjectAlternativeNamesT = Aws::String>
122 Certificate& AddSubjectAlternativeNames(SubjectAlternativeNamesT&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.emplace_back(std::forward<SubjectAlternativeNamesT>(value)); return *this; }
124
126
130 inline const Aws::Vector<DomainValidationRecord>& GetDomainValidationRecords() const { return m_domainValidationRecords; }
131 inline bool DomainValidationRecordsHasBeenSet() const { return m_domainValidationRecordsHasBeenSet; }
132 template<typename DomainValidationRecordsT = Aws::Vector<DomainValidationRecord>>
133 void SetDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords = std::forward<DomainValidationRecordsT>(value); }
134 template<typename DomainValidationRecordsT = Aws::Vector<DomainValidationRecord>>
135 Certificate& WithDomainValidationRecords(DomainValidationRecordsT&& value) { SetDomainValidationRecords(std::forward<DomainValidationRecordsT>(value)); return *this;}
136 template<typename DomainValidationRecordsT = DomainValidationRecord>
137 Certificate& AddDomainValidationRecords(DomainValidationRecordsT&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords.emplace_back(std::forward<DomainValidationRecordsT>(value)); return *this; }
139
141
183 inline const Aws::String& GetRequestFailureReason() const { return m_requestFailureReason; }
184 inline bool RequestFailureReasonHasBeenSet() const { return m_requestFailureReasonHasBeenSet; }
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>
188 Certificate& WithRequestFailureReason(RequestFailureReasonT&& value) { SetRequestFailureReason(std::forward<RequestFailureReasonT>(value)); return *this;}
190
192
195 inline int GetInUseResourceCount() const { return m_inUseResourceCount; }
196 inline bool InUseResourceCountHasBeenSet() const { return m_inUseResourceCountHasBeenSet; }
197 inline void SetInUseResourceCount(int value) { m_inUseResourceCountHasBeenSet = true; m_inUseResourceCount = value; }
198 inline Certificate& WithInUseResourceCount(int value) { SetInUseResourceCount(value); return *this;}
200
202
206 inline const Aws::String& GetKeyAlgorithm() const { return m_keyAlgorithm; }
207 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
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>
211 Certificate& WithKeyAlgorithm(KeyAlgorithmT&& value) { SetKeyAlgorithm(std::forward<KeyAlgorithmT>(value)); return *this;}
213
215
218 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
219 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
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>
223 Certificate& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
225
227
230 inline const Aws::Utils::DateTime& GetIssuedAt() const { return m_issuedAt; }
231 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
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>
235 Certificate& WithIssuedAt(IssuedAtT&& value) { SetIssuedAt(std::forward<IssuedAtT>(value)); return *this;}
237
239
242 inline const Aws::String& GetIssuerCA() const { return m_issuerCA; }
243 inline bool IssuerCAHasBeenSet() const { return m_issuerCAHasBeenSet; }
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>
247 Certificate& WithIssuerCA(IssuerCAT&& value) { SetIssuerCA(std::forward<IssuerCAT>(value)); return *this;}
249
251
254 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
255 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
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>
259 Certificate& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
261
263
266 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
267 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
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>
271 Certificate& WithNotAfter(NotAfterT&& value) { SetNotAfter(std::forward<NotAfterT>(value)); return *this;}
273
275
278 inline const Aws::String& GetEligibleToRenew() const { return m_eligibleToRenew; }
279 inline bool EligibleToRenewHasBeenSet() const { return m_eligibleToRenewHasBeenSet; }
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>
283 Certificate& WithEligibleToRenew(EligibleToRenewT&& value) { SetEligibleToRenew(std::forward<EligibleToRenewT>(value)); return *this;}
285
287
291 inline const RenewalSummary& GetRenewalSummary() const { return m_renewalSummary; }
292 inline bool RenewalSummaryHasBeenSet() const { return m_renewalSummaryHasBeenSet; }
293 template<typename RenewalSummaryT = RenewalSummary>
294 void SetRenewalSummary(RenewalSummaryT&& value) { m_renewalSummaryHasBeenSet = true; m_renewalSummary = std::forward<RenewalSummaryT>(value); }
295 template<typename RenewalSummaryT = RenewalSummary>
296 Certificate& WithRenewalSummary(RenewalSummaryT&& value) { SetRenewalSummary(std::forward<RenewalSummaryT>(value)); return *this;}
298
300
304 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
305 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
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>
309 Certificate& WithRevokedAt(RevokedAtT&& value) { SetRevokedAt(std::forward<RevokedAtT>(value)); return *this;}
311
313
317 inline const Aws::String& GetRevocationReason() const { return m_revocationReason; }
318 inline bool RevocationReasonHasBeenSet() const { return m_revocationReasonHasBeenSet; }
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>
322 Certificate& WithRevocationReason(RevocationReasonT&& value) { SetRevocationReason(std::forward<RevocationReasonT>(value)); return *this;}
324
326
332 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
333 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
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>>
337 Certificate& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
338 template<typename TagsT = Tag>
339 Certificate& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
341
343
348 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
349 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
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>
353 Certificate& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
355 private:
356
357 Aws::String m_arn;
358 bool m_arnHasBeenSet = false;
359
360 Aws::String m_name;
361 bool m_nameHasBeenSet = false;
362
363 Aws::String m_domainName;
364 bool m_domainNameHasBeenSet = false;
365
367 bool m_statusHasBeenSet = false;
368
369 Aws::String m_serialNumber;
370 bool m_serialNumberHasBeenSet = false;
371
372 Aws::Vector<Aws::String> m_subjectAlternativeNames;
373 bool m_subjectAlternativeNamesHasBeenSet = false;
374
375 Aws::Vector<DomainValidationRecord> m_domainValidationRecords;
376 bool m_domainValidationRecordsHasBeenSet = false;
377
378 Aws::String m_requestFailureReason;
379 bool m_requestFailureReasonHasBeenSet = false;
380
381 int m_inUseResourceCount{0};
382 bool m_inUseResourceCountHasBeenSet = false;
383
384 Aws::String m_keyAlgorithm;
385 bool m_keyAlgorithmHasBeenSet = false;
386
387 Aws::Utils::DateTime m_createdAt{};
388 bool m_createdAtHasBeenSet = false;
389
390 Aws::Utils::DateTime m_issuedAt{};
391 bool m_issuedAtHasBeenSet = false;
392
393 Aws::String m_issuerCA;
394 bool m_issuerCAHasBeenSet = false;
395
396 Aws::Utils::DateTime m_notBefore{};
397 bool m_notBeforeHasBeenSet = false;
398
399 Aws::Utils::DateTime m_notAfter{};
400 bool m_notAfterHasBeenSet = false;
401
402 Aws::String m_eligibleToRenew;
403 bool m_eligibleToRenewHasBeenSet = false;
404
405 RenewalSummary m_renewalSummary;
406 bool m_renewalSummaryHasBeenSet = false;
407
408 Aws::Utils::DateTime m_revokedAt{};
409 bool m_revokedAtHasBeenSet = false;
410
411 Aws::String m_revocationReason;
412 bool m_revocationReasonHasBeenSet = false;
413
414 Aws::Vector<Tag> m_tags;
415 bool m_tagsHasBeenSet = false;
416
417 Aws::String m_supportCode;
418 bool m_supportCodeHasBeenSet = false;
419 };
420
421} // namespace Model
422} // namespace Lightsail
423} // namespace Aws
Certificate & WithEligibleToRenew(EligibleToRenewT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetRequestFailureReason() const
Certificate & WithName(NameT &&value)
Definition Certificate.h:72
void SetSupportCode(SupportCodeT &&value)
Certificate & WithKeyAlgorithm(KeyAlgorithmT &&value)
void SetNotAfter(NotAfterT &&value)
void SetRevocationReason(RevocationReasonT &&value)
Certificate & WithDomainName(DomainNameT &&value)
Definition Certificate.h:84
Certificate & WithStatus(CertificateStatus value)
Definition Certificate.h:94
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:55
Certificate & AddSubjectAlternativeNames(SubjectAlternativeNamesT &&value)
void SetIssuerCA(IssuerCAT &&value)
Certificate & WithSupportCode(SupportCodeT &&value)
CertificateStatus GetStatus() const
Definition Certificate.h:91
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:60
Certificate & WithInUseResourceCount(int value)
void SetRenewalSummary(RenewalSummaryT &&value)
Certificate & AddTags(TagsT &&value)
void SetDomainName(DomainNameT &&value)
Definition Certificate.h:82
void SetStatus(CertificateStatus value)
Definition Certificate.h:93
const Aws::String & GetDomainName() const
Definition Certificate.h:79
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