/** * 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 options for instance hostnames.

See Also:

AWS * API Reference

*/ class LaunchTemplatePrivateDnsNameOptionsRequest { public: AWS_EC2_API LaunchTemplatePrivateDnsNameOptionsRequest(); AWS_EC2_API LaunchTemplatePrivateDnsNameOptionsRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API LaunchTemplatePrivateDnsNameOptionsRequest& 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 type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline const HostnameType& GetHostnameType() const{ return m_hostnameType; } /** *

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline bool HostnameTypeHasBeenSet() const { return m_hostnameTypeHasBeenSet; } /** *

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline void SetHostnameType(const HostnameType& value) { m_hostnameTypeHasBeenSet = true; m_hostnameType = value; } /** *

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline void SetHostnameType(HostnameType&& value) { m_hostnameTypeHasBeenSet = true; m_hostnameType = std::move(value); } /** *

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline LaunchTemplatePrivateDnsNameOptionsRequest& WithHostnameType(const HostnameType& value) { SetHostnameType(value); return *this;} /** *

The type of hostname for Amazon EC2 instances. For IPv4 only subnets, an * instance DNS name must be based on the instance IPv4 address. For IPv6 native * subnets, an instance DNS name must be based on the instance ID. For dual-stack * subnets, you can specify whether DNS names use the instance IPv4 address or the * instance ID.

*/ inline LaunchTemplatePrivateDnsNameOptionsRequest& WithHostnameType(HostnameType&& value) { SetHostnameType(std::move(value)); return *this;} /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS A * records.

*/ inline bool GetEnableResourceNameDnsARecord() const{ return m_enableResourceNameDnsARecord; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS A * records.

*/ inline bool EnableResourceNameDnsARecordHasBeenSet() const { return m_enableResourceNameDnsARecordHasBeenSet; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS A * records.

*/ inline void SetEnableResourceNameDnsARecord(bool value) { m_enableResourceNameDnsARecordHasBeenSet = true; m_enableResourceNameDnsARecord = value; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS A * records.

*/ inline LaunchTemplatePrivateDnsNameOptionsRequest& WithEnableResourceNameDnsARecord(bool value) { SetEnableResourceNameDnsARecord(value); return *this;} /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS * AAAA records.

*/ inline bool GetEnableResourceNameDnsAAAARecord() const{ return m_enableResourceNameDnsAAAARecord; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS * AAAA records.

*/ inline bool EnableResourceNameDnsAAAARecordHasBeenSet() const { return m_enableResourceNameDnsAAAARecordHasBeenSet; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS * AAAA records.

*/ inline void SetEnableResourceNameDnsAAAARecord(bool value) { m_enableResourceNameDnsAAAARecordHasBeenSet = true; m_enableResourceNameDnsAAAARecord = value; } /** *

Indicates whether to respond to DNS queries for instance hostnames with DNS * AAAA records.

*/ inline LaunchTemplatePrivateDnsNameOptionsRequest& WithEnableResourceNameDnsAAAARecord(bool value) { SetEnableResourceNameDnsAAAARecord(value); return *this;} private: HostnameType m_hostnameType; bool m_hostnameTypeHasBeenSet = false; bool m_enableResourceNameDnsARecord; bool m_enableResourceNameDnsARecordHasBeenSet = false; bool m_enableResourceNameDnsAAAARecord; bool m_enableResourceNameDnsAAAARecordHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws