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

The VPC endpoint, subnet, and security group that an agent uses to access IP * addresses in a VPC (Virtual Private Cloud).

See Also:

AWS * API Reference

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The ID of the VPC endpoint that is configured for an agent. An agent that is * configured with a VPC endpoint will not be accessible over the public * internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The private endpoint that is configured for an agent that has access to IP * addresses in a PrivateLink. * An agent that is configured with this endpoint will not be accessible over the * public internet.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the subnets that are configured for an * agent activated in a VPC or an agent that has access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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

The Amazon Resource Names (ARNs) of the security groups that are configured * for the EC2 resource that hosts an agent activated in a VPC or an agent that has * access to a VPC endpoint.

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