/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyVpcEndpointServiceConfigurationRequest : public EC2Request { public: AWS_EC2_API ModifyVpcEndpointServiceConfigurationRequest(); // 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 "ModifyVpcEndpointServiceConfiguration"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

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 ModifyVpcEndpointServiceConfigurationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the service.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *

(Interface endpoint configuration) The private DNS name to assign to the * endpoint service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} /** *

(Interface endpoint configuration) Removes the private DNS name of the * endpoint service.

*/ inline bool GetRemovePrivateDnsName() const{ return m_removePrivateDnsName; } /** *

(Interface endpoint configuration) Removes the private DNS name of the * endpoint service.

*/ inline bool RemovePrivateDnsNameHasBeenSet() const { return m_removePrivateDnsNameHasBeenSet; } /** *

(Interface endpoint configuration) Removes the private DNS name of the * endpoint service.

*/ inline void SetRemovePrivateDnsName(bool value) { m_removePrivateDnsNameHasBeenSet = true; m_removePrivateDnsName = value; } /** *

(Interface endpoint configuration) Removes the private DNS name of the * endpoint service.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemovePrivateDnsName(bool value) { SetRemovePrivateDnsName(value); return *this;} /** *

Indicates whether requests to create an endpoint to your service must be * accepted.

*/ inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; } /** *

Indicates whether requests to create an endpoint to your service must be * accepted.

*/ inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; } /** *

Indicates whether requests to create an endpoint to your service must be * accepted.

*/ inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; } /** *

Indicates whether requests to create an endpoint to your service must be * accepted.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;} /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline const Aws::Vector& GetAddNetworkLoadBalancerArns() const{ return m_addNetworkLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline bool AddNetworkLoadBalancerArnsHasBeenSet() const { return m_addNetworkLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline void SetAddNetworkLoadBalancerArns(const Aws::Vector& value) { m_addNetworkLoadBalancerArnsHasBeenSet = true; m_addNetworkLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline void SetAddNetworkLoadBalancerArns(Aws::Vector&& value) { m_addNetworkLoadBalancerArnsHasBeenSet = true; m_addNetworkLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddNetworkLoadBalancerArns(const Aws::Vector& value) { SetAddNetworkLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddNetworkLoadBalancerArns(Aws::Vector&& value) { SetAddNetworkLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddNetworkLoadBalancerArns(const Aws::String& value) { m_addNetworkLoadBalancerArnsHasBeenSet = true; m_addNetworkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddNetworkLoadBalancerArns(Aws::String&& value) { m_addNetworkLoadBalancerArnsHasBeenSet = true; m_addNetworkLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddNetworkLoadBalancerArns(const char* value) { m_addNetworkLoadBalancerArnsHasBeenSet = true; m_addNetworkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline const Aws::Vector& GetRemoveNetworkLoadBalancerArns() const{ return m_removeNetworkLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline bool RemoveNetworkLoadBalancerArnsHasBeenSet() const { return m_removeNetworkLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline void SetRemoveNetworkLoadBalancerArns(const Aws::Vector& value) { m_removeNetworkLoadBalancerArnsHasBeenSet = true; m_removeNetworkLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline void SetRemoveNetworkLoadBalancerArns(Aws::Vector&& value) { m_removeNetworkLoadBalancerArnsHasBeenSet = true; m_removeNetworkLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveNetworkLoadBalancerArns(const Aws::Vector& value) { SetRemoveNetworkLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveNetworkLoadBalancerArns(Aws::Vector&& value) { SetRemoveNetworkLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveNetworkLoadBalancerArns(const Aws::String& value) { m_removeNetworkLoadBalancerArnsHasBeenSet = true; m_removeNetworkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveNetworkLoadBalancerArns(Aws::String&& value) { m_removeNetworkLoadBalancerArnsHasBeenSet = true; m_removeNetworkLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of Network Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveNetworkLoadBalancerArns(const char* value) { m_removeNetworkLoadBalancerArnsHasBeenSet = true; m_removeNetworkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline const Aws::Vector& GetAddGatewayLoadBalancerArns() const{ return m_addGatewayLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline bool AddGatewayLoadBalancerArnsHasBeenSet() const { return m_addGatewayLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline void SetAddGatewayLoadBalancerArns(const Aws::Vector& value) { m_addGatewayLoadBalancerArnsHasBeenSet = true; m_addGatewayLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline void SetAddGatewayLoadBalancerArns(Aws::Vector&& value) { m_addGatewayLoadBalancerArnsHasBeenSet = true; m_addGatewayLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddGatewayLoadBalancerArns(const Aws::Vector& value) { SetAddGatewayLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddGatewayLoadBalancerArns(Aws::Vector&& value) { SetAddGatewayLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddGatewayLoadBalancerArns(const Aws::String& value) { m_addGatewayLoadBalancerArnsHasBeenSet = true; m_addGatewayLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddGatewayLoadBalancerArns(Aws::String&& value) { m_addGatewayLoadBalancerArnsHasBeenSet = true; m_addGatewayLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your * service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddGatewayLoadBalancerArns(const char* value) { m_addGatewayLoadBalancerArnsHasBeenSet = true; m_addGatewayLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline const Aws::Vector& GetRemoveGatewayLoadBalancerArns() const{ return m_removeGatewayLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline bool RemoveGatewayLoadBalancerArnsHasBeenSet() const { return m_removeGatewayLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline void SetRemoveGatewayLoadBalancerArns(const Aws::Vector& value) { m_removeGatewayLoadBalancerArnsHasBeenSet = true; m_removeGatewayLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline void SetRemoveGatewayLoadBalancerArns(Aws::Vector&& value) { m_removeGatewayLoadBalancerArnsHasBeenSet = true; m_removeGatewayLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveGatewayLoadBalancerArns(const Aws::Vector& value) { SetRemoveGatewayLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveGatewayLoadBalancerArns(Aws::Vector&& value) { SetRemoveGatewayLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveGatewayLoadBalancerArns(const Aws::String& value) { m_removeGatewayLoadBalancerArnsHasBeenSet = true; m_removeGatewayLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveGatewayLoadBalancerArns(Aws::String&& value) { m_removeGatewayLoadBalancerArnsHasBeenSet = true; m_removeGatewayLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of Gateway Load Balancers to remove from * your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveGatewayLoadBalancerArns(const char* value) { m_removeGatewayLoadBalancerArnsHasBeenSet = true; m_removeGatewayLoadBalancerArns.push_back(value); return *this; } /** *

The IP address types to add to your service configuration.

*/ inline const Aws::Vector& GetAddSupportedIpAddressTypes() const{ return m_addSupportedIpAddressTypes; } /** *

The IP address types to add to your service configuration.

*/ inline bool AddSupportedIpAddressTypesHasBeenSet() const { return m_addSupportedIpAddressTypesHasBeenSet; } /** *

The IP address types to add to your service configuration.

*/ inline void SetAddSupportedIpAddressTypes(const Aws::Vector& value) { m_addSupportedIpAddressTypesHasBeenSet = true; m_addSupportedIpAddressTypes = value; } /** *

The IP address types to add to your service configuration.

*/ inline void SetAddSupportedIpAddressTypes(Aws::Vector&& value) { m_addSupportedIpAddressTypesHasBeenSet = true; m_addSupportedIpAddressTypes = std::move(value); } /** *

The IP address types to add to your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddSupportedIpAddressTypes(const Aws::Vector& value) { SetAddSupportedIpAddressTypes(value); return *this;} /** *

The IP address types to add to your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithAddSupportedIpAddressTypes(Aws::Vector&& value) { SetAddSupportedIpAddressTypes(std::move(value)); return *this;} /** *

The IP address types to add to your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddSupportedIpAddressTypes(const Aws::String& value) { m_addSupportedIpAddressTypesHasBeenSet = true; m_addSupportedIpAddressTypes.push_back(value); return *this; } /** *

The IP address types to add to your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddSupportedIpAddressTypes(Aws::String&& value) { m_addSupportedIpAddressTypesHasBeenSet = true; m_addSupportedIpAddressTypes.push_back(std::move(value)); return *this; } /** *

The IP address types to add to your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddAddSupportedIpAddressTypes(const char* value) { m_addSupportedIpAddressTypesHasBeenSet = true; m_addSupportedIpAddressTypes.push_back(value); return *this; } /** *

The IP address types to remove from your service configuration.

*/ inline const Aws::Vector& GetRemoveSupportedIpAddressTypes() const{ return m_removeSupportedIpAddressTypes; } /** *

The IP address types to remove from your service configuration.

*/ inline bool RemoveSupportedIpAddressTypesHasBeenSet() const { return m_removeSupportedIpAddressTypesHasBeenSet; } /** *

The IP address types to remove from your service configuration.

*/ inline void SetRemoveSupportedIpAddressTypes(const Aws::Vector& value) { m_removeSupportedIpAddressTypesHasBeenSet = true; m_removeSupportedIpAddressTypes = value; } /** *

The IP address types to remove from your service configuration.

*/ inline void SetRemoveSupportedIpAddressTypes(Aws::Vector&& value) { m_removeSupportedIpAddressTypesHasBeenSet = true; m_removeSupportedIpAddressTypes = std::move(value); } /** *

The IP address types to remove from your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveSupportedIpAddressTypes(const Aws::Vector& value) { SetRemoveSupportedIpAddressTypes(value); return *this;} /** *

The IP address types to remove from your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& WithRemoveSupportedIpAddressTypes(Aws::Vector&& value) { SetRemoveSupportedIpAddressTypes(std::move(value)); return *this;} /** *

The IP address types to remove from your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveSupportedIpAddressTypes(const Aws::String& value) { m_removeSupportedIpAddressTypesHasBeenSet = true; m_removeSupportedIpAddressTypes.push_back(value); return *this; } /** *

The IP address types to remove from your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveSupportedIpAddressTypes(Aws::String&& value) { m_removeSupportedIpAddressTypesHasBeenSet = true; m_removeSupportedIpAddressTypes.push_back(std::move(value)); return *this; } /** *

The IP address types to remove from your service configuration.

*/ inline ModifyVpcEndpointServiceConfigurationRequest& AddRemoveSupportedIpAddressTypes(const char* value) { m_removeSupportedIpAddressTypesHasBeenSet = true; m_removeSupportedIpAddressTypes.push_back(value); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; bool m_removePrivateDnsName; bool m_removePrivateDnsNameHasBeenSet = false; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet = false; Aws::Vector m_addNetworkLoadBalancerArns; bool m_addNetworkLoadBalancerArnsHasBeenSet = false; Aws::Vector m_removeNetworkLoadBalancerArns; bool m_removeNetworkLoadBalancerArnsHasBeenSet = false; Aws::Vector m_addGatewayLoadBalancerArns; bool m_addGatewayLoadBalancerArnsHasBeenSet = false; Aws::Vector m_removeGatewayLoadBalancerArns; bool m_removeGatewayLoadBalancerArnsHasBeenSet = false; Aws::Vector m_addSupportedIpAddressTypes; bool m_addSupportedIpAddressTypesHasBeenSet = false; Aws::Vector m_removeSupportedIpAddressTypes; bool m_removeSupportedIpAddressTypesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws