@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 IDs of the security groups associated with the task or service.
|
List<String> |
getSubnets()
The IDs of the subnets associated with the task or service.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
|
void |
setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service.
|
void |
setSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service.
|
String |
toString()
Returns a string representation of this object.
|
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 IDs of the security groups associated with the task or service.
|
AwsVpcConfiguration |
withSecurityGroups(String... securityGroups)
The IDs of the security groups associated with the task or service.
|
AwsVpcConfiguration |
withSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service.
|
AwsVpcConfiguration |
withSubnets(String... subnets)
The IDs of the subnets associated with the task or service.
|
public List<String> getSubnets()
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified
per AwsVpcConfiguration
.
All specified subnets must be from the same VPC.
AwsVpcConfiguration
. All specified subnets must be from the same VPC.
public void setSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified
per AwsVpcConfiguration
.
All specified subnets must be from the same VPC.
subnets
- The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be
specified per AwsVpcConfiguration
. All specified subnets must be from the same VPC.
public AwsVpcConfiguration withSubnets(String... subnets)
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified
per AwsVpcConfiguration
.
All specified subnets must be from the same 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
- The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be
specified per AwsVpcConfiguration
. All specified subnets must be from the same VPC.
public AwsVpcConfiguration withSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified
per AwsVpcConfiguration
.
All specified subnets must be from the same VPC.
subnets
- The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be
specified per AwsVpcConfiguration
. All specified subnets must be from the same VPC.
public List<String> getSecurityGroups()
The IDs of the security groups associated with the task or service. If you don't specify a security group, the
default security group for the VPC is used. There's a limit of 5 security groups that can be specified per
AwsVpcConfiguration
.
All specified security groups must be from the same VPC.
AwsVpcConfiguration
. All specified security groups must be from the same VPC.
public void setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service. If you don't specify a security group, the
default security group for the VPC is used. There's a limit of 5 security groups that can be specified per
AwsVpcConfiguration
.
All specified security groups must be from the same VPC.
securityGroups
- The IDs of the security groups associated with the task or service. If you don't specify a security group,
the default security group for the VPC is used. There's a limit of 5 security groups that can be specified
per AwsVpcConfiguration
. All specified security groups must be from the same VPC.
public AwsVpcConfiguration withSecurityGroups(String... securityGroups)
The IDs of the security groups associated with the task or service. If you don't specify a security group, the
default security group for the VPC is used. There's a limit of 5 security groups that can be specified per
AwsVpcConfiguration
.
All specified security groups must be from the same 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
- The IDs of the security groups associated with the task or service. If you don't specify a security group,
the default security group for the VPC is used. There's a limit of 5 security groups that can be specified
per AwsVpcConfiguration
. All specified security groups must be from the same VPC.
public AwsVpcConfiguration withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service. If you don't specify a security group, the
default security group for the VPC is used. There's a limit of 5 security groups that can be specified per
AwsVpcConfiguration
.
All specified security groups must be from the same VPC.
securityGroups
- The IDs of the security groups associated with the task or service. If you don't specify a security group,
the default security group for the VPC is used. There's a limit of 5 security groups that can be specified
per AwsVpcConfiguration
. All specified security groups must be from the same VPC.
public void setAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
assignPublicIp
- Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.AssignPublicIp
public String getAssignPublicIp()
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
DISABLED
.AssignPublicIp
public AwsVpcConfiguration withAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
assignPublicIp
- Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.AssignPublicIp
public AwsVpcConfiguration withAssignPublicIp(AssignPublicIp assignPublicIp)
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
assignPublicIp
- Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.AssignPublicIp
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.