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

Contains information about the domain names that you want ACM to use to send * you emails that enable you to validate domain ownership.

See * Also:

AWS * API Reference

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

A fully qualified domain name (FQDN) in the certificate request.

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

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline const Aws::String& GetValidationDomain() const{ return m_validationDomain; } /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline bool ValidationDomainHasBeenSet() const { return m_validationDomainHasBeenSet; } /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline void SetValidationDomain(const Aws::String& value) { m_validationDomainHasBeenSet = true; m_validationDomain = value; } /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline void SetValidationDomain(Aws::String&& value) { m_validationDomainHasBeenSet = true; m_validationDomain = std::move(value); } /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline void SetValidationDomain(const char* value) { m_validationDomainHasBeenSet = true; m_validationDomain.assign(value); } /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline DomainValidationOption& WithValidationDomain(const Aws::String& value) { SetValidationDomain(value); return *this;} /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline DomainValidationOption& WithValidationDomain(Aws::String&& value) { SetValidationDomain(std::move(value)); return *this;} /** *

The domain name that you want ACM to use to send you validation emails. This * domain name is the suffix of the email addresses that you want ACM to use. This * must be the same as the DomainName value or a superdomain of the * DomainName value. For example, if you request a certificate for * testing.example.com, you can specify example.com for * this value. In that case, ACM sends domain validation emails to the following * five addresses:

  • admin@example.com

  • *

    administrator@example.com

  • hostmaster@example.com

  • *
  • postmaster@example.com

  • webmaster@example.com

  • *
*/ inline DomainValidationOption& WithValidationDomain(const char* value) { SetValidationDomain(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_validationDomain; bool m_validationDomainHasBeenSet = false; }; } // namespace Model } // namespace ACM } // namespace Aws