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

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline CreateInstanceConnectEndpointRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline CreateInstanceConnectEndpointRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet in which to create the EC2 Instance Connect * Endpoint.

*/ inline CreateInstanceConnectEndpointRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline CreateInstanceConnectEndpointRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline CreateInstanceConnectEndpointRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

One or more security groups to associate with the endpoint. If you don't * specify a security group, the default security group for your VPC will be * associated with the endpoint.

*/ inline CreateInstanceConnectEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

Indicates whether your client's IP address is preserved as the source. The * value is true or false.

  • If * true, your client's IP address is used when you connect to a * resource.

  • If false, the elastic network interface * IP address is used when you connect to a resource.

Default: * true

*/ inline bool GetPreserveClientIp() const{ return m_preserveClientIp; } /** *

Indicates whether your client's IP address is preserved as the source. The * value is true or false.

  • If * true, your client's IP address is used when you connect to a * resource.

  • If false, the elastic network interface * IP address is used when you connect to a resource.

Default: * true

*/ inline bool PreserveClientIpHasBeenSet() const { return m_preserveClientIpHasBeenSet; } /** *

Indicates whether your client's IP address is preserved as the source. The * value is true or false.

  • If * true, your client's IP address is used when you connect to a * resource.

  • If false, the elastic network interface * IP address is used when you connect to a resource.

Default: * true

*/ inline void SetPreserveClientIp(bool value) { m_preserveClientIpHasBeenSet = true; m_preserveClientIp = value; } /** *

Indicates whether your client's IP address is preserved as the source. The * value is true or false.

  • If * true, your client's IP address is used when you connect to a * resource.

  • If false, the elastic network interface * IP address is used when you connect to a resource.

Default: * true

*/ inline CreateInstanceConnectEndpointRequest& WithPreserveClientIp(bool value) { SetPreserveClientIp(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ 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.

*/ 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.

*/ 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.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

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

The tags to apply to the EC2 Instance Connect Endpoint during creation.

*/ inline CreateInstanceConnectEndpointRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; bool m_preserveClientIp; bool m_preserveClientIpHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws