AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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/CertificateManagedBy.h>
10#include <aws/acm/model/CertificateStatus.h>
11#include <aws/acm/model/CertificateType.h>
12#include <aws/acm/model/ExtendedKeyUsageName.h>
13#include <aws/acm/model/KeyAlgorithm.h>
14#include <aws/acm/model/KeyUsageName.h>
15#include <aws/acm/model/RenewalEligibility.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Json {
25class JsonValue;
26class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ACM {
30namespace Model {
31
39 public:
40 AWS_ACM_API CertificateSummary() = default;
44
46
53 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
54 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
55 template <typename CertificateArnT = Aws::String>
56 void SetCertificateArn(CertificateArnT&& value) {
57 m_certificateArnHasBeenSet = true;
58 m_certificateArn = std::forward<CertificateArnT>(value);
59 }
60 template <typename CertificateArnT = Aws::String>
61 CertificateSummary& WithCertificateArn(CertificateArnT&& value) {
62 SetCertificateArn(std::forward<CertificateArnT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetDomainName() const { return m_domainName; }
73 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
74 template <typename DomainNameT = Aws::String>
75 void SetDomainName(DomainNameT&& value) {
76 m_domainNameHasBeenSet = true;
77 m_domainName = std::forward<DomainNameT>(value);
78 }
79 template <typename DomainNameT = Aws::String>
80 CertificateSummary& WithDomainName(DomainNameT&& value) {
81 SetDomainName(std::forward<DomainNameT>(value));
82 return *this;
83 }
85
87
99 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNameSummaries() const { return m_subjectAlternativeNameSummaries; }
100 inline bool SubjectAlternativeNameSummariesHasBeenSet() const { return m_subjectAlternativeNameSummariesHasBeenSet; }
101 template <typename SubjectAlternativeNameSummariesT = Aws::Vector<Aws::String>>
102 void SetSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
103 m_subjectAlternativeNameSummariesHasBeenSet = true;
104 m_subjectAlternativeNameSummaries = std::forward<SubjectAlternativeNameSummariesT>(value);
105 }
106 template <typename SubjectAlternativeNameSummariesT = Aws::Vector<Aws::String>>
107 CertificateSummary& WithSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
108 SetSubjectAlternativeNameSummaries(std::forward<SubjectAlternativeNameSummariesT>(value));
109 return *this;
110 }
111 template <typename SubjectAlternativeNameSummariesT = Aws::String>
112 CertificateSummary& AddSubjectAlternativeNameSummaries(SubjectAlternativeNameSummariesT&& value) {
113 m_subjectAlternativeNameSummariesHasBeenSet = true;
114 m_subjectAlternativeNameSummaries.emplace_back(std::forward<SubjectAlternativeNameSummariesT>(value));
115 return *this;
116 }
118
120
130 inline bool GetHasAdditionalSubjectAlternativeNames() const { return m_hasAdditionalSubjectAlternativeNames; }
131 inline bool HasAdditionalSubjectAlternativeNamesHasBeenSet() const { return m_hasAdditionalSubjectAlternativeNamesHasBeenSet; }
133 m_hasAdditionalSubjectAlternativeNamesHasBeenSet = true;
134 m_hasAdditionalSubjectAlternativeNames = value;
135 }
138 return *this;
139 }
141
143
157 inline CertificateStatus GetStatus() const { return m_status; }
158 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
159 inline void SetStatus(CertificateStatus value) {
160 m_statusHasBeenSet = true;
161 m_status = value;
162 }
164 SetStatus(value);
165 return *this;
166 }
168
170
182 inline CertificateType GetType() const { return m_type; }
183 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
184 inline void SetType(CertificateType value) {
185 m_typeHasBeenSet = true;
186 m_type = value;
187 }
189 SetType(value);
190 return *this;
191 }
193
195
198 inline KeyAlgorithm GetKeyAlgorithm() const { return m_keyAlgorithm; }
199 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
200 inline void SetKeyAlgorithm(KeyAlgorithm value) {
201 m_keyAlgorithmHasBeenSet = true;
202 m_keyAlgorithm = value;
203 }
205 SetKeyAlgorithm(value);
206 return *this;
207 }
209
211
217 inline const Aws::Vector<KeyUsageName>& GetKeyUsages() const { return m_keyUsages; }
218 inline bool KeyUsagesHasBeenSet() const { return m_keyUsagesHasBeenSet; }
219 template <typename KeyUsagesT = Aws::Vector<KeyUsageName>>
220 void SetKeyUsages(KeyUsagesT&& value) {
221 m_keyUsagesHasBeenSet = true;
222 m_keyUsages = std::forward<KeyUsagesT>(value);
223 }
224 template <typename KeyUsagesT = Aws::Vector<KeyUsageName>>
225 CertificateSummary& WithKeyUsages(KeyUsagesT&& value) {
226 SetKeyUsages(std::forward<KeyUsagesT>(value));
227 return *this;
228 }
230 m_keyUsagesHasBeenSet = true;
231 m_keyUsages.push_back(value);
232 return *this;
233 }
235
237
242 inline const Aws::Vector<ExtendedKeyUsageName>& GetExtendedKeyUsages() const { return m_extendedKeyUsages; }
243 inline bool ExtendedKeyUsagesHasBeenSet() const { return m_extendedKeyUsagesHasBeenSet; }
244 template <typename ExtendedKeyUsagesT = Aws::Vector<ExtendedKeyUsageName>>
245 void SetExtendedKeyUsages(ExtendedKeyUsagesT&& value) {
246 m_extendedKeyUsagesHasBeenSet = true;
247 m_extendedKeyUsages = std::forward<ExtendedKeyUsagesT>(value);
248 }
249 template <typename ExtendedKeyUsagesT = Aws::Vector<ExtendedKeyUsageName>>
250 CertificateSummary& WithExtendedKeyUsages(ExtendedKeyUsagesT&& value) {
251 SetExtendedKeyUsages(std::forward<ExtendedKeyUsagesT>(value));
252 return *this;
253 }
255 m_extendedKeyUsagesHasBeenSet = true;
256 m_extendedKeyUsages.push_back(value);
257 return *this;
258 }
260
262
265 inline CertificateExport GetExportOption() const { return m_exportOption; }
266 inline bool ExportOptionHasBeenSet() const { return m_exportOptionHasBeenSet; }
268 m_exportOptionHasBeenSet = true;
269 m_exportOption = value;
270 }
272 SetExportOption(value);
273 return *this;
274 }
276
278
282 inline bool GetInUse() const { return m_inUse; }
283 inline bool InUseHasBeenSet() const { return m_inUseHasBeenSet; }
284 inline void SetInUse(bool value) {
285 m_inUseHasBeenSet = true;
286 m_inUse = value;
287 }
288 inline CertificateSummary& WithInUse(bool value) {
289 SetInUse(value);
290 return *this;
291 }
293
295
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 private:
457 Aws::String m_certificateArn;
458
459 Aws::String m_domainName;
460
461 Aws::Vector<Aws::String> m_subjectAlternativeNameSummaries;
462
463 bool m_hasAdditionalSubjectAlternativeNames{false};
464
466
468
469 KeyAlgorithm m_keyAlgorithm{KeyAlgorithm::NOT_SET};
470
471 Aws::Vector<KeyUsageName> m_keyUsages;
472
473 Aws::Vector<ExtendedKeyUsageName> m_extendedKeyUsages;
474
476
477 bool m_inUse{false};
478
479 bool m_exported{false};
480
482
483 Aws::Utils::DateTime m_notBefore{};
484
485 Aws::Utils::DateTime m_notAfter{};
486
487 Aws::Utils::DateTime m_createdAt{};
488
489 Aws::Utils::DateTime m_issuedAt{};
490
491 Aws::Utils::DateTime m_importedAt{};
492
493 Aws::Utils::DateTime m_revokedAt{};
494
496 bool m_certificateArnHasBeenSet = false;
497 bool m_domainNameHasBeenSet = false;
498 bool m_subjectAlternativeNameSummariesHasBeenSet = false;
499 bool m_hasAdditionalSubjectAlternativeNamesHasBeenSet = false;
500 bool m_statusHasBeenSet = false;
501 bool m_typeHasBeenSet = false;
502 bool m_keyAlgorithmHasBeenSet = false;
503 bool m_keyUsagesHasBeenSet = false;
504 bool m_extendedKeyUsagesHasBeenSet = false;
505 bool m_exportOptionHasBeenSet = false;
506 bool m_inUseHasBeenSet = false;
507 bool m_exportedHasBeenSet = false;
508 bool m_renewalEligibilityHasBeenSet = false;
509 bool m_notBeforeHasBeenSet = false;
510 bool m_notAfterHasBeenSet = false;
511 bool m_createdAtHasBeenSet = false;
512 bool m_issuedAtHasBeenSet = false;
513 bool m_importedAtHasBeenSet = false;
514 bool m_revokedAtHasBeenSet = false;
515 bool m_managedByHasBeenSet = false;
516};
517
518} // namespace Model
519} // namespace ACM
520} // namespace Aws
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)
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)
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