@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsVpcConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the subnets and security groups for a task or service.
Constructor and Description |
---|
AwsVpcConfiguration() |
Modifier and Type | Method and Description |
---|---|
AwsVpcConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroups()
The security groups associated with the task or service.
|
List<String> |
getSubnets()
The subnets associated with the task or service.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroups(Collection<String> securityGroups)
The security groups associated with the task or service.
|
void |
setSubnets(Collection<String> subnets)
The subnets associated with the task or service.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AwsVpcConfiguration |
withSecurityGroups(Collection<String> securityGroups)
The security groups associated with the task or service.
|
AwsVpcConfiguration |
withSecurityGroups(String... securityGroups)
The security groups associated with the task or service.
|
AwsVpcConfiguration |
withSubnets(Collection<String> subnets)
The subnets associated with the task or service.
|
AwsVpcConfiguration |
withSubnets(String... subnets)
The subnets associated with the task or service.
|
public List<String> getSubnets()
The subnets associated with the task or service.
public void setSubnets(Collection<String> subnets)
The subnets associated with the task or service.
subnets
- The subnets associated with the task or service.public AwsVpcConfiguration withSubnets(String... subnets)
The subnets associated with the task or service.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- The subnets associated with the task or service.public AwsVpcConfiguration withSubnets(Collection<String> subnets)
The subnets associated with the task or service.
subnets
- The subnets associated with the task or service.public List<String> getSecurityGroups()
The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
public void setSecurityGroups(Collection<String> securityGroups)
The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
securityGroups
- The security groups associated with the task or service. If you do not specify a security group, the
default security group for the VPC is used.public AwsVpcConfiguration withSecurityGroups(String... securityGroups)
The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- The security groups associated with the task or service. If you do not specify a security group, the
default security group for the VPC is used.public AwsVpcConfiguration withSecurityGroups(Collection<String> securityGroups)
The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used.
securityGroups
- The security groups associated with the task or service. If you do not specify a security group, the
default security group for the VPC is used.public String toString()
toString
in class Object
Object.toString()
public AwsVpcConfiguration clone()
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.