/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Transfer { namespace Model { /** *

The virtual private cloud (VPC) endpoint settings that are configured for * your file transfer protocol-enabled server. With a VPC endpoint, you can * restrict access to your server and resources only within your VPC. To control * incoming internet traffic, invoke the UpdateServer API and attach * an Elastic IP address to your server's endpoint.

After May 19, * 2021, you won't be able to create a server using * EndpointType=VPC_ENDPOINT in your Amazon Web Servicesaccount if * your account hasn't already done so before May 19, 2021. If you have already * created servers with EndpointType=VPC_ENDPOINT in your Amazon Web * Servicesaccount on or before May 19, 2021, you will not be affected. After this * date, use EndpointType=VPC.

For more * information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

*

See Also:

AWS * API Reference

*/ class EndpointDetails { public: AWS_TRANSFER_API EndpointDetails(); AWS_TRANSFER_API EndpointDetails(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSFER_API EndpointDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline const Aws::Vector& GetAddressAllocationIds() const{ return m_addressAllocationIds; } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline bool AddressAllocationIdsHasBeenSet() const { return m_addressAllocationIdsHasBeenSet; } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline void SetAddressAllocationIds(const Aws::Vector& value) { m_addressAllocationIdsHasBeenSet = true; m_addressAllocationIds = value; } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline void SetAddressAllocationIds(Aws::Vector&& value) { m_addressAllocationIdsHasBeenSet = true; m_addressAllocationIds = std::move(value); } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline EndpointDetails& WithAddressAllocationIds(const Aws::Vector& value) { SetAddressAllocationIds(value); return *this;} /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline EndpointDetails& WithAddressAllocationIds(Aws::Vector&& value) { SetAddressAllocationIds(std::move(value)); return *this;} /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline EndpointDetails& AddAddressAllocationIds(const Aws::String& value) { m_addressAllocationIdsHasBeenSet = true; m_addressAllocationIds.push_back(value); return *this; } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline EndpointDetails& AddAddressAllocationIds(Aws::String&& value) { m_addressAllocationIdsHasBeenSet = true; m_addressAllocationIds.push_back(std::move(value)); return *this; } /** *

A list of address allocation IDs that are required to attach an Elastic IP * address to your server's endpoint.

This property can only be set * when EndpointType is set to VPC and it is only valid * in the UpdateServer API.

*/ inline EndpointDetails& AddAddressAllocationIds(const char* value) { m_addressAllocationIdsHasBeenSet = true; m_addressAllocationIds.push_back(value); return *this; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline EndpointDetails& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline EndpointDetails& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline EndpointDetails& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline EndpointDetails& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

A list of subnet IDs that are required to host your server endpoint in your * VPC.

This property can only be set when EndpointType * is set to VPC.

*/ inline EndpointDetails& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline EndpointDetails& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline EndpointDetails& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

The identifier of the VPC endpoint.

This property can only be * set when EndpointType is set to VPC_ENDPOINT.

*

For more information, see * https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.

* */ inline EndpointDetails& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline EndpointDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline EndpointDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC identifier of the VPC in which a server's endpoint will be * hosted.

This property can only be set when * EndpointType is set to VPC.

*/ inline EndpointDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

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

A list of security groups IDs that are available to attach to your server's * endpoint.

This property can only be set when * EndpointType is set to VPC.

You can edit the * SecurityGroupIds property in the UpdateServer * API only if you are changing the EndpointType from * PUBLIC or VPC_ENDPOINT to VPC. To change * security groups associated with your server's VPC endpoint after creation, use * the Amazon EC2 ModifyVpcEndpoint * API.

*/ inline EndpointDetails& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } private: Aws::Vector m_addressAllocationIds; bool m_addressAllocationIdsHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws