@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsVpcConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object representing the networking details for a task or service.
| Constructor and Description |
|---|
AwsVpcConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
AwsVpcConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getAssignPublicIp()
Whether the task's elastic network interface receives a public IP address.
|
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) |
void |
setAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
|
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 |
withAssignPublicIp(AssignPublicIp assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
|
AwsVpcConfiguration |
withAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
|
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. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.
public void setSubnets(Collection<String> subnets)
The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.
subnets - The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per
AwsVpcConfiguration.public AwsVpcConfiguration withSubnets(String... subnets)
The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.
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. There is a limit of 10 subnets able to be specified per
AwsVpcConfiguration.public AwsVpcConfiguration withSubnets(Collection<String> subnets)
The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.
subnets - The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per
AwsVpcConfiguration.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. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.
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. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.
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. There is a limit of 5 security groups able to be specified per
AwsVpcConfiguration.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. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.
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. There is a limit of 5 security groups able to be specified per
AwsVpcConfiguration.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. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.
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. There is a limit of 5 security groups able to be specified per
AwsVpcConfiguration.public void setAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
assignPublicIp - Whether the task's elastic network interface receives a public IP address.AssignPublicIppublic String getAssignPublicIp()
Whether the task's elastic network interface receives a public IP address.
AssignPublicIppublic AwsVpcConfiguration withAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
assignPublicIp - Whether the task's elastic network interface receives a public IP address.AssignPublicIppublic AwsVpcConfiguration withAssignPublicIp(AssignPublicIp assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
assignPublicIp - Whether the task's elastic network interface receives a public IP address.AssignPublicIppublic String toString()
toString in class ObjectObject.toString()public AwsVpcConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.