/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In a CreateResolverEndpoint
* request, the IP address that DNS queries originate from (for outbound endpoints)
* or that you forward DNS queries to (for inbound endpoints).
* IpAddressRequest
also includes the ID of the subnet that contains
* the IP address.See Also:
AWS
* API Reference
The ID of the subnet that contains the IP address.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet that contains the IP address.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet that contains the IP address.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet that contains the IP address.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet that contains the IP address.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet that contains the IP address.
*/ inline IpAddressRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet that contains the IP address.
*/ inline IpAddressRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet that contains the IP address.
*/ inline IpAddressRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *The IPv4 address that you want to use for DNS queries.
*/ inline const Aws::String& GetIp() const{ return m_ip; } /** *The IPv4 address that you want to use for DNS queries.
*/ inline bool IpHasBeenSet() const { return m_ipHasBeenSet; } /** *The IPv4 address that you want to use for DNS queries.
*/ inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; } /** *The IPv4 address that you want to use for DNS queries.
*/ inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); } /** *The IPv4 address that you want to use for DNS queries.
*/ inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); } /** *The IPv4 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIp(const Aws::String& value) { SetIp(value); return *this;} /** *The IPv4 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;} /** *The IPv4 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIp(const char* value) { SetIp(value); return *this;} /** *The IPv6 address that you want to use for DNS queries.
*/ inline const Aws::String& GetIpv6() const{ return m_ipv6; } /** *The IPv6 address that you want to use for DNS queries.
*/ inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; } /** *The IPv6 address that you want to use for DNS queries.
*/ inline void SetIpv6(const Aws::String& value) { m_ipv6HasBeenSet = true; m_ipv6 = value; } /** *The IPv6 address that you want to use for DNS queries.
*/ inline void SetIpv6(Aws::String&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::move(value); } /** *The IPv6 address that you want to use for DNS queries.
*/ inline void SetIpv6(const char* value) { m_ipv6HasBeenSet = true; m_ipv6.assign(value); } /** *The IPv6 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIpv6(const Aws::String& value) { SetIpv6(value); return *this;} /** *The IPv6 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIpv6(Aws::String&& value) { SetIpv6(std::move(value)); return *this;} /** *The IPv6 address that you want to use for DNS queries.
*/ inline IpAddressRequest& WithIpv6(const char* value) { SetIpv6(value); return *this;} private: Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_ip; bool m_ipHasBeenSet = false; Aws::String m_ipv6; bool m_ipv6HasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws