@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsLambdaFunctionVpcConfig extends Object implements Serializable, Cloneable, StructuredPojo
The VPC security groups and subnets that are attached to a Lambda function.
Constructor and Description |
---|
AwsLambdaFunctionVpcConfig() |
Modifier and Type | Method and Description |
---|---|
AwsLambdaFunctionVpcConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A list of VPC security groups IDs.
|
List<String> |
getSubnetIds()
A list of VPC subnet IDs.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A list of VPC security groups IDs.
|
void |
setSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
AwsLambdaFunctionVpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
A list of VPC security groups IDs.
|
AwsLambdaFunctionVpcConfig |
withSecurityGroupIds(String... securityGroupIds)
A list of VPC security groups IDs.
|
AwsLambdaFunctionVpcConfig |
withSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs.
|
AwsLambdaFunctionVpcConfig |
withSubnetIds(String... subnetIds)
A list of VPC subnet IDs.
|
AwsLambdaFunctionVpcConfig |
withVpcId(String vpcId)
The ID of the VPC.
|
public List<String> getSecurityGroupIds()
A list of VPC security groups IDs.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A list of VPC security groups IDs.
securityGroupIds
- A list of VPC security groups IDs.public AwsLambdaFunctionVpcConfig withSecurityGroupIds(String... securityGroupIds)
A list of VPC security groups IDs.
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 VPC security groups IDs.public AwsLambdaFunctionVpcConfig withSecurityGroupIds(Collection<String> securityGroupIds)
A list of VPC security groups IDs.
securityGroupIds
- A list of VPC security groups IDs.public List<String> getSubnetIds()
A list of VPC subnet IDs.
public void setSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs.
subnetIds
- A list of VPC subnet IDs.public AwsLambdaFunctionVpcConfig withSubnetIds(String... subnetIds)
A list of VPC subnet IDs.
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 VPC subnet IDs.public AwsLambdaFunctionVpcConfig withSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs.
subnetIds
- A list of VPC subnet IDs.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public AwsLambdaFunctionVpcConfig withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String toString()
toString
in class Object
Object.toString()
public AwsLambdaFunctionVpcConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.