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

In an UpdateResolverEndpoint * request, information about an IP address to update.

See Also:

* AWS * API Reference

*/ class IpAddressUpdate { public: AWS_ROUTE53RESOLVER_API IpAddressUpdate(); AWS_ROUTE53RESOLVER_API IpAddressUpdate(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API IpAddressUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline const Aws::String& GetIpId() const{ return m_ipId; } /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline bool IpIdHasBeenSet() const { return m_ipIdHasBeenSet; } /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline void SetIpId(const Aws::String& value) { m_ipIdHasBeenSet = true; m_ipId = value; } /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline void SetIpId(Aws::String&& value) { m_ipIdHasBeenSet = true; m_ipId = std::move(value); } /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline void SetIpId(const char* value) { m_ipIdHasBeenSet = true; m_ipId.assign(value); } /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithIpId(const Aws::String& value) { SetIpId(value); return *this;} /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithIpId(Aws::String&& value) { SetIpId(std::move(value)); return *this;} /** *

Only when removing an IP address from a Resolver endpoint: The ID of * the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithIpId(const char* value) { SetIpId(value); return *this;} /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet that includes the IP address that you want to update. To * get this ID, use GetResolverEndpoint.

*/ inline IpAddressUpdate& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The new IPv4 address.

*/ inline const Aws::String& GetIp() const{ return m_ip; } /** *

The new IPv4 address.

*/ inline bool IpHasBeenSet() const { return m_ipHasBeenSet; } /** *

The new IPv4 address.

*/ inline void SetIp(const Aws::String& value) { m_ipHasBeenSet = true; m_ip = value; } /** *

The new IPv4 address.

*/ inline void SetIp(Aws::String&& value) { m_ipHasBeenSet = true; m_ip = std::move(value); } /** *

The new IPv4 address.

*/ inline void SetIp(const char* value) { m_ipHasBeenSet = true; m_ip.assign(value); } /** *

The new IPv4 address.

*/ inline IpAddressUpdate& WithIp(const Aws::String& value) { SetIp(value); return *this;} /** *

The new IPv4 address.

*/ inline IpAddressUpdate& WithIp(Aws::String&& value) { SetIp(std::move(value)); return *this;} /** *

The new IPv4 address.

*/ inline IpAddressUpdate& WithIp(const char* value) { SetIp(value); return *this;} /** *

The new IPv6 address.

*/ inline const Aws::String& GetIpv6() const{ return m_ipv6; } /** *

The new IPv6 address.

*/ inline bool Ipv6HasBeenSet() const { return m_ipv6HasBeenSet; } /** *

The new IPv6 address.

*/ inline void SetIpv6(const Aws::String& value) { m_ipv6HasBeenSet = true; m_ipv6 = value; } /** *

The new IPv6 address.

*/ inline void SetIpv6(Aws::String&& value) { m_ipv6HasBeenSet = true; m_ipv6 = std::move(value); } /** *

The new IPv6 address.

*/ inline void SetIpv6(const char* value) { m_ipv6HasBeenSet = true; m_ipv6.assign(value); } /** *

The new IPv6 address.

*/ inline IpAddressUpdate& WithIpv6(const Aws::String& value) { SetIpv6(value); return *this;} /** *

The new IPv6 address.

*/ inline IpAddressUpdate& WithIpv6(Aws::String&& value) { SetIpv6(std::move(value)); return *this;} /** *

The new IPv6 address.

*/ inline IpAddressUpdate& WithIpv6(const char* value) { SetIpv6(value); return *this;} private: Aws::String m_ipId; bool m_ipIdHasBeenSet = false; 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