/** * 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 WorkMail { namespace Model { /** *

The domain to associate with an WorkMail organization.

When you * configure a domain hosted in Amazon Route 53 (Route 53), all recommended DNS * records are added to the organization when you create it. For more information, * see Adding * a domain in the WorkMail Administrator Guide.

See * Also:

AWS API * Reference

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The fully qualified domain name.

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

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline Domain& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline Domain& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

The hosted zone ID for a domain hosted in Route 53. Required when configuring * a domain hosted in Route 53.

*/ inline Domain& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws