AWS SDK for C++  0.12.9
AWS SDK for C++
CertificateDetail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/acm/ACM_EXPORTS.h>
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace ACM
35 {
36 namespace Model
37 {
38 
44  {
45  public:
48  CertificateDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
49  Aws::Utils::Json::JsonValue Jsonize() const;
50 
58  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
59 
67  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
68 
76  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
77 
85  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
86 
94  inline CertificateDetail& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
95 
103  inline CertificateDetail& WithCertificateArn(Aws::String&& value) { SetCertificateArn(value); return *this;}
104 
112  inline CertificateDetail& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
113 
118  inline const Aws::String& GetDomainName() const{ return m_domainName; }
119 
124  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
125 
130  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
131 
136  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
137 
142  inline CertificateDetail& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
143 
148  inline CertificateDetail& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
149 
154  inline CertificateDetail& WithDomainName(const char* value) { SetDomainName(value); return *this;}
155 
163  inline const Aws::Vector<Aws::String>& GetSubjectAlternativeNames() const{ return m_subjectAlternativeNames; }
164 
172  inline void SetSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
173 
181  inline void SetSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames = value; }
182 
190  inline CertificateDetail& WithSubjectAlternativeNames(const Aws::Vector<Aws::String>& value) { SetSubjectAlternativeNames(value); return *this;}
191 
199  inline CertificateDetail& WithSubjectAlternativeNames(Aws::Vector<Aws::String>&& value) { SetSubjectAlternativeNames(value); return *this;}
200 
208  inline CertificateDetail& AddSubjectAlternativeNames(const Aws::String& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
209 
217  inline CertificateDetail& AddSubjectAlternativeNames(Aws::String&& value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
218 
226  inline CertificateDetail& AddSubjectAlternativeNames(const char* value) { m_subjectAlternativeNamesHasBeenSet = true; m_subjectAlternativeNames.push_back(value); return *this; }
227 
232  inline const Aws::Vector<DomainValidation>& GetDomainValidationOptions() const{ return m_domainValidationOptions; }
233 
238  inline void SetDomainValidationOptions(const Aws::Vector<DomainValidation>& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = value; }
239 
244  inline void SetDomainValidationOptions(Aws::Vector<DomainValidation>&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions = value; }
245 
250  inline CertificateDetail& WithDomainValidationOptions(const Aws::Vector<DomainValidation>& value) { SetDomainValidationOptions(value); return *this;}
251 
256  inline CertificateDetail& WithDomainValidationOptions(Aws::Vector<DomainValidation>&& value) { SetDomainValidationOptions(value); return *this;}
257 
262  inline CertificateDetail& AddDomainValidationOptions(const DomainValidation& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(value); return *this; }
263 
268  inline CertificateDetail& AddDomainValidationOptions(DomainValidation&& value) { m_domainValidationOptionsHasBeenSet = true; m_domainValidationOptions.push_back(value); return *this; }
269 
273  inline const Aws::String& GetSerial() const{ return m_serial; }
274 
278  inline void SetSerial(const Aws::String& value) { m_serialHasBeenSet = true; m_serial = value; }
279 
283  inline void SetSerial(Aws::String&& value) { m_serialHasBeenSet = true; m_serial = value; }
284 
288  inline void SetSerial(const char* value) { m_serialHasBeenSet = true; m_serial.assign(value); }
289 
293  inline CertificateDetail& WithSerial(const Aws::String& value) { SetSerial(value); return *this;}
294 
298  inline CertificateDetail& WithSerial(Aws::String&& value) { SetSerial(value); return *this;}
299 
303  inline CertificateDetail& WithSerial(const char* value) { SetSerial(value); return *this;}
304 
309  inline const Aws::String& GetSubject() const{ return m_subject; }
310 
315  inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; }
316 
321  inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = value; }
322 
327  inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); }
328 
333  inline CertificateDetail& WithSubject(const Aws::String& value) { SetSubject(value); return *this;}
334 
339  inline CertificateDetail& WithSubject(Aws::String&& value) { SetSubject(value); return *this;}
340 
345  inline CertificateDetail& WithSubject(const char* value) { SetSubject(value); return *this;}
346 
351  inline const Aws::String& GetIssuer() const{ return m_issuer; }
352 
357  inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; }
358 
363  inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = value; }
364 
369  inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); }
370 
375  inline CertificateDetail& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;}
376 
381  inline CertificateDetail& WithIssuer(Aws::String&& value) { SetIssuer(value); return *this;}
382 
387  inline CertificateDetail& WithIssuer(const char* value) { SetIssuer(value); return *this;}
388 
392  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
393 
397  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
398 
402  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
403 
407  inline CertificateDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
408 
412  inline CertificateDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(value); return *this;}
413 
417  inline const Aws::Utils::DateTime& GetIssuedAt() const{ return m_issuedAt; }
418 
422  inline void SetIssuedAt(const Aws::Utils::DateTime& value) { m_issuedAtHasBeenSet = true; m_issuedAt = value; }
423 
427  inline void SetIssuedAt(Aws::Utils::DateTime&& value) { m_issuedAtHasBeenSet = true; m_issuedAt = value; }
428 
432  inline CertificateDetail& WithIssuedAt(const Aws::Utils::DateTime& value) { SetIssuedAt(value); return *this;}
433 
437  inline CertificateDetail& WithIssuedAt(Aws::Utils::DateTime&& value) { SetIssuedAt(value); return *this;}
438 
445  inline const CertificateStatus& GetStatus() const{ return m_status; }
446 
453  inline void SetStatus(const CertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
454 
461  inline void SetStatus(CertificateStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
462 
469  inline CertificateDetail& WithStatus(const CertificateStatus& value) { SetStatus(value); return *this;}
470 
477  inline CertificateDetail& WithStatus(CertificateStatus&& value) { SetStatus(value); return *this;}
478 
483  inline const Aws::Utils::DateTime& GetRevokedAt() const{ return m_revokedAt; }
484 
489  inline void SetRevokedAt(const Aws::Utils::DateTime& value) { m_revokedAtHasBeenSet = true; m_revokedAt = value; }
490 
495  inline void SetRevokedAt(Aws::Utils::DateTime&& value) { m_revokedAtHasBeenSet = true; m_revokedAt = value; }
496 
501  inline CertificateDetail& WithRevokedAt(const Aws::Utils::DateTime& value) { SetRevokedAt(value); return *this;}
502 
507  inline CertificateDetail& WithRevokedAt(Aws::Utils::DateTime&& value) { SetRevokedAt(value); return *this;}
508 
519  inline const RevocationReason& GetRevocationReason() const{ return m_revocationReason; }
520 
531  inline void SetRevocationReason(const RevocationReason& value) { m_revocationReasonHasBeenSet = true; m_revocationReason = value; }
532 
543  inline void SetRevocationReason(RevocationReason&& value) { m_revocationReasonHasBeenSet = true; m_revocationReason = value; }
544 
555  inline CertificateDetail& WithRevocationReason(const RevocationReason& value) { SetRevocationReason(value); return *this;}
556 
567  inline CertificateDetail& WithRevocationReason(RevocationReason&& value) { SetRevocationReason(value); return *this;}
568 
572  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
573 
577  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
578 
582  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
583 
587  inline CertificateDetail& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
588 
592  inline CertificateDetail& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(value); return *this;}
593 
597  inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
598 
602  inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
603 
607  inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
608 
612  inline CertificateDetail& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
613 
617  inline CertificateDetail& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(value); return *this;}
618 
623  inline const KeyAlgorithm& GetKeyAlgorithm() const{ return m_keyAlgorithm; }
624 
629  inline void SetKeyAlgorithm(const KeyAlgorithm& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; }
630 
635  inline void SetKeyAlgorithm(KeyAlgorithm&& value) { m_keyAlgorithmHasBeenSet = true; m_keyAlgorithm = value; }
636 
641  inline CertificateDetail& WithKeyAlgorithm(const KeyAlgorithm& value) { SetKeyAlgorithm(value); return *this;}
642 
647  inline CertificateDetail& WithKeyAlgorithm(KeyAlgorithm&& value) { SetKeyAlgorithm(value); return *this;}
648 
653  inline const Aws::String& GetSignatureAlgorithm() const{ return m_signatureAlgorithm; }
654 
659  inline void SetSignatureAlgorithm(const Aws::String& value) { m_signatureAlgorithmHasBeenSet = true; m_signatureAlgorithm = value; }
660 
665  inline void SetSignatureAlgorithm(Aws::String&& value) { m_signatureAlgorithmHasBeenSet = true; m_signatureAlgorithm = value; }
666 
671  inline void SetSignatureAlgorithm(const char* value) { m_signatureAlgorithmHasBeenSet = true; m_signatureAlgorithm.assign(value); }
672 
677  inline CertificateDetail& WithSignatureAlgorithm(const Aws::String& value) { SetSignatureAlgorithm(value); return *this;}
678 
683  inline CertificateDetail& WithSignatureAlgorithm(Aws::String&& value) { SetSignatureAlgorithm(value); return *this;}
684 
689  inline CertificateDetail& WithSignatureAlgorithm(const char* value) { SetSignatureAlgorithm(value); return *this;}
690 
695  inline const Aws::Vector<Aws::String>& GetInUseBy() const{ return m_inUseBy; }
696 
701  inline void SetInUseBy(const Aws::Vector<Aws::String>& value) { m_inUseByHasBeenSet = true; m_inUseBy = value; }
702 
707  inline void SetInUseBy(Aws::Vector<Aws::String>&& value) { m_inUseByHasBeenSet = true; m_inUseBy = value; }
708 
713  inline CertificateDetail& WithInUseBy(const Aws::Vector<Aws::String>& value) { SetInUseBy(value); return *this;}
714 
719  inline CertificateDetail& WithInUseBy(Aws::Vector<Aws::String>&& value) { SetInUseBy(value); return *this;}
720 
725  inline CertificateDetail& AddInUseBy(const Aws::String& value) { m_inUseByHasBeenSet = true; m_inUseBy.push_back(value); return *this; }
726 
731  inline CertificateDetail& AddInUseBy(Aws::String&& value) { m_inUseByHasBeenSet = true; m_inUseBy.push_back(value); return *this; }
732 
737  inline CertificateDetail& AddInUseBy(const char* value) { m_inUseByHasBeenSet = true; m_inUseBy.push_back(value); return *this; }
738 
739  private:
740  Aws::String m_certificateArn;
741  bool m_certificateArnHasBeenSet;
742  Aws::String m_domainName;
743  bool m_domainNameHasBeenSet;
744  Aws::Vector<Aws::String> m_subjectAlternativeNames;
745  bool m_subjectAlternativeNamesHasBeenSet;
746  Aws::Vector<DomainValidation> m_domainValidationOptions;
747  bool m_domainValidationOptionsHasBeenSet;
748  Aws::String m_serial;
749  bool m_serialHasBeenSet;
750  Aws::String m_subject;
751  bool m_subjectHasBeenSet;
752  Aws::String m_issuer;
753  bool m_issuerHasBeenSet;
754  Aws::Utils::DateTime m_createdAt;
755  bool m_createdAtHasBeenSet;
756  Aws::Utils::DateTime m_issuedAt;
757  bool m_issuedAtHasBeenSet;
758  CertificateStatus m_status;
759  bool m_statusHasBeenSet;
760  Aws::Utils::DateTime m_revokedAt;
761  bool m_revokedAtHasBeenSet;
762  RevocationReason m_revocationReason;
763  bool m_revocationReasonHasBeenSet;
764  Aws::Utils::DateTime m_notBefore;
765  bool m_notBeforeHasBeenSet;
766  Aws::Utils::DateTime m_notAfter;
767  bool m_notAfterHasBeenSet;
768  KeyAlgorithm m_keyAlgorithm;
769  bool m_keyAlgorithmHasBeenSet;
770  Aws::String m_signatureAlgorithm;
771  bool m_signatureAlgorithmHasBeenSet;
772  Aws::Vector<Aws::String> m_inUseBy;
773  bool m_inUseByHasBeenSet;
774  };
775 
776 } // namespace Model
777 } // namespace ACM
778 } // namespace Aws
void SetCreatedAt(Aws::Utils::DateTime &&value)
CertificateDetail & WithRevokedAt(const Aws::Utils::DateTime &value)
void SetCertificateArn(const Aws::String &value)
void SetRevokedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotAfter() const
CertificateDetail & AddSubjectAlternativeNames(const char *value)
CertificateDetail & AddInUseBy(Aws::String &&value)
const Aws::String & GetCertificateArn() const
void SetStatus(CertificateStatus &&value)
void SetSubject(const char *value)
CertificateDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
CertificateDetail & WithStatus(CertificateStatus &&value)
void SetKeyAlgorithm(KeyAlgorithm &&value)
CertificateDetail & AddDomainValidationOptions(DomainValidation &&value)
const Aws::Utils::DateTime & GetRevokedAt() const
CertificateDetail & WithSignatureAlgorithm(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSubjectAlternativeNames() const
CertificateDetail & WithDomainValidationOptions(Aws::Vector< DomainValidation > &&value)
void SetDomainName(Aws::String &&value)
CertificateDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
CertificateDetail & WithSerial(const char *value)
void SetDomainValidationOptions(Aws::Vector< DomainValidation > &&value)
CertificateDetail & WithSerial(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CertificateDetail & WithIssuedAt(const Aws::Utils::DateTime &value)
void SetSignatureAlgorithm(Aws::String &&value)
const RevocationReason & GetRevocationReason() const
const Aws::String & GetSubject() const
void SetSerial(Aws::String &&value)
CertificateDetail & WithRevocationReason(RevocationReason &&value)
void SetSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
CertificateDetail & WithRevokedAt(Aws::Utils::DateTime &&value)
void SetStatus(const CertificateStatus &value)
void SetSignatureAlgorithm(const Aws::String &value)
void SetDomainName(const char *value)
void SetIssuer(const Aws::String &value)
CertificateDetail & WithNotAfter(Aws::Utils::DateTime &&value)
void SetDomainName(const Aws::String &value)
const Aws::String & GetSerial() const
CertificateDetail & AddInUseBy(const char *value)
CertificateDetail & WithSubject(Aws::String &&value)
CertificateDetail & WithIssuer(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetNotBefore(const Aws::Utils::DateTime &value)
const KeyAlgorithm & GetKeyAlgorithm() const
CertificateDetail & AddSubjectAlternativeNames(const Aws::String &value)
void SetSubject(const Aws::String &value)
CertificateDetail & AddInUseBy(const Aws::String &value)
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:34
CertificateDetail & WithDomainName(Aws::String &&value)
CertificateDetail & WithSignatureAlgorithm(const Aws::String &value)
CertificateDetail & WithCertificateArn(const Aws::String &value)
void SetIssuedAt(const Aws::Utils::DateTime &value)
CertificateDetail & WithInUseBy(const Aws::Vector< Aws::String > &value)
const Aws::String & GetIssuer() const
void SetSignatureAlgorithm(const char *value)
CertificateDetail & WithKeyAlgorithm(const KeyAlgorithm &value)
void SetInUseBy(Aws::Vector< Aws::String > &&value)
CertificateDetail & WithSignatureAlgorithm(const char *value)
const Aws::Vector< Aws::String > & GetInUseBy() const
const Aws::Utils::DateTime & GetNotBefore() const
CertificateDetail & WithSerial(const Aws::String &value)
CertificateDetail & WithRevocationReason(const RevocationReason &value)
CertificateDetail & AddSubjectAlternativeNames(Aws::String &&value)
void SetIssuer(Aws::String &&value)
CertificateDetail & WithIssuer(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
CertificateDetail & WithIssuer(const Aws::String &value)
CertificateDetail & WithSubject(const Aws::String &value)
CertificateDetail & WithStatus(const CertificateStatus &value)
CertificateDetail & WithDomainValidationOptions(const Aws::Vector< DomainValidation > &value)
CertificateDetail & WithSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
void SetNotBefore(Aws::Utils::DateTime &&value)
CertificateDetail & WithNotAfter(const Aws::Utils::DateTime &value)
CertificateDetail & WithKeyAlgorithm(KeyAlgorithm &&value)
void SetCertificateArn(const char *value)
void SetRevokedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetSignatureAlgorithm() const
CertificateDetail & WithSubject(const char *value)
CertificateDetail & WithIssuedAt(Aws::Utils::DateTime &&value)
void SetRevocationReason(RevocationReason &&value)
const Aws::Vector< DomainValidation > & GetDomainValidationOptions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDomainValidationOptions(const Aws::Vector< DomainValidation > &value)
const CertificateStatus & GetStatus() const
const Aws::Utils::DateTime & GetIssuedAt() const
void SetNotAfter(Aws::Utils::DateTime &&value)
const Aws::String & GetDomainName() const
void SetIssuedAt(Aws::Utils::DateTime &&value)
void SetInUseBy(const Aws::Vector< Aws::String > &value)
CertificateDetail & WithCertificateArn(Aws::String &&value)
void SetSubjectAlternativeNames(const Aws::Vector< Aws::String > &value)
CertificateDetail & WithNotBefore(const Aws::Utils::DateTime &value)
void SetNotAfter(const Aws::Utils::DateTime &value)
void SetSubject(Aws::String &&value)
CertificateDetail & WithSubjectAlternativeNames(Aws::Vector< Aws::String > &&value)
CertificateDetail & AddDomainValidationOptions(const DomainValidation &value)
void SetSerial(const Aws::String &value)
void SetRevocationReason(const RevocationReason &value)
void SetKeyAlgorithm(const KeyAlgorithm &value)
CertificateDetail & WithInUseBy(Aws::Vector< Aws::String > &&value)
CertificateDetail & WithCertificateArn(const char *value)
CertificateDetail & WithDomainName(const Aws::String &value)
CertificateDetail & WithNotBefore(Aws::Utils::DateTime &&value)
void SetCertificateArn(Aws::String &&value)
JSON (JavaScript Object Notation).
CertificateDetail & WithDomainName(const char *value)