/** * 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 DnsOptions { public: AWS_EC2_API DnsOptions(); AWS_EC2_API DnsOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DnsOptions& 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 DnsOptions& WithDnsRecordIpType(const DnsRecordIpType& value) { SetDnsRecordIpType(value); return *this;} /** *

The DNS records created for the endpoint.

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

Indicates whether to enable private DNS only for inbound endpoints.

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

Indicates whether to enable private DNS only for inbound endpoints.

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

Indicates whether to enable private DNS only for inbound endpoints.

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

Indicates whether to enable private DNS only for inbound endpoints.

*/ inline DnsOptions& 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