/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that identifies a hosted zone that a specified Amazon VPC is * associated with and the owner of the hosted zone. If there is a value for * OwningAccount, there is no value for OwningService, * and vice versa.

See Also:

AWS * API Reference

*/ class AWS_ROUTE53_API HostedZoneOwner { public: HostedZoneOwner(); HostedZoneOwner(const Aws::Utils::Xml::XmlNode& xmlNode); HostedZoneOwner& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline const Aws::String& GetOwningAccount() const{ return m_owningAccount; } /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline bool OwningAccountHasBeenSet() const { return m_owningAccountHasBeenSet; } /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline void SetOwningAccount(const Aws::String& value) { m_owningAccountHasBeenSet = true; m_owningAccount = value; } /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline void SetOwningAccount(Aws::String&& value) { m_owningAccountHasBeenSet = true; m_owningAccount = std::move(value); } /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline void SetOwningAccount(const char* value) { m_owningAccountHasBeenSet = true; m_owningAccount.assign(value); } /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline HostedZoneOwner& WithOwningAccount(const Aws::String& value) { SetOwningAccount(value); return *this;} /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline HostedZoneOwner& WithOwningAccount(Aws::String&& value) { SetOwningAccount(std::move(value)); return *this;} /** *

If the hosted zone was created by an AWS account, or was created by an AWS * service that creates hosted zones using the current account, * OwningAccount contains the account ID of that account. For example, * when you use AWS Cloud Map to create a hosted zone, Cloud Map creates the hosted * zone using the current AWS account.

*/ inline HostedZoneOwner& WithOwningAccount(const char* value) { SetOwningAccount(value); return *this;} /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline const Aws::String& GetOwningService() const{ return m_owningService; } /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline bool OwningServiceHasBeenSet() const { return m_owningServiceHasBeenSet; } /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline void SetOwningService(const Aws::String& value) { m_owningServiceHasBeenSet = true; m_owningService = value; } /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline void SetOwningService(Aws::String&& value) { m_owningServiceHasBeenSet = true; m_owningService = std::move(value); } /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline void SetOwningService(const char* value) { m_owningServiceHasBeenSet = true; m_owningService.assign(value); } /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline HostedZoneOwner& WithOwningService(const Aws::String& value) { SetOwningService(value); return *this;} /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline HostedZoneOwner& WithOwningService(Aws::String&& value) { SetOwningService(std::move(value)); return *this;} /** *

If an AWS service uses its own account to create a hosted zone and associate * the specified VPC with that hosted zone, OwningService contains an * abbreviation that identifies the service. For example, if Amazon Elastic File * System (Amazon EFS) created a hosted zone and associated a VPC with the hosted * zone, the value of OwningService is * efs.amazonaws.com.

*/ inline HostedZoneOwner& WithOwningService(const char* value) { SetOwningService(value); return *this;} private: Aws::String m_owningAccount; bool m_owningAccountHasBeenSet; Aws::String m_owningService; bool m_owningServiceHasBeenSet; }; } // namespace Model } // namespace Route53 } // namespace Aws