/** * 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 AWS_ROUTE53RESOLVER_API IpAddressUpdate { public: IpAddressUpdate(); IpAddressUpdate(Aws::Utils::Json::JsonView jsonValue); IpAddressUpdate& operator=(Aws::Utils::Json::JsonView jsonValue); 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 IP address.

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

The new IP address.

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

The new IP address.

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

The new IP address.

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

The new IP address.

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

The new IP address.

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

The new IP address.

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

The new IP address.

*/ inline IpAddressUpdate& WithIp(const char* value) { SetIp(value); return *this;} private: Aws::String m_ipId; bool m_ipIdHasBeenSet; Aws::String m_subnetId; bool m_subnetIdHasBeenSet; Aws::String m_ip; bool m_ipHasBeenSet; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws