/** * 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 AWS_EC2_API CreateVpcEndpointServiceConfigurationRequest : public EC2Request { public: 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::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 CreateVpcEndpointServiceConfigurationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

Indicates whether requests from service consumers to create an endpoint to * your service must be accepted. To accept a request, use * AcceptVpcEndpointConnections.

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

Indicates whether requests from service consumers to create an endpoint to * your service must be accepted. To accept a request, use * AcceptVpcEndpointConnections.

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

Indicates whether requests from service consumers to create an endpoint to * your service must be accepted. To accept a request, use * AcceptVpcEndpointConnections.

*/ 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. To accept a request, use * AcceptVpcEndpointConnections.

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

The private DNS name to assign to the VPC endpoint service.

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

The private DNS name to assign to the VPC endpoint service.

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

The private DNS name to assign to the VPC endpoint service.

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

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); } /** *

The private DNS name to assign to the VPC endpoint service.

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

The private DNS name to assign to the VPC endpoint service.

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

The private DNS name to assign to the VPC endpoint service.

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

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 one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

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

The Amazon Resource Names (ARNs) of one or more Network Load Balancers for * your service.

*/ inline CreateVpcEndpointServiceConfigurationRequest& AddNetworkLoadBalancerArns(const char* value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.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; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet; Aws::Vector m_networkLoadBalancerArns; bool m_networkLoadBalancerArnsHasBeenSet; Aws::String m_clientToken; bool m_clientTokenHasBeenSet; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws