AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CertificateSummary.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/acm/model/CertificateStatus.h>
11#include <aws/acm/model/CertificateType.h>
12#include <aws/acm/model/KeyAlgorithm.h>
13#include <aws/acm/model/RenewalEligibility.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/acm/model/KeyUsageName.h>
16#include <aws/acm/model/ExtendedKeyUsageName.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ACM
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_ACM_API CertificateSummary();
47
48
50
57 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
58 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
59 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
60 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
61 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
62 inline CertificateSummary& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
63 inline CertificateSummary& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
64 inline CertificateSummary& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
66
68
72 inline const Aws::String& GetDomainName() const{ return m_domainName; }
73 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
74 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
75 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
76 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
77 inline CertificateSummary& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
78 inline CertificateSummary& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
79 inline CertificateSummary& WithDomainName(const char* value) { SetDomainName(value); return *this;}
81
83
93 inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNameSummaries() const{ return m_subjectAlternativeNameSummaries; }
94 inline bool SubjectAlternativeNameSummariesHasBeenSet() const { return m_subjectAlternativeNameSummariesHasBeenSet; }
95 inline void SetSubjectAlternativeNameSummaries(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNameSummariesHasBeenSet = true; m_subjectAlternativeNameSummaries = value; }
96 inline void SetSubjectAlternativeNameSummaries(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNameSummariesHasBeenSet = true; m_subjectAlternativeNameSummaries = std::move(value); }
99 inline CertificateSummary& AddSubjectAlternativeNameSummaries(const Aws::String& value) { m_subjectAlternativeNameSummariesHasBeenSet = true; m_subjectAlternativeNameSummaries.push_back(value); return *this; }
100 inline CertificateSummary& AddSubjectAlternativeNameSummaries(Aws::String&& value) { m_subjectAlternativeNameSummariesHasBeenSet = true; m_subjectAlternativeNameSummaries.push_back(std::move(value)); return *this; }
101 inline CertificateSummary& AddSubjectAlternativeNameSummaries(const char* value) { m_subjectAlternativeNameSummariesHasBeenSet = true; m_subjectAlternativeNameSummaries.push_back(value); return *this; }
103
105
113 inline bool GetHasAdditionalSubjectAlternativeNames() const{ return m_hasAdditionalSubjectAlternativeNames; }
114 inline bool HasAdditionalSubjectAlternativeNamesHasBeenSet() const { return m_hasAdditionalSubjectAlternativeNamesHasBeenSet; }
115 inline void SetHasAdditionalSubjectAlternativeNames(bool value) { m_hasAdditionalSubjectAlternativeNamesHasBeenSet = true; m_hasAdditionalSubjectAlternativeNames = value; }
118
120
134 inline const CertificateStatus& GetStatus() const{ return m_status; }
135 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
136 inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
137 inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
138 inline CertificateSummary& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
139 inline CertificateSummary& WithStatus(CertificateStatus&& value) { SetStatus(std::move(value)); return *this;}
141
143
155 inline const CertificateType& GetType() const{ return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 inline void SetType(const CertificateType& value) { m_typeHasBeenSet = true; m_type = value; }
158 inline void SetType(CertificateType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
159 inline CertificateSummary& WithType(const CertificateType& value) { SetType(value); return *this;}
160 inline CertificateSummary& WithType(CertificateType&& value) { SetType(std::move(value)); return *this;}
162
164
167 inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; }
168 inline bool KeyAlgorithmHasBeenSet() const { return m_keyAlgorithmHasBeenSet; }
169 inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; }
170 inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = std::move(value); }
171 inline CertificateSummary& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;}
172 inline CertificateSummary& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(std::move(value)); return *this;}
174
176
182 inline const Aws::Vector<KeyUsageName>& GetKeyUsages() const{ return m_keyUsages; }
183 inline bool KeyUsagesHasBeenSet() const { return m_keyUsagesHasBeenSet; }
184 inline void SetKeyUsages(const Aws::Vector<KeyUsageName>& value) { m_keyUsagesHasBeenSet = true; m_keyUsages = value; }
185 inline void SetKeyUsages(Aws::Vector<KeyUsageName>&& value) { m_keyUsagesHasBeenSet = true; m_keyUsages = std::move(value); }
186 inline CertificateSummary& WithKeyUsages(const Aws::Vector<KeyUsageName>& value) { SetKeyUsages(value); return *this;}
187 inline CertificateSummary& WithKeyUsages(Aws::Vector<KeyUsageName>&& value) { SetKeyUsages(std::move(value)); return *this;}
188 inline CertificateSummary& AddKeyUsages(const KeyUsageName& value) { m_keyUsagesHasBeenSet = true; m_keyUsages.push_back(value); return *this; }
189 inline CertificateSummary& AddKeyUsages(KeyUsageName&& value) { m_keyUsagesHasBeenSet = true; m_keyUsages.push_back(std::move(value)); return *this; }
191
193
198 inline const Aws::Vector<ExtendedKeyUsageName>& GetExtendedKeyUsages() const{ return m_extendedKeyUsages; }
199 inline bool ExtendedKeyUsagesHasBeenSet() const { return m_extendedKeyUsagesHasBeenSet; }
200 inline void SetExtendedKeyUsages(const Aws::Vector<ExtendedKeyUsageName>& value) { m_extendedKeyUsagesHasBeenSet = true; m_extendedKeyUsages = value; }
201 inline void SetExtendedKeyUsages(Aws::Vector<ExtendedKeyUsageName>&& value) { m_extendedKeyUsagesHasBeenSet = true; m_extendedKeyUsages = std::move(value); }
204 inline CertificateSummary& AddExtendedKeyUsages(const ExtendedKeyUsageName& value) { m_extendedKeyUsagesHasBeenSet = true; m_extendedKeyUsages.push_back(value); return *this; }
205 inline CertificateSummary& AddExtendedKeyUsages(ExtendedKeyUsageName&& value) { m_extendedKeyUsagesHasBeenSet = true; m_extendedKeyUsages.push_back(std::move(value)); return *this; }
207
209
213 inline bool GetInUse() const{ return m_inUse; }
214 inline bool InUseHasBeenSet() const { return m_inUseHasBeenSet; }
215 inline void SetInUse(bool value) { m_inUseHasBeenSet = true; m_inUse = value; }
216 inline CertificateSummary& WithInUse(bool value) { SetInUse(value); return *this;}
218
220
224 inline bool GetExported() const{ return m_exported; }
225 inline bool ExportedHasBeenSet() const { return m_exportedHasBeenSet; }
226 inline void SetExported(bool value) { m_exportedHasBeenSet = true; m_exported = value; }
227 inline CertificateSummary& WithExported(bool value) { SetExported(value); return *this;}
229
231
236 inline const RenewalEligibility& GetRenewalEligibility() const{ return m_renewalEligibility; }
237 inline bool RenewalEligibilityHasBeenSet() const { return m_renewalEligibilityHasBeenSet; }
238 inline void SetRenewalEligibility(const RenewalEligibility& value) { m_renewalEligibilityHasBeenSet = true; m_renewalEligibility = value; }
239 inline void SetRenewalEligibility(RenewalEligibility&& value) { m_renewalEligibilityHasBeenSet = true; m_renewalEligibility = std::move(value); }
241 inline CertificateSummary& WithRenewalEligibility(RenewalEligibility&& value) { SetRenewalEligibility(std::move(value)); return *this;}
243
245
248 inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
249 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
250 inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
251 inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
252 inline CertificateSummary& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
253 inline CertificateSummary& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
255
257
260 inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
261 inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
262 inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
263 inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
264 inline CertificateSummary& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
265 inline CertificateSummary& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
267
269
272 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
273 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
274 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
275 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
276 inline CertificateSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
277 inline CertificateSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
279
281
285 inline const Aws::Utils::DateTime& GetIssuedAt() const{ return m_issuedAt; }
286 inline bool IssuedAtHasBeenSet() const { return m_issuedAtHasBeenSet; }
287 inline void SetIssuedAt(const Aws::Utils::DateTime& value) { m_issuedAtHasBeenSet = true; m_issuedAt = value; }
288 inline void SetIssuedAt(Aws::Utils::DateTime&& value) { m_issuedAtHasBeenSet = true; m_issuedAt = std::move(value); }
289 inline CertificateSummary& WithIssuedAt(const Aws::Utils::DateTime& value) { SetIssuedAt(value); return *this;}
290 inline CertificateSummary& WithIssuedAt(Aws::Utils::DateTime&& value) { SetIssuedAt(std::move(value)); return *this;}
292
294
298 inline const Aws::Utils::DateTime& GetImportedAt() const{ return m_importedAt; }
299 inline bool ImportedAtHasBeenSet() const { return m_importedAtHasBeenSet; }
300 inline void SetImportedAt(const Aws::Utils::DateTime& value) { m_importedAtHasBeenSet = true; m_importedAt = value; }
301 inline void SetImportedAt(Aws::Utils::DateTime&& value) { m_importedAtHasBeenSet = true; m_importedAt = std::move(value); }
302 inline CertificateSummary& WithImportedAt(const Aws::Utils::DateTime& value) { SetImportedAt(value); return *this;}
303 inline CertificateSummary& WithImportedAt(Aws::Utils::DateTime&& value) { SetImportedAt(std::move(value)); return *this;}
305
307
311 inline const Aws::Utils::DateTime& GetRevokedAt() const{ return m_revokedAt; }
312 inline bool RevokedAtHasBeenSet() const { return m_revokedAtHasBeenSet; }
313 inline void SetRevokedAt(const Aws::Utils::DateTime& value) { m_revokedAtHasBeenSet = true; m_revokedAt = value; }
314 inline void SetRevokedAt(Aws::Utils::DateTime&& value) { m_revokedAtHasBeenSet = true; m_revokedAt = std::move(value); }
315 inline CertificateSummary& WithRevokedAt(const Aws::Utils::DateTime& value) { SetRevokedAt(value); return *this;}
316 inline CertificateSummary& WithRevokedAt(Aws::Utils::DateTime&& value) { SetRevokedAt(std::move(value)); return *this;}
318 private:
319
320 Aws::String m_certificateArn;
321 bool m_certificateArnHasBeenSet = false;
322
323 Aws::String m_domainName;
324 bool m_domainNameHasBeenSet = false;
325
326 Aws::Vector<Aws::String> m_subjectAlternativeNameSummaries;
327 bool m_subjectAlternativeNameSummariesHasBeenSet = false;
328
329 bool m_hasAdditionalSubjectAlternativeNames;
330 bool m_hasAdditionalSubjectAlternativeNamesHasBeenSet = false;
331
332 CertificateStatus m_status;
333 bool m_statusHasBeenSet = false;
334
335 CertificateType m_type;
336 bool m_typeHasBeenSet = false;
337
338 KeyAlgorithm m_keyAlgorithm;
339 bool m_keyAlgorithmHasBeenSet = false;
340
341 Aws::Vector<KeyUsageName> m_keyUsages;
342 bool m_keyUsagesHasBeenSet = false;
343
344 Aws::Vector<ExtendedKeyUsageName> m_extendedKeyUsages;
345 bool m_extendedKeyUsagesHasBeenSet = false;
346
347 bool m_inUse;
348 bool m_inUseHasBeenSet = false;
349
350 bool m_exported;
351 bool m_exportedHasBeenSet = false;
352
353 RenewalEligibility m_renewalEligibility;
354 bool m_renewalEligibilityHasBeenSet = false;
355
356 Aws::Utils::DateTime m_notBefore;
357 bool m_notBeforeHasBeenSet = false;
358
359 Aws::Utils::DateTime m_notAfter;
360 bool m_notAfterHasBeenSet = false;
361
362 Aws::Utils::DateTime m_createdAt;
363 bool m_createdAtHasBeenSet = false;
364
365 Aws::Utils::DateTime m_issuedAt;
366 bool m_issuedAtHasBeenSet = false;
367
368 Aws::Utils::DateTime m_importedAt;
369 bool m_importedAtHasBeenSet = false;
370
371 Aws::Utils::DateTime m_revokedAt;
372 bool m_revokedAtHasBeenSet = false;
373 };
374
375} // namespace Model
376} // namespace ACM
377} // namespace Aws
const Aws::Utils::DateTime & GetImportedAt() const
const Aws::String & GetCertificateArn() const
CertificateSummary & WithType(const CertificateType &value)
void SetHasAdditionalSubjectAlternativeNames(bool value)
void SetCertificateArn(const Aws::String &value)
CertificateSummary & WithCertificateArn(const char *value)
const Aws::Vector< KeyUsageName > & GetKeyUsages() const
CertificateSummary & WithIssuedAt(Aws::Utils::DateTime &&value)
void SetNotAfter(Aws::Utils::DateTime &&value)
void SetIssuedAt(Aws::Utils::DateTime &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
CertificateSummary & AddSubjectAlternativeNameSummaries(const char *value)
CertificateSummary & WithExtendedKeyUsages(const Aws::Vector< ExtendedKeyUsageName > &value)
void SetRenewalEligibility(const RenewalEligibility &value)
CertificateSummary & WithInUse(bool value)
void SetStatus(CertificateStatus &&value)
CertificateSummary & WithStatus(CertificateStatus &&value)
void SetRenewalEligibility(RenewalEligibility &&value)
CertificateSummary & WithType(CertificateType &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetIssuedAt() const
void SetSubjectAlternativeNameSummaries(const Aws::Vector< Aws::String > &value)
void SetKeyUsages(Aws::Vector< KeyUsageName > &&value)
CertificateSummary & WithCertificateArn(const Aws::String &value)
CertificateSummary & WithKeyUsages(Aws::Vector< KeyUsageName > &&value)
CertificateSummary & WithHasAdditionalSubjectAlternativeNames(bool value)
CertificateSummary & AddSubjectAlternativeNameSummaries(const Aws::String &value)
void SetRevokedAt(const Aws::Utils::DateTime &value)
void SetType(CertificateType &&value)
void SetImportedAt(Aws::Utils::DateTime &&value)
CertificateSummary & AddKeyUsages(const KeyUsageName &value)
const Aws::Utils::DateTime & GetNotAfter() const
void SetIssuedAt(const Aws::Utils::DateTime &value)
CertificateSummary & WithNotBefore(Aws::Utils::DateTime &&value)
CertificateSummary & WithStatus(const CertificateStatus &value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNameSummaries() const
CertificateSummary & WithDomainName(const Aws::String &value)
void SetNotAfter(const Aws::Utils::DateTime &value)
CertificateSummary & WithDomainName(Aws::String &&value)
CertificateSummary & WithRenewalEligibility(const RenewalEligibility &value)
CertificateSummary & AddExtendedKeyUsages(ExtendedKeyUsageName &&value)
AWS_ACM_API CertificateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAlgorithm(const KeyAlgorithm &value)
const Aws::Utils::DateTime & GetRevokedAt() const
const CertificateType & GetType() const
CertificateSummary & WithSubjectAlternativeNameSummaries(Aws::Vector< Aws::String > &&value)
CertificateSummary & WithKeyAlgorithm(const KeyAlgorithm &value)
void SetDomainName(const Aws::String &value)
CertificateSummary & WithDomainName(const char *value)
void SetExtendedKeyUsages(const Aws::Vector< ExtendedKeyUsageName > &value)
const Aws::Utils::DateTime & GetCreatedAt() const
CertificateSummary & WithRevokedAt(const Aws::Utils::DateTime &value)
void SetSubjectAlternativeNameSummaries(Aws::Vector< Aws::String > &&value)
AWS_ACM_API CertificateSummary(Aws::Utils::Json::JsonView jsonValue)
CertificateSummary & WithIssuedAt(const Aws::Utils::DateTime &value)
CertificateSummary & AddKeyUsages(KeyUsageName &&value)
CertificateSummary & WithNotBefore(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotBefore() const
void SetStatus(const CertificateStatus &value)
void SetDomainName(Aws::String &&value)
CertificateSummary & WithExtendedKeyUsages(Aws::Vector< ExtendedKeyUsageName > &&value)
const RenewalEligibility & GetRenewalEligibility() const
CertificateSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetNotBefore(const Aws::Utils::DateTime &value)
CertificateSummary & WithSubjectAlternativeNameSummaries(const Aws::Vector< Aws::String > &value)
void SetCertificateArn(Aws::String &&value)
CertificateSummary & WithExported(bool value)
CertificateSummary & WithNotAfter(Aws::Utils::DateTime &&value)
void SetKeyAlgorithm(KeyAlgorithm &&value)
const Aws::Vector< ExtendedKeyUsageName > & GetExtendedKeyUsages() const
CertificateSummary & WithCertificateArn(Aws::String &&value)
CertificateSummary & WithImportedAt(const Aws::Utils::DateTime &value)
CertificateSummary & WithKeyAlgorithm(KeyAlgorithm &&value)
const KeyAlgorithm & GetKeyAlgorithm() const
void SetNotBefore(Aws::Utils::DateTime &&value)
CertificateSummary & WithRevokedAt(Aws::Utils::DateTime &&value)
CertificateSummary & AddSubjectAlternativeNameSummaries(Aws::String &&value)
CertificateSummary & WithNotAfter(const Aws::Utils::DateTime &value)
const CertificateStatus & GetStatus() const
void SetCertificateArn(const char *value)
void SetExtendedKeyUsages(Aws::Vector< ExtendedKeyUsageName > &&value)
void SetKeyUsages(const Aws::Vector< KeyUsageName > &value)
void SetRevokedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetDomainName() const
CertificateSummary & AddExtendedKeyUsages(const ExtendedKeyUsageName &value)
void SetType(const CertificateType &value)
CertificateSummary & WithRenewalEligibility(RenewalEligibility &&value)
CertificateSummary & WithKeyUsages(const Aws::Vector< KeyUsageName > &value)
CertificateSummary & WithImportedAt(Aws::Utils::DateTime &&value)
void SetImportedAt(const Aws::Utils::DateTime &value)
CertificateSummary & WithCreatedAt(const Aws::Utils::DateTime &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