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

Describes the DNS options for an endpoint.

See Also:

AWS * API Reference

*/ class DnsOptionsSpecification { public: AWS_EC2_API DnsOptionsSpecification(); AWS_EC2_API DnsOptionsSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DnsOptionsSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The DNS records created for the endpoint.

*/ inline const DnsRecordIpType& GetDnsRecordIpType() const{ return m_dnsRecordIpType; } /** *

The DNS records created for the endpoint.

*/ inline bool DnsRecordIpTypeHasBeenSet() const { return m_dnsRecordIpTypeHasBeenSet; } /** *

The DNS records created for the endpoint.

*/ inline void SetDnsRecordIpType(const DnsRecordIpType& value) { m_dnsRecordIpTypeHasBeenSet = true; m_dnsRecordIpType = value; } /** *

The DNS records created for the endpoint.

*/ inline void SetDnsRecordIpType(DnsRecordIpType&& value) { m_dnsRecordIpTypeHasBeenSet = true; m_dnsRecordIpType = std::move(value); } /** *

The DNS records created for the endpoint.

*/ inline DnsOptionsSpecification& WithDnsRecordIpType(const DnsRecordIpType& value) { SetDnsRecordIpType(value); return *this;} /** *

The DNS records created for the endpoint.

*/ inline DnsOptionsSpecification& WithDnsRecordIpType(DnsRecordIpType&& value) { SetDnsRecordIpType(std::move(value)); return *this;} /** *

Indicates whether to enable private DNS only for inbound endpoints. This * option is available only for services that support both gateway and interface * endpoints. It routes traffic that originates from the VPC to the gateway * endpoint and traffic that originates from on-premises to the interface * endpoint.

*/ inline bool GetPrivateDnsOnlyForInboundResolverEndpoint() const{ return m_privateDnsOnlyForInboundResolverEndpoint; } /** *

Indicates whether to enable private DNS only for inbound endpoints. This * option is available only for services that support both gateway and interface * endpoints. It routes traffic that originates from the VPC to the gateway * endpoint and traffic that originates from on-premises to the interface * endpoint.

*/ inline bool PrivateDnsOnlyForInboundResolverEndpointHasBeenSet() const { return m_privateDnsOnlyForInboundResolverEndpointHasBeenSet; } /** *

Indicates whether to enable private DNS only for inbound endpoints. This * option is available only for services that support both gateway and interface * endpoints. It routes traffic that originates from the VPC to the gateway * endpoint and traffic that originates from on-premises to the interface * endpoint.

*/ inline void SetPrivateDnsOnlyForInboundResolverEndpoint(bool value) { m_privateDnsOnlyForInboundResolverEndpointHasBeenSet = true; m_privateDnsOnlyForInboundResolverEndpoint = value; } /** *

Indicates whether to enable private DNS only for inbound endpoints. This * option is available only for services that support both gateway and interface * endpoints. It routes traffic that originates from the VPC to the gateway * endpoint and traffic that originates from on-premises to the interface * endpoint.

*/ inline DnsOptionsSpecification& WithPrivateDnsOnlyForInboundResolverEndpoint(bool value) { SetPrivateDnsOnlyForInboundResolverEndpoint(value); return *this;} private: DnsRecordIpType m_dnsRecordIpType; bool m_dnsRecordIpTypeHasBeenSet = false; bool m_privateDnsOnlyForInboundResolverEndpoint; bool m_privateDnsOnlyForInboundResolverEndpointHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws