AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
CertificateSummary.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/CertificateExport.h>
9#include <aws/acm/model/CertificateKeyPairOrigin.h>
10#include <aws/acm/model/CertificateManagedBy.h>
11#include <aws/acm/model/CertificateStatus.h>
12#include <aws/acm/model/CertificateType.h>
13#include <aws/acm/model/ExtendedKeyUsageName.h>
14#include <aws/acm/model/KeyAlgorithm.h>
15#include <aws/acm/model/KeyUsageName.h>
16#include <aws/acm/model/RenewalEligibility.h>
17#include <aws/core/utils/DateTime.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace Utils {
25namespace Json {
26class JsonValue;
27class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace ACM {
31namespace Model {
32
40 public:
41 AWS_ACM_API CertificateSummary() = default;
45
47
54 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
55 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
56 template <typename CertificateArnT = Aws::String>
57 void SetCertificateArn(CertificateArnT&& value) {
58 m_certificateArnHasBeenSet = true;
59 m_certificateArn = std::forward<CertificateArnT>(value);
60 }
61 template <typename CertificateArnT = Aws::String>
62 CertificateSummary& WithCertificateArn(CertificateArnT&& value) {
63 SetCertificateArn(std::forward<CertificateArnT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::String& GetDomainName() const { return m_domainName; }
74 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
75 template <typename DomainNameT = Aws::String>
76 void SetDomainName(DomainNameT&& value) {
77 m_domainNameHasBeenSet = true;
78 m_domainName = std::forward<DomainNameT>(value);
79 }
80 template <typename DomainNameT = Aws::String>
81 CertificateSummary& WithDomainName(DomainNameT&& value) {
82 SetDomainName(std::forward<DomainNameT>(value));
83 return *this;
84 }
86
88
100 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNameSummaries() const { return m_subjectAlternativeNameSummaries; }
101 inline bool SubjectAlternativeNameSummariesHasBeenSet() const { return m_subjectAlternativeNameSummariesHasBeenSet; }
102 template <typename SubjectAlternativeNameSummariesT = Aws::Vector<Aws::String>>
103 void SetSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
104 m_subjectAlternativeNameSummariesHasBeenSet = true;
105 m_subjectAlternativeNameSummaries = std::forward<SubjectAlternativeNameSummariesT>(value);
106 }
107 template <typename SubjectAlternativeNameSummariesT = Aws::Vector<Aws::String>>
108 CertificateSummary& WithSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
109 SetSubjectAlternativeNameSummaries(std::forward<SubjectAlternativeNameSummariesT>(value));
110 return *this;
111 }
112 template <typename SubjectAlternativeNameSummariesT = Aws::String>
113 CertificateSummary& AddSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
114 m_subjectAlternativeNameSummariesHasBeenSet = true;
115 m_subjectAlternativeNameSummaries.emplace_back(std::forward<SubjectAlternativeNameSummariesT>(value));
116 return *this;
117 }
119
121
131 inline bool GetHasAdditionalSubjectAlternativeNames() const { return m_hasAdditionalSubjectAlternativeNames; }
132 inline bool HasAdditionalSubjectAlternativeNamesHasBeenSet() const { return m_hasAdditionalSubjectAlternativeNamesHasBeenSet; }
134 m_hasAdditionalSubjectAlternativeNamesHasBeenSet = true;
135 m_hasAdditionalSubjectAlternativeNames = value;
136 }
139 return *this;
140 }
142
144
158 inline CertificateStatus GetStatus() const { return m_status; }
159 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
160 inline void SetStatus(CertificateStatus value) {
161 m_statusHasBeenSet = true;
162 m_status = value;
163 }
165 SetStatus(value);
166 return *this;
167 }
169
171
183 inline CertificateType GetType() const { return m_type; }
184 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
185 inline void SetType(CertificateType value) {
186 m_typeHasBeenSet = true;
187 m_type = value;
188 }
190 SetType(value);
191 return *this;
192 }
194
196
199 inline KeyAlgorithm GetKeyAlgorithm() const { return m_keyAlgorithm; }
200 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
201 inline void SetKeyAlgorithm(KeyAlgorithm value) {
202 m_keyAlgorithmHasBeenSet = true;
203 m_keyAlgorithm = value;
204 }
206 SetKeyAlgorithm(value);
207 return *this;
208 }
210
212
218 inline const Aws::Vector<KeyUsageName>& GetKeyUsages() const { return m_keyUsages; }
219 inline bool KeyUsagesHasBeenSet() const { return m_keyUsagesHasBeenSet; }
220 template <typename KeyUsagesT = Aws::Vector<KeyUsageName>>
221 void SetKeyUsages(KeyUsagesT&& value) {
222 m_keyUsagesHasBeenSet = true;
223 m_keyUsages = std::forward<KeyUsagesT>(value);
224 }
225 template <typename KeyUsagesT = Aws::Vector<KeyUsageName>>
226 CertificateSummary& WithKeyUsages(KeyUsagesT&& value) {
227 SetKeyUsages(std::forward<KeyUsagesT>(value));
228 return *this;
229 }
231 m_keyUsagesHasBeenSet = true;
232 m_keyUsages.push_back(value);
233 return *this;
234 }
236
238
243 inline const Aws::Vector<ExtendedKeyUsageName>& GetExtendedKeyUsages() const { return m_extendedKeyUsages; }
244 inline bool ExtendedKeyUsagesHasBeenSet() const { return m_extendedKeyUsagesHasBeenSet; }
245 template <typename ExtendedKeyUsagesT = Aws::Vector<ExtendedKeyUsageName>>
246 void SetExtendedKeyUsages(ExtendedKeyUsagesT&& value) {
247 m_extendedKeyUsagesHasBeenSet = true;
248 m_extendedKeyUsages = std::forward<ExtendedKeyUsagesT>(value);
249 }
250 template <typename ExtendedKeyUsagesT = Aws::Vector<ExtendedKeyUsageName>>
251 CertificateSummary& WithExtendedKeyUsages(ExtendedKeyUsagesT&& value) {
252 SetExtendedKeyUsages(std::forward<ExtendedKeyUsagesT>(value));
253 return *this;
254 }
256 m_extendedKeyUsagesHasBeenSet = true;
257 m_extendedKeyUsages.push_back(value);
258 return *this;
259 }
261
263
266 inline CertificateExport GetExportOption() const { return m_exportOption; }
267 inline bool ExportOptionHasBeenSet() const { return m_exportOptionHasBeenSet; }
269 m_exportOptionHasBeenSet = true;
270 m_exportOption = value;
271 }
273 SetExportOption(value);
274 return *this;
275 }
277
279
283 inline bool GetInUse() const { return m_inUse; }
284 inline bool InUseHasBeenSet() const { return m_inUseHasBeenSet; }
285 inline void SetInUse(bool value) {
286 m_inUseHasBeenSet = true;
287 m_inUse = value;
288 }
289 inline CertificateSummary& WithInUse(bool value) {
290 SetInUse(value);
291 return *this;
292 }
294
296
299 inline bool GetExported() const { return m_exported; }
300 inline bool ExportedHasBeenSet() const { return m_exportedHasBeenSet; }
301 inline void SetExported(bool value) {
302 m_exportedHasBeenSet = true;
303 m_exported = value;
304 }
305 inline CertificateSummary& WithExported(bool value) {
306 SetExported(value);
307 return *this;
308 }
310
312
317 inline RenewalEligibility GetRenewalEligibility() const { return m_renewalEligibility; }
318 inline bool RenewalEligibilityHasBeenSet() const { return m_renewalEligibilityHasBeenSet; }
320 m_renewalEligibilityHasBeenSet = true;
321 m_renewalEligibility = value;
322 }
325 return *this;
326 }
328
330
333 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
334 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
335 template <typename NotBeforeT = Aws::Utils::DateTime>
336 void SetNotBefore(NotBeforeT&& value) {
337 m_notBeforeHasBeenSet = true;
338 m_notBefore = std::forward<NotBeforeT>(value);
339 }
340 template <typename NotBeforeT = Aws::Utils::DateTime>
341 CertificateSummary& WithNotBefore(NotBeforeT&& value) {
342 SetNotBefore(std::forward<NotBeforeT>(value));
343 return *this;
344 }
346
348
351 inline const Aws::Utils::DateTime& GetNotAfter() const { return m_notAfter; }
352 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
353 template <typename NotAfterT = Aws::Utils::DateTime>
354 void SetNotAfter(NotAfterT&& value) {
355 m_notAfterHasBeenSet = true;
356 m_notAfter = std::forward<NotAfterT>(value);
357 }
358 template <typename NotAfterT = Aws::Utils::DateTime>
359 CertificateSummary& WithNotAfter(NotAfterT&& value) {
360 SetNotAfter(std::forward<NotAfterT>(value));
361 return *this;
362 }
364
366
369 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
370 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
371 template <typename CreatedAtT = Aws::Utils::DateTime>
372 void SetCreatedAt(CreatedAtT&& value) {
373 m_createdAtHasBeenSet = true;
374 m_createdAt = std::forward<CreatedAtT>(value);
375 }
376 template <typename CreatedAtT = Aws::Utils::DateTime>
377 CertificateSummary& WithCreatedAt(CreatedAtT&& value) {
378 SetCreatedAt(std::forward<CreatedAtT>(value));
379 return *this;
380 }
382
384
388 inline const Aws::Utils::DateTime& GetIssuedAt() const { return m_issuedAt; }
389 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
390 template <typename IssuedAtT = Aws::Utils::DateTime>
391 void SetIssuedAt(IssuedAtT&& value) {
392 m_issuedAtHasBeenSet = true;
393 m_issuedAt = std::forward<IssuedAtT>(value);
394 }
395 template <typename IssuedAtT = Aws::Utils::DateTime>
396 CertificateSummary& WithIssuedAt(IssuedAtT&& value) {
397 SetIssuedAt(std::forward<IssuedAtT>(value));
398 return *this;
399 }
401
403
407 inline const Aws::Utils::DateTime& GetImportedAt() const { return m_importedAt; }
408 inline bool ImportedAtHasBeenSet() const { return m_importedAtHasBeenSet; }
409 template <typename ImportedAtT = Aws::Utils::DateTime>
410 void SetImportedAt(ImportedAtT&& value) {
411 m_importedAtHasBeenSet = true;
412 m_importedAt = std::forward<ImportedAtT>(value);
413 }
414 template <typename ImportedAtT = Aws::Utils::DateTime>
415 CertificateSummary& WithImportedAt(ImportedAtT&& value) {
416 SetImportedAt(std::forward<ImportedAtT>(value));
417 return *this;
418 }
420
422
426 inline const Aws::Utils::DateTime& GetRevokedAt() const { return m_revokedAt; }
427 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
428 template <typename RevokedAtT = Aws::Utils::DateTime>
429 void SetRevokedAt(RevokedAtT&& value) {
430 m_revokedAtHasBeenSet = true;
431 m_revokedAt = std::forward<RevokedAtT>(value);
432 }
433 template <typename RevokedAtT = Aws::Utils::DateTime>
434 CertificateSummary& WithRevokedAt(RevokedAtT&& value) {
435 SetRevokedAt(std::forward<RevokedAtT>(value));
436 return *this;
437 }
439
441
445 inline CertificateManagedBy GetManagedBy() const { return m_managedBy; }
446 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
448 m_managedByHasBeenSet = true;
449 m_managedBy = value;
450 }
452 SetManagedBy(value);
453 return *this;
454 }
456
458
461 inline CertificateKeyPairOrigin GetCertificateKeyPairOrigin() const { return m_certificateKeyPairOrigin; }
462 inline bool CertificateKeyPairOriginHasBeenSet() const { return m_certificateKeyPairOriginHasBeenSet; }
464 m_certificateKeyPairOriginHasBeenSet = true;
465 m_certificateKeyPairOrigin = value;
466 }
469 return *this;
470 }
472 private:
473 Aws::String m_certificateArn;
474
475 Aws::String m_domainName;
476
477 Aws::Vector<Aws::String> m_subjectAlternativeNameSummaries;
478
479 bool m_hasAdditionalSubjectAlternativeNames{false};
480
482
484
485 KeyAlgorithm m_keyAlgorithm{KeyAlgorithm::NOT_SET};
486
487 Aws::Vector<KeyUsageName> m_keyUsages;
488
489 Aws::Vector<ExtendedKeyUsageName> m_extendedKeyUsages;
490
492
493 bool m_inUse{false};
494
495 bool m_exported{false};
496
498
499 Aws::Utils::DateTime m_notBefore{};
500
501 Aws::Utils::DateTime m_notAfter{};
502
503 Aws::Utils::DateTime m_createdAt{};
504
505 Aws::Utils::DateTime m_issuedAt{};
506
507 Aws::Utils::DateTime m_importedAt{};
508
509 Aws::Utils::DateTime m_revokedAt{};
510
512
514 bool m_certificateArnHasBeenSet = false;
515 bool m_domainNameHasBeenSet = false;
516 bool m_subjectAlternativeNameSummariesHasBeenSet = false;
517 bool m_hasAdditionalSubjectAlternativeNamesHasBeenSet = false;
518 bool m_statusHasBeenSet = false;
519 bool m_typeHasBeenSet = false;
520 bool m_keyAlgorithmHasBeenSet = false;
521 bool m_keyUsagesHasBeenSet = false;
522 bool m_extendedKeyUsagesHasBeenSet = false;
523 bool m_exportOptionHasBeenSet = false;
524 bool m_inUseHasBeenSet = false;
525 bool m_exportedHasBeenSet = false;
526 bool m_renewalEligibilityHasBeenSet = false;
527 bool m_notBeforeHasBeenSet = false;
528 bool m_notAfterHasBeenSet = false;
529 bool m_createdAtHasBeenSet = false;
530 bool m_issuedAtHasBeenSet = false;
531 bool m_importedAtHasBeenSet = false;
532 bool m_revokedAtHasBeenSet = false;
533 bool m_managedByHasBeenSet = false;
534 bool m_certificateKeyPairOriginHasBeenSet = false;
535};
536
537} // namespace Model
538} // namespace ACM
539} // namespace Aws
CertificateKeyPairOrigin GetCertificateKeyPairOrigin() const
const Aws::Utils::DateTime & GetImportedAt() const
const Aws::String & GetCertificateArn() const
void SetHasAdditionalSubjectAlternativeNames(bool value)
RenewalEligibility GetRenewalEligibility() const
const Aws::Vector< KeyUsageName > & GetKeyUsages() const
CertificateSummary & AddExtendedKeyUsages(ExtendedKeyUsageName value)
CertificateSummary & WithRenewalEligibility(RenewalEligibility value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateSummary & WithExportOption(CertificateExport value)
CertificateSummary & WithInUse(bool value)
void SetRenewalEligibility(RenewalEligibility value)
CertificateSummary & AddKeyUsages(KeyUsageName value)
void SetCertificateArn(CertificateArnT &&value)
CertificateSummary & WithCertificateKeyPairOrigin(CertificateKeyPairOrigin value)
const Aws::Utils::DateTime & GetIssuedAt() const
void SetExportOption(CertificateExport value)
CertificateSummary & WithExtendedKeyUsages(ExtendedKeyUsagesT &&value)
void SetKeyAlgorithm(KeyAlgorithm value)
CertificateSummary & WithHasAdditionalSubjectAlternativeNames(bool value)
CertificateSummary & WithCreatedAt(CreatedAtT &&value)
void SetManagedBy(CertificateManagedBy value)
CertificateSummary & WithDomainName(DomainNameT &&value)
CertificateSummary & WithIssuedAt(IssuedAtT &&value)
const Aws::Utils::DateTime & GetNotAfter() const
const Aws::Vector< Aws::String > & GetSubjectAlternativeNameSummaries() const
CertificateSummary & WithNotBefore(NotBeforeT &&value)
AWS_ACM_API CertificateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetRevokedAt() const
void SetType(CertificateType value)
void SetDomainName(DomainNameT &&value)
CertificateSummary & WithManagedBy(CertificateManagedBy value)
CertificateSummary & WithType(CertificateType value)
CertificateSummary & AddSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_ACM_API CertificateSummary(Aws::Utils::Json::JsonView jsonValue)
CertificateSummary & WithStatus(CertificateStatus value)
void SetStatus(CertificateStatus value)
void SetImportedAt(ImportedAtT &&value)
const Aws::Utils::DateTime & GetNotBefore() const
CertificateSummary & WithSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT &&value)
CertificateSummary & WithKeyAlgorithm(KeyAlgorithm value)
CertificateManagedBy GetManagedBy() const
CertificateSummary & WithRevokedAt(RevokedAtT &&value)
CertificateSummary & WithKeyUsages(KeyUsagesT &&value)
void SetCertificateKeyPairOrigin(CertificateKeyPairOrigin value)
CertificateExport GetExportOption() const
CertificateSummary & WithExported(bool value)
CertificateSummary & WithImportedAt(ImportedAtT &&value)
const Aws::Vector< ExtendedKeyUsageName > & GetExtendedKeyUsages() const
void SetExtendedKeyUsages(ExtendedKeyUsagesT &&value)
AWS_ACM_API CertificateSummary()=default
const Aws::String & GetDomainName() const
CertificateSummary & WithCertificateArn(CertificateArnT &&value)
void SetSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT &&value)
CertificateSummary & WithNotAfter(NotAfterT &&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