/* * Copyright 2010-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; /** *
* 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. *
*/ public class VpcConfig implements Serializable { /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated object so that method calls can be * chained together. */ public VpcConfig withSecurityGroupIds(String... securityGroupIds) { if (getSecurityGroupIds() == null) { this.securityGroupIds = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated object so that method calls can be * chained together. */ public VpcConfig withSubnets(String... subnets) { if (getSubnets() == null) { this.subnets = 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @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 A reference to this updated object so that method calls can be * chained together. */ public VpcConfig withSubnets(java.util.Collection