/** * 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 to your server's endpoint.

See Also:

AWS * API Reference

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

A list of address allocation IDs that are required to attach an Elastic IP * address to your file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

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

A list of address allocation IDs that are required to attach an Elastic IP * address to your file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer protocol-enabled server's endpoint. This is only * valid in the UpdateServer API.

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

*/ 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

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

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

A list of subnet IDs that are required to host your file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

This property can * only be used 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 file transfer * protocol-enabled server endpoint in your VPC.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The ID of the VPC endpoint.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

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

The VPC ID of the VPC in which a file transfer protocol-enabled server's * endpoint will be hosted.

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

*/ inline EndpointDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} private: Aws::Vector m_addressAllocationIds; bool m_addressAllocationIdsHasBeenSet; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet; Aws::String m_vpcId; bool m_vpcIdHasBeenSet; }; } // namespace Model } // namespace Transfer } // namespace Aws