@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcConfig extends Object implements Serializable, Cloneable, StructuredPojo
If your Lambda function accesses resources in a VPC, you provide this parameter identifying the list of security group IDs and subnet IDs. These must belong to the same VPC. You must provide at least one security group and one subnet ID.
Constructor and Description |
---|
VpcConfig() |
Modifier and Type | Method and Description |
---|---|
VpcConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A list of one or more security groups IDs in your VPC.
|
List<String> |
getSubnetIds()
A list of one or more subnet IDs in your VPC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
void |
setSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
VpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
VpcConfig |
withSecurityGroupIds(String... securityGroupIds)
A list of one or more security groups IDs in your VPC.
|
VpcConfig |
withSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
|
VpcConfig |
withSubnetIds(String... subnetIds)
A list of one or more subnet IDs in your VPC.
|
public List<String> getSubnetIds()
A list of one or more subnet IDs in your VPC.
public void setSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
subnetIds
- A list of one or more subnet IDs in your VPC.public VpcConfig withSubnetIds(String... subnetIds)
A list of one or more subnet IDs in your VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- A list of one or more subnet IDs in your VPC.public VpcConfig withSubnetIds(Collection<String> subnetIds)
A list of one or more subnet IDs in your VPC.
subnetIds
- A list of one or more subnet IDs in your VPC.public List<String> getSecurityGroupIds()
A list of one or more security groups IDs in your VPC.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
securityGroupIds
- A list of one or more security groups IDs in your VPC.public VpcConfig withSecurityGroupIds(String... securityGroupIds)
A list of one or more security groups IDs in your VPC.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- A list of one or more security groups IDs in your VPC.public VpcConfig withSecurityGroupIds(Collection<String> securityGroupIds)
A list of one or more security groups IDs in your VPC.
securityGroupIds
- A list of one or more security groups IDs in your VPC.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.