/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the options for instance hostnames.See Also:
AWS
* API Reference
The type of hostname to assign to an instance.
*/ inline const HostnameType& GetHostnameType() const{ return m_hostnameType; } /** *The type of hostname to assign to an instance.
*/ inline bool HostnameTypeHasBeenSet() const { return m_hostnameTypeHasBeenSet; } /** *The type of hostname to assign to an instance.
*/ inline void SetHostnameType(const HostnameType& value) { m_hostnameTypeHasBeenSet = true; m_hostnameType = value; } /** *The type of hostname to assign to an instance.
*/ inline void SetHostnameType(HostnameType&& value) { m_hostnameTypeHasBeenSet = true; m_hostnameType = std::move(value); } /** *The type of hostname to assign to an instance.
*/ inline LaunchTemplatePrivateDnsNameOptions& WithHostnameType(const HostnameType& value) { SetHostnameType(value); return *this;} /** *The type of hostname to assign to an instance.
*/ inline LaunchTemplatePrivateDnsNameOptions& 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 LaunchTemplatePrivateDnsNameOptions& 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 LaunchTemplatePrivateDnsNameOptions& 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