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

Information about the DNS server to be used.

See Also:

AWS * API Reference

*/ class DnsServersOptionsModifyStructure { public: AWS_EC2_API DnsServersOptionsModifyStructure(); AWS_EC2_API DnsServersOptionsModifyStructure(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DnsServersOptionsModifyStructure& 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 IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline const Aws::Vector& GetCustomDnsServers() const{ return m_customDnsServers; } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline bool CustomDnsServersHasBeenSet() const { return m_customDnsServersHasBeenSet; } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline void SetCustomDnsServers(const Aws::Vector& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers = value; } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline void SetCustomDnsServers(Aws::Vector&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers = std::move(value); } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline DnsServersOptionsModifyStructure& WithCustomDnsServers(const Aws::Vector& value) { SetCustomDnsServers(value); return *this;} /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline DnsServersOptionsModifyStructure& WithCustomDnsServers(Aws::Vector&& value) { SetCustomDnsServers(std::move(value)); return *this;} /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline DnsServersOptionsModifyStructure& AddCustomDnsServers(const Aws::String& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(value); return *this; } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline DnsServersOptionsModifyStructure& AddCustomDnsServers(Aws::String&& value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(std::move(value)); return *this; } /** *

The IPv4 address range, in CIDR notation, of the DNS servers to be used. You * can specify up to two DNS servers. Ensure that the DNS servers can be reached by * the clients. The specified values overwrite the existing values.

*/ inline DnsServersOptionsModifyStructure& AddCustomDnsServers(const char* value) { m_customDnsServersHasBeenSet = true; m_customDnsServers.push_back(value); return *this; } /** *

Indicates whether DNS servers should be used. Specify False to * delete the existing DNS servers.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Indicates whether DNS servers should be used. Specify False to * delete the existing DNS servers.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Indicates whether DNS servers should be used. Specify False to * delete the existing DNS servers.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Indicates whether DNS servers should be used. Specify False to * delete the existing DNS servers.

*/ inline DnsServersOptionsModifyStructure& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::Vector m_customDnsServers; bool m_customDnsServersHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws