/** * 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 DataSync { namespace Model { /** *

Specifies how your DataSync agent connects to Amazon Web Services using a * virtual private cloud (VPC) service endpoint. An agent that uses a VPC endpoint * isn't accessible over the public internet.

See Also:

AWS * API Reference

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the ID of the VPC endpoint that your agent connects to.

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

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline const Aws::String& GetPrivateLinkEndpoint() const{ return m_privateLinkEndpoint; } /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline bool PrivateLinkEndpointHasBeenSet() const { return m_privateLinkEndpointHasBeenSet; } /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline void SetPrivateLinkEndpoint(const Aws::String& value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint = value; } /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline void SetPrivateLinkEndpoint(Aws::String&& value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint = std::move(value); } /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline void SetPrivateLinkEndpoint(const char* value) { m_privateLinkEndpointHasBeenSet = true; m_privateLinkEndpoint.assign(value); } /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline PrivateLinkConfig& WithPrivateLinkEndpoint(const Aws::String& value) { SetPrivateLinkEndpoint(value); return *this;} /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline PrivateLinkConfig& WithPrivateLinkEndpoint(Aws::String&& value) { SetPrivateLinkEndpoint(std::move(value)); return *this;} /** *

Specifies the VPC endpoint provided by Amazon * Web Services PrivateLink that your agent connects to.

*/ inline PrivateLinkConfig& WithPrivateLinkEndpoint(const char* value) { SetPrivateLinkEndpoint(value); return *this;} /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline const Aws::Vector& GetSubnetArns() const{ return m_subnetArns; } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline bool SubnetArnsHasBeenSet() const { return m_subnetArnsHasBeenSet; } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline void SetSubnetArns(const Aws::Vector& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = value; } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline void SetSubnetArns(Aws::Vector&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns = std::move(value); } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline PrivateLinkConfig& WithSubnetArns(const Aws::Vector& value) { SetSubnetArns(value); return *this;} /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline PrivateLinkConfig& WithSubnetArns(Aws::Vector&& value) { SetSubnetArns(std::move(value)); return *this;} /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline PrivateLinkConfig& AddSubnetArns(const Aws::String& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline PrivateLinkConfig& AddSubnetArns(Aws::String&& value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(std::move(value)); return *this; } /** *

Specifies the ARN of the subnet where your VPC endpoint is located. You can * only specify one ARN.

*/ inline PrivateLinkConfig& AddSubnetArns(const char* value) { m_subnetArnsHasBeenSet = true; m_subnetArns.push_back(value); return *this; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline const Aws::Vector& GetSecurityGroupArns() const{ return m_securityGroupArns; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline bool SecurityGroupArnsHasBeenSet() const { return m_securityGroupArnsHasBeenSet; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline void SetSecurityGroupArns(const Aws::Vector& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = value; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline void SetSecurityGroupArns(Aws::Vector&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns = std::move(value); } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline PrivateLinkConfig& WithSecurityGroupArns(const Aws::Vector& value) { SetSecurityGroupArns(value); return *this;} /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline PrivateLinkConfig& WithSecurityGroupArns(Aws::Vector&& value) { SetSecurityGroupArns(std::move(value)); return *this;} /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline PrivateLinkConfig& AddSecurityGroupArns(const Aws::String& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline PrivateLinkConfig& AddSecurityGroupArns(Aws::String&& value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(std::move(value)); return *this; } /** *

Specifies the Amazon Resource Names (ARN) of the security group that provides * DataSync access to your VPC endpoint. You can only specify one ARN.

*/ inline PrivateLinkConfig& AddSecurityGroupArns(const char* value) { m_securityGroupArnsHasBeenSet = true; m_securityGroupArns.push_back(value); return *this; } private: Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::String m_privateLinkEndpoint; bool m_privateLinkEndpointHasBeenSet = false; Aws::Vector m_subnetArns; bool m_subnetArnsHasBeenSet = false; Aws::Vector m_securityGroupArns; bool m_securityGroupArnsHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws