/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In a CreateResolverRule
* request, an array of the IPs that you want to forward DNS queries
* to.See Also:
AWS
* API Reference
One IPv4 address that you want to forward DNS queries to.
*/ inline const Aws::String& GetIp() const{ return m_ip; } /** *One IPv4 address that you want to forward DNS queries to.
*/ inline bool IpHasBeenSet() const { return m_ipHasBeenSet; } /** *One IPv4 address that you want to forward DNS queries to.
*/ inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; } /** *One IPv4 address that you want to forward DNS queries to.
*/ inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); } /** *One IPv4 address that you want to forward DNS queries to.
*/ inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); } /** *One IPv4 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIp(const Aws::String& value) { SetIp(value); return *this;} /** *One IPv4 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;} /** *One IPv4 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIp(const char* value) { SetIp(value); return *this;} /** *The port at Ip
that you want to forward DNS queries to.
The port at Ip
that you want to forward DNS queries to.
The port at Ip
that you want to forward DNS queries to.
The port at Ip
that you want to forward DNS queries to.
One IPv6 address that you want to forward DNS queries to.
*/ inline const Aws::String& GetIpv6() const{ return m_ipv6; } /** *One IPv6 address that you want to forward DNS queries to.
*/ inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; } /** *One IPv6 address that you want to forward DNS queries to.
*/ inline void SetIpv6(const Aws::String& value) { m_ipv6HasBeenSet = true; m_ipv6 = value; } /** *One IPv6 address that you want to forward DNS queries to.
*/ inline void SetIpv6(Aws::String&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::move(value); } /** *One IPv6 address that you want to forward DNS queries to.
*/ inline void SetIpv6(const char* value) { m_ipv6HasBeenSet = true; m_ipv6.assign(value); } /** *One IPv6 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIpv6(const Aws::String& value) { SetIpv6(value); return *this;} /** *One IPv6 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIpv6(Aws::String&& value) { SetIpv6(std::move(value)); return *this;} /** *One IPv6 address that you want to forward DNS queries to.
*/ inline TargetAddress& WithIpv6(const char* value) { SetIpv6(value); return *this;} private: Aws::String m_ip; bool m_ipHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_ipv6; bool m_ipv6HasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws