/** * 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 AWS_EC2_API ModifyVpcEndpointServiceConfigurationRequest : public EC2Request { public: 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::String SerializePayload() const override; protected: 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;} /** *

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

The private DNS name to assign to the endpoint service.

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

Removes the private DNS name of the endpoint service.

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

Removes the private DNS name of the endpoint service.

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

Removes the private DNS name of the endpoint service.

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

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; } private: bool m_dryRun; bool m_dryRunHasBeenSet; Aws::String m_serviceId; bool m_serviceIdHasBeenSet; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet; bool m_removePrivateDnsName; bool m_removePrivateDnsNameHasBeenSet; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet; Aws::Vector m_addNetworkLoadBalancerArns; bool m_addNetworkLoadBalancerArnsHasBeenSet; Aws::Vector m_removeNetworkLoadBalancerArns; bool m_removeNetworkLoadBalancerArnsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws