/* * 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.comprehend.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using * for the job. For more information, see Amazon VPC. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VpcConfig implements Serializable, Cloneable, StructuredPojo { /** ** The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve * as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more * information, see Security * Groups for your VPC. *
*/ private java.util.List* The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses * used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. *
*/ private java.util.List* The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve * as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more * information, see Security * Groups for your VPC. *
* * @return The ID number for a security group on an instance of your private VPC. Security groups on your VPC * function serve as a virtual firewall to control inbound and outbound traffic and provides security for * the resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security Groups for your * VPC. */ public java.util.List* The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve * as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more * information, see Security * Groups for your VPC. *
* * @param securityGroupIds * The ID number for a security group on an instance of your private VPC. Security groups on your VPC * function serve as a virtual firewall to control inbound and outbound traffic and provides security for the * resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security Groups for your * VPC. */ public void setSecurityGroupIds(java.util.Collection* The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve * as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more * information, see Security * Groups for your VPC. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *
* * @param securityGroupIds * The ID number for a security group on an instance of your private VPC. Security groups on your VPC * function serve as a virtual firewall to control inbound and outbound traffic and provides security for the * resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security Groups for your * VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfig withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList* The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve * as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll * be accessing on the VPC. This ID number is preceded by "sg-", for instance: "sg-03b388029b0a285ea". For more * information, see Security * Groups for your VPC. *
* * @param securityGroupIds * The ID number for a security group on an instance of your private VPC. Security groups on your VPC * function serve as a virtual firewall to control inbound and outbound traffic and provides security for the * resources that you’ll be accessing on the VPC. This ID number is preceded by "sg-", for instance: * "sg-03b388029b0a285ea". For more information, see Security Groups for your * VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfig withSecurityGroupIds(java.util.Collection* The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses * used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. *
* * @return The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 * addresses used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID * number is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. */ public java.util.List* The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses * used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. *
* * @param subnets * The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 * addresses used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number * is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. */ public void setSubnets(java.util.Collection* The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses * used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *
* * @param subnets * The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 * addresses used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number * is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfig withSubnets(String... subnets) { if (this.subnets == null) { setSubnets(new java.util.ArrayList* The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses * used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number is preceded by * "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. *
* * @param subnets * The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 * addresses used by the VPC and is specific to a given availability zone in the VPC’s Region. This ID number * is preceded by "subnet-", for instance: "subnet-04ccf456919e69055". For more information, see VPCs and Subnets. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcConfig withSubnets(java.util.Collection