/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyVpnConnectionOptionsRequest : public EC2Request { public: AWS_EC2_API ModifyVpnConnectionOptionsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyVpnConnectionOptions"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the Site-to-Site VPN connection.

*/ inline const Aws::String& GetVpnConnectionId() const{ return m_vpnConnectionId; } /** *

The ID of the Site-to-Site VPN connection.

*/ inline bool VpnConnectionIdHasBeenSet() const { return m_vpnConnectionIdHasBeenSet; } /** *

The ID of the Site-to-Site VPN connection.

*/ inline void SetVpnConnectionId(const Aws::String& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = value; } /** *

The ID of the Site-to-Site VPN connection.

*/ inline void SetVpnConnectionId(Aws::String&& value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId = std::move(value); } /** *

The ID of the Site-to-Site VPN connection.

*/ inline void SetVpnConnectionId(const char* value) { m_vpnConnectionIdHasBeenSet = true; m_vpnConnectionId.assign(value); } /** *

The ID of the Site-to-Site VPN connection.

*/ inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(const Aws::String& value) { SetVpnConnectionId(value); return *this;} /** *

The ID of the Site-to-Site VPN connection.

*/ inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(Aws::String&& value) { SetVpnConnectionId(std::move(value)); return *this;} /** *

The ID of the Site-to-Site VPN connection.

*/ inline ModifyVpnConnectionOptionsRequest& WithVpnConnectionId(const char* value) { SetVpnConnectionId(value); return *this;} /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline const Aws::String& GetLocalIpv4NetworkCidr() const{ return m_localIpv4NetworkCidr; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline bool LocalIpv4NetworkCidrHasBeenSet() const { return m_localIpv4NetworkCidrHasBeenSet; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(const Aws::String& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = value; } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(Aws::String&& value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr = std::move(value); } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline void SetLocalIpv4NetworkCidr(const char* value) { m_localIpv4NetworkCidrHasBeenSet = true; m_localIpv4NetworkCidr.assign(value); } /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(const Aws::String& value) { SetLocalIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(Aws::String&& value) { SetLocalIpv4NetworkCidr(std::move(value)); return *this;} /** *

The IPv4 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv4NetworkCidr(const char* value) { SetLocalIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline const Aws::String& GetRemoteIpv4NetworkCidr() const{ return m_remoteIpv4NetworkCidr; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline bool RemoteIpv4NetworkCidrHasBeenSet() const { return m_remoteIpv4NetworkCidrHasBeenSet; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(const Aws::String& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = value; } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(Aws::String&& value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr = std::move(value); } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline void SetRemoteIpv4NetworkCidr(const char* value) { m_remoteIpv4NetworkCidrHasBeenSet = true; m_remoteIpv4NetworkCidr.assign(value); } /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(const Aws::String& value) { SetRemoteIpv4NetworkCidr(value); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(Aws::String&& value) { SetRemoteIpv4NetworkCidr(std::move(value)); return *this;} /** *

The IPv4 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: 0.0.0.0/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv4NetworkCidr(const char* value) { SetRemoteIpv4NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline const Aws::String& GetLocalIpv6NetworkCidr() const{ return m_localIpv6NetworkCidr; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline bool LocalIpv6NetworkCidrHasBeenSet() const { return m_localIpv6NetworkCidrHasBeenSet; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(const Aws::String& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = value; } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(Aws::String&& value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr = std::move(value); } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline void SetLocalIpv6NetworkCidr(const char* value) { m_localIpv6NetworkCidrHasBeenSet = true; m_localIpv6NetworkCidr.assign(value); } /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(const Aws::String& value) { SetLocalIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(Aws::String&& value) { SetLocalIpv6NetworkCidr(std::move(value)); return *this;} /** *

The IPv6 CIDR on the customer gateway (on-premises) side of the VPN * connection.

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithLocalIpv6NetworkCidr(const char* value) { SetLocalIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline const Aws::String& GetRemoteIpv6NetworkCidr() const{ return m_remoteIpv6NetworkCidr; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline bool RemoteIpv6NetworkCidrHasBeenSet() const { return m_remoteIpv6NetworkCidrHasBeenSet; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(const Aws::String& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = value; } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(Aws::String&& value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr = std::move(value); } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline void SetRemoteIpv6NetworkCidr(const char* value) { m_remoteIpv6NetworkCidrHasBeenSet = true; m_remoteIpv6NetworkCidr.assign(value); } /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(const Aws::String& value) { SetRemoteIpv6NetworkCidr(value); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(Aws::String&& value) { SetRemoteIpv6NetworkCidr(std::move(value)); return *this;} /** *

The IPv6 CIDR on the Amazon Web Services side of the VPN connection.

*

Default: ::/0

*/ inline ModifyVpnConnectionOptionsRequest& WithRemoteIpv6NetworkCidr(const char* value) { SetRemoteIpv6NetworkCidr(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifyVpnConnectionOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_vpnConnectionId; bool m_vpnConnectionIdHasBeenSet = false; Aws::String m_localIpv4NetworkCidr; bool m_localIpv4NetworkCidrHasBeenSet = false; Aws::String m_remoteIpv4NetworkCidr; bool m_remoteIpv4NetworkCidrHasBeenSet = false; Aws::String m_localIpv6NetworkCidr; bool m_localIpv6NetworkCidrHasBeenSet = false; Aws::String m_remoteIpv6NetworkCidr; bool m_remoteIpv6NetworkCidrHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws