@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VPCConfig extends Object implements Serializable, Cloneable, StructuredPojo
If your simulation job 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 two subnet IDs.
Constructor and Description |
---|
VPCConfig() |
Modifier and Type | Method and Description |
---|---|
VPCConfig |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAssignPublicIp()
A boolean indicating whether to assign a public IP address.
|
List<String> |
getSecurityGroups()
A list of one or more security groups IDs in your VPC.
|
List<String> |
getSubnets()
A list of one or more subnet IDs in your VPC.
|
int |
hashCode() |
Boolean |
isAssignPublicIp()
A boolean indicating whether to assign a public IP address.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssignPublicIp(Boolean assignPublicIp)
A boolean indicating whether to assign a public IP address.
|
void |
setSecurityGroups(Collection<String> securityGroups)
A list of one or more security groups IDs in your VPC.
|
void |
setSubnets(Collection<String> subnets)
A list of one or more subnet IDs in your VPC.
|
String |
toString()
Returns a string representation of this object.
|
VPCConfig |
withAssignPublicIp(Boolean assignPublicIp)
A boolean indicating whether to assign a public IP address.
|
VPCConfig |
withSecurityGroups(Collection<String> securityGroups)
A list of one or more security groups IDs in your VPC.
|
VPCConfig |
withSecurityGroups(String... securityGroups)
A list of one or more security groups IDs in your VPC.
|
VPCConfig |
withSubnets(Collection<String> subnets)
A list of one or more subnet IDs in your VPC.
|
VPCConfig |
withSubnets(String... subnets)
A list of one or more subnet IDs in your VPC.
|
public List<String> getSubnets()
A list of one or more subnet IDs in your VPC.
public void setSubnets(Collection<String> subnets)
A list of one or more subnet IDs in your VPC.
subnets
- A list of one or more subnet IDs in your VPC.public VPCConfig withSubnets(String... subnets)
A list of one or more subnet IDs in your VPC.
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
- A list of one or more subnet IDs in your VPC.public VPCConfig withSubnets(Collection<String> subnets)
A list of one or more subnet IDs in your VPC.
subnets
- A list of one or more subnet IDs in your VPC.public List<String> getSecurityGroups()
A list of one or more security groups IDs in your VPC.
public void setSecurityGroups(Collection<String> securityGroups)
A list of one or more security groups IDs in your VPC.
securityGroups
- A list of one or more security groups IDs in your VPC.public VPCConfig withSecurityGroups(String... securityGroups)
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
setSecurityGroups(java.util.Collection)
or withSecurityGroups(java.util.Collection)
if you want
to override the existing values.
securityGroups
- A list of one or more security groups IDs in your VPC.public VPCConfig withSecurityGroups(Collection<String> securityGroups)
A list of one or more security groups IDs in your VPC.
securityGroups
- A list of one or more security groups IDs in your VPC.public void setAssignPublicIp(Boolean assignPublicIp)
A boolean indicating whether to assign a public IP address.
assignPublicIp
- A boolean indicating whether to assign a public IP address.public Boolean getAssignPublicIp()
A boolean indicating whether to assign a public IP address.
public VPCConfig withAssignPublicIp(Boolean assignPublicIp)
A boolean indicating whether to assign a public IP address.
assignPublicIp
- A boolean indicating whether to assign a public IP address.public Boolean isAssignPublicIp()
A boolean indicating whether to assign a public IP address.
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.