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

See Also:

AWS * API Reference

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

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A fully qualified domain name in the certificate. For example, * example.com.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithName(const char* value) { SetName(value); return *this;} /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of validation record. For example, CNAME for domain * validation.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithType(const char* value) { SetType(value); return *this;} /** *

The value for that type.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The value for that type.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value for that type.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value for that type.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value for that type.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The value for that type.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The value for that type.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The value for that type.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithValue(const char* value) { SetValue(value); return *this;} /** *

The validation status. Valid values are listed below.

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

The validation status. Valid values are listed below.

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

The validation status. Valid values are listed below.

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

The validation status. Valid values are listed below.

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

The validation status. Valid values are listed below.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithValidationStatus(const LoadBalancerTlsCertificateDomainStatus& value) { SetValidationStatus(value); return *this;} /** *

The validation status. Valid values are listed below.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithValidationStatus(LoadBalancerTlsCertificateDomainStatus&& value) { SetValidationStatus(std::move(value)); return *this;} /** *

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

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

The domain name against which your SSL/TLS certificate was validated.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithDomainName(const char* value) { SetDomainName(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 a domain to validate domain * ownership.

*/ inline const LoadBalancerTlsCertificateDnsRecordCreationState& 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 a 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 a domain to validate domain * ownership.

*/ inline void SetDnsRecordCreationState(const LoadBalancerTlsCertificateDnsRecordCreationState& 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 a domain to validate domain * ownership.

*/ inline void SetDnsRecordCreationState(LoadBalancerTlsCertificateDnsRecordCreationState&& 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 a domain to validate domain * ownership.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithDnsRecordCreationState(const LoadBalancerTlsCertificateDnsRecordCreationState& 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 a domain to validate domain * ownership.

*/ inline LoadBalancerTlsCertificateDomainValidationRecord& WithDnsRecordCreationState(LoadBalancerTlsCertificateDnsRecordCreationState&& value) { SetDnsRecordCreationState(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; LoadBalancerTlsCertificateDomainStatus m_validationStatus; bool m_validationStatusHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; LoadBalancerTlsCertificateDnsRecordCreationState m_dnsRecordCreationState; bool m_dnsRecordCreationStateHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws