/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.datasync.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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 AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PrivateLinkConfig implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the ID of the VPC endpoint that your agent connects to. *
*/ private String vpcEndpointId; /** ** Specifies the VPC endpoint provided by Amazon Web Services PrivateLink * that your agent connects to. *
*/ private String privateLinkEndpoint; /** ** Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. *
*/ private java.util.List* Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. *
*/ private java.util.List* Specifies the ID of the VPC endpoint that your agent connects to. *
* * @param vpcEndpointId * Specifies the ID of the VPC endpoint that your agent connects to. */ public void setVpcEndpointId(String vpcEndpointId) { this.vpcEndpointId = vpcEndpointId; } /** ** Specifies the ID of the VPC endpoint that your agent connects to. *
* * @return Specifies the ID of the VPC endpoint that your agent connects to. */ public String getVpcEndpointId() { return this.vpcEndpointId; } /** ** Specifies the ID of the VPC endpoint that your agent connects to. *
* * @param vpcEndpointId * Specifies the ID of the VPC endpoint that your agent connects to. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withVpcEndpointId(String vpcEndpointId) { setVpcEndpointId(vpcEndpointId); return this; } /** ** Specifies the VPC endpoint provided by Amazon Web Services PrivateLink * that your agent connects to. *
* * @param privateLinkEndpoint * Specifies the VPC endpoint provided by Amazon Web Services * PrivateLink that your agent connects to. */ public void setPrivateLinkEndpoint(String privateLinkEndpoint) { this.privateLinkEndpoint = privateLinkEndpoint; } /** ** Specifies the VPC endpoint provided by Amazon Web Services PrivateLink * that your agent connects to. *
* * @return Specifies the VPC endpoint provided by Amazon Web Services * PrivateLink that your agent connects to. */ public String getPrivateLinkEndpoint() { return this.privateLinkEndpoint; } /** ** Specifies the VPC endpoint provided by Amazon Web Services PrivateLink * that your agent connects to. *
* * @param privateLinkEndpoint * Specifies the VPC endpoint provided by Amazon Web Services * PrivateLink that your agent connects to. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withPrivateLinkEndpoint(String privateLinkEndpoint) { setPrivateLinkEndpoint(privateLinkEndpoint); return this; } /** ** Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. *
* * @return Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. */ public java.util.List* Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. *
* * @param subnetArns * Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. */ public void setSubnetArns(java.util.Collection* Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetArns(java.util.Collection)} or {@link #withSubnetArns(java.util.Collection)} if you want to * override the existing values. *
* * @param subnetArns * Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withSubnetArns(String... subnetArns) { if (this.subnetArns == null) { setSubnetArns(new java.util.ArrayList* Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. *
* * @param subnetArns * Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withSubnetArns(java.util.Collection* Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. *
* * @return Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. */ public java.util.List* Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. *
* * @param 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. */ public void setSecurityGroupArns(java.util.Collection* Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupArns(java.util.Collection)} or {@link #withSecurityGroupArns(java.util.Collection)} if * you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withSecurityGroupArns(String... securityGroupArns) { if (this.securityGroupArns == null) { setSecurityGroupArns(new java.util.ArrayList* Specifies the Amazon Resource Names (ARN) of the security group that provides DataSync access to your VPC * endpoint. You can only specify one ARN. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public PrivateLinkConfig withSecurityGroupArns(java.util.Collection