/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes the status of a SSL/TLS certificate renewal managed by Amazon * Lightsail.

See Also:

AWS * API Reference

*/ class RenewalSummary { public: AWS_LIGHTSAIL_API RenewalSummary(); AWS_LIGHTSAIL_API RenewalSummary(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API RenewalSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline const Aws::Vector& GetDomainValidationRecords() const{ return m_domainValidationRecords; } /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline bool DomainValidationRecordsHasBeenSet() const { return m_domainValidationRecordsHasBeenSet; } /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline void SetDomainValidationRecords(const Aws::Vector& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords = value; } /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline void SetDomainValidationRecords(Aws::Vector&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords = std::move(value); } /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline RenewalSummary& WithDomainValidationRecords(const Aws::Vector& value) { SetDomainValidationRecords(value); return *this;} /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline RenewalSummary& WithDomainValidationRecords(Aws::Vector&& value) { SetDomainValidationRecords(std::move(value)); return *this;} /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline RenewalSummary& AddDomainValidationRecords(const DomainValidationRecord& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords.push_back(value); return *this; } /** *

An array of objects that describe the domain validation records of the * certificate.

*/ inline RenewalSummary& AddDomainValidationRecords(DomainValidationRecord&& value) { m_domainValidationRecordsHasBeenSet = true; m_domainValidationRecords.push_back(std::move(value)); return *this; } /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline const RenewalStatus& GetRenewalStatus() const{ return m_renewalStatus; } /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline bool RenewalStatusHasBeenSet() const { return m_renewalStatusHasBeenSet; } /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline void SetRenewalStatus(const RenewalStatus& value) { m_renewalStatusHasBeenSet = true; m_renewalStatus = value; } /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline void SetRenewalStatus(RenewalStatus&& value) { m_renewalStatusHasBeenSet = true; m_renewalStatus = std::move(value); } /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline RenewalSummary& WithRenewalStatus(const RenewalStatus& value) { SetRenewalStatus(value); return *this;} /** *

The renewal status of the certificate.

The following renewal status * are possible:

  • PendingAutoRenewal - * Lightsail is attempting to automatically validate the domain names of the * certificate. No further action is required.

  • * PendingValidation - Lightsail couldn't automatically validate * one or more domain names of the certificate. You must take action to validate * these domain names or the certificate won't be renewed. Check to make sure your * certificate's domain validation records exist in your domain's DNS, and that * your certificate remains in use.

  • Success * - All domain names in the certificate are validated, and Lightsail renewed * the certificate. No further action is required.

  • * Failed - One or more domain names were not validated before * the certificate expired, and Lightsail did not renew the certificate. You can * request a new certificate using the CreateCertificate action.

    *
*/ inline RenewalSummary& WithRenewalStatus(RenewalStatus&& value) { SetRenewalStatus(std::move(value)); return *this;} /** *

The reason for the renewal status of the certificate.

*/ inline const Aws::String& GetRenewalStatusReason() const{ return m_renewalStatusReason; } /** *

The reason for the renewal status of the certificate.

*/ inline bool RenewalStatusReasonHasBeenSet() const { return m_renewalStatusReasonHasBeenSet; } /** *

The reason for the renewal status of the certificate.

*/ inline void SetRenewalStatusReason(const Aws::String& value) { m_renewalStatusReasonHasBeenSet = true; m_renewalStatusReason = value; } /** *

The reason for the renewal status of the certificate.

*/ inline void SetRenewalStatusReason(Aws::String&& value) { m_renewalStatusReasonHasBeenSet = true; m_renewalStatusReason = std::move(value); } /** *

The reason for the renewal status of the certificate.

*/ inline void SetRenewalStatusReason(const char* value) { m_renewalStatusReasonHasBeenSet = true; m_renewalStatusReason.assign(value); } /** *

The reason for the renewal status of the certificate.

*/ inline RenewalSummary& WithRenewalStatusReason(const Aws::String& value) { SetRenewalStatusReason(value); return *this;} /** *

The reason for the renewal status of the certificate.

*/ inline RenewalSummary& WithRenewalStatusReason(Aws::String&& value) { SetRenewalStatusReason(std::move(value)); return *this;} /** *

The reason for the renewal status of the certificate.

*/ inline RenewalSummary& WithRenewalStatusReason(const char* value) { SetRenewalStatusReason(value); return *this;} /** *

The timestamp when the certificate was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The timestamp when the certificate was last updated.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The timestamp when the certificate was last updated.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The timestamp when the certificate was last updated.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The timestamp when the certificate was last updated.

*/ inline RenewalSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The timestamp when the certificate was last updated.

*/ inline RenewalSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::Vector m_domainValidationRecords; bool m_domainValidationRecordsHasBeenSet = false; RenewalStatus m_renewalStatus; bool m_renewalStatusHasBeenSet = false; Aws::String m_renewalStatusReason; bool m_renewalStatusReasonHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws