/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
The domain name of the certificate validation record. For example,
* example.com
or www.example.com
.
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