/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 domain name system (DNS) records that you must add to the DNS * of your registered domain to validate ownership for an Amazon Lightsail SSL/TLS * certificate.

See Also:

AWS * API Reference

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

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline DomainValidationRecord& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline DomainValidationRecord& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The domain name of the certificate validation record. For example, * example.com or www.example.com.

*/ inline DomainValidationRecord& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline const ResourceRecord& GetResourceRecord() const{ return m_resourceRecord; } /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline bool ResourceRecordHasBeenSet() const { return m_resourceRecordHasBeenSet; } /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline void SetResourceRecord(const ResourceRecord& value) { m_resourceRecordHasBeenSet = true; m_resourceRecord = value; } /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline void SetResourceRecord(ResourceRecord&& value) { m_resourceRecordHasBeenSet = true; m_resourceRecord = std::move(value); } /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline DomainValidationRecord& WithResourceRecord(const ResourceRecord& value) { SetResourceRecord(value); return *this;} /** *

An object that describes the DNS records to add to your domain's DNS to * validate it for the certificate.

*/ inline DomainValidationRecord& WithResourceRecord(ResourceRecord&& value) { SetResourceRecord(std::move(value)); return *this;} /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline const DnsRecordCreationState& GetDnsRecordCreationState() const{ return m_dnsRecordCreationState; } /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline bool DnsRecordCreationStateHasBeenSet() const { return m_dnsRecordCreationStateHasBeenSet; } /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline void SetDnsRecordCreationState(const DnsRecordCreationState& value) { m_dnsRecordCreationStateHasBeenSet = true; m_dnsRecordCreationState = value; } /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline void SetDnsRecordCreationState(DnsRecordCreationState&& value) { m_dnsRecordCreationStateHasBeenSet = true; m_dnsRecordCreationState = std::move(value); } /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline DomainValidationRecord& WithDnsRecordCreationState(const DnsRecordCreationState& value) { SetDnsRecordCreationState(value); return *this;} /** *

An object that describes the state of the canonical name (CNAME) records that * are automatically added by Lightsail to the DNS of the domain to validate domain * ownership.

*/ inline DomainValidationRecord& WithDnsRecordCreationState(DnsRecordCreationState&& value) { SetDnsRecordCreationState(std::move(value)); return *this;} /** *

The validation status of the record.

*/ inline const CertificateDomainValidationStatus& GetValidationStatus() const{ return m_validationStatus; } /** *

The validation status of the record.

*/ inline bool ValidationStatusHasBeenSet() const { return m_validationStatusHasBeenSet; } /** *

The validation status of the record.

*/ inline void SetValidationStatus(const CertificateDomainValidationStatus& value) { m_validationStatusHasBeenSet = true; m_validationStatus = value; } /** *

The validation status of the record.

*/ inline void SetValidationStatus(CertificateDomainValidationStatus&& value) { m_validationStatusHasBeenSet = true; m_validationStatus = std::move(value); } /** *

The validation status of the record.

*/ inline DomainValidationRecord& WithValidationStatus(const CertificateDomainValidationStatus& value) { SetValidationStatus(value); return *this;} /** *

The validation status of the record.

*/ inline DomainValidationRecord& WithValidationStatus(CertificateDomainValidationStatus&& value) { SetValidationStatus(std::move(value)); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; ResourceRecord m_resourceRecord; bool m_resourceRecordHasBeenSet = false; DnsRecordCreationState m_dnsRecordCreationState; bool m_dnsRecordCreationStateHasBeenSet = false; CertificateDomainValidationStatus m_validationStatus; bool m_validationStatusHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws