/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class CreateVpcEndpointServiceConfigurationRequest : public EC2Request { public: AWS_EC2_API CreateVpcEndpointServiceConfigurationRequest(); // 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 "CreateVpcEndpointServiceConfiguration"; } 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 CreateVpcEndpointServiceConfigurationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

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

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

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

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

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

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

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

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

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

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

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

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

(Interface endpoint configuration) The private DNS name to assign to the VPC * 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 VPC * 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 VPC * 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 VPC * endpoint service.

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

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

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

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

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

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline const Aws::Vector& GetNetworkLoadBalancerArns() const{ return m_networkLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline bool NetworkLoadBalancerArnsHasBeenSet() const { return m_networkLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline void SetNetworkLoadBalancerArns(const Aws::Vector& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline void SetNetworkLoadBalancerArns(Aws::Vector&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithNetworkLoadBalancerArns(const Aws::Vector& value) { SetNetworkLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithNetworkLoadBalancerArns(Aws::Vector&& value) { SetNetworkLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddNetworkLoadBalancerArns(const Aws::String& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddNetworkLoadBalancerArns(Aws::String&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the Network Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddNetworkLoadBalancerArns(const char* value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline const Aws::Vector& GetGatewayLoadBalancerArns() const{ return m_gatewayLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline bool GatewayLoadBalancerArnsHasBeenSet() const { return m_gatewayLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline void SetGatewayLoadBalancerArns(const Aws::Vector& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline void SetGatewayLoadBalancerArns(Aws::Vector&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithGatewayLoadBalancerArns(const Aws::Vector& value) { SetGatewayLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithGatewayLoadBalancerArns(Aws::Vector&& value) { SetGatewayLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddGatewayLoadBalancerArns(const Aws::String& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddGatewayLoadBalancerArns(Aws::String&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddGatewayLoadBalancerArns(const char* value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline const Aws::Vector& GetSupportedIpAddressTypes() const{ return m_supportedIpAddressTypes; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline bool SupportedIpAddressTypesHasBeenSet() const { return m_supportedIpAddressTypesHasBeenSet; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline void SetSupportedIpAddressTypes(const Aws::Vector& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = value; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline void SetSupportedIpAddressTypes(Aws::Vector&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = std::move(value); } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithSupportedIpAddressTypes(const Aws::Vector& value) { SetSupportedIpAddressTypes(value); return *this;} /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithSupportedIpAddressTypes(Aws::Vector&& value) { SetSupportedIpAddressTypes(std::move(value)); return *this;} /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddSupportedIpAddressTypes(const Aws::String& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(value); return *this; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddSupportedIpAddressTypes(Aws::String&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(std::move(value)); return *this; } /** *

The supported IP address types. The possible values are ipv4 and * ipv6.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddSupportedIpAddressTypes(const char* value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(value); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to ensure idempotency.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The tags to associate with the service.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to associate with the service.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to associate with the service.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to associate with the service.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to associate with the service.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to associate with the service.

*/ inline CreateVpcEndpointServiceConfigurationRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to associate with the service.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to associate with the service.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; Aws::Vector m_networkLoadBalancerArns; bool m_networkLoadBalancerArnsHasBeenSet = false; Aws::Vector m_gatewayLoadBalancerArns; bool m_gatewayLoadBalancerArnsHasBeenSet = false; Aws::Vector m_supportedIpAddressTypes; bool m_supportedIpAddressTypesHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws