@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails extends Object implements Serializable, Cloneable, StructuredPojo
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Constructor and Description |
---|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
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.
|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
withAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address.
|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service.
|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
withSecurityGroups(String... securityGroups)
The IDs of the security groups associated with the task or service.
|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
withSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service.
|
AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails |
withSubnets(String... subnets)
The IDs of the subnets associated with the task or service.
|
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails()
public void setAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
Valid values: ENABLED
| DISABLED
assignPublicIp
- Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
Valid values: ENABLED
| DISABLED
public String getAssignPublicIp()
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
Valid values: ENABLED
| DISABLED
DISABLED
.
Valid values: ENABLED
| DISABLED
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails withAssignPublicIp(String assignPublicIp)
Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
Valid values: ENABLED
| DISABLED
assignPublicIp
- Whether the task's elastic network interface receives a public IP address. The default value is
DISABLED
.
Valid values: ENABLED
| DISABLED
public List<String> getSecurityGroups()
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
You can provide up to five security groups.
public void setSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
securityGroups
- The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails withSecurityGroups(String... securityGroups)
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
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.
You can provide up to five security groups.
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails withSecurityGroups(Collection<String> securityGroups)
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
securityGroups
- The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
public List<String> getSubnets()
The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
You can provide up to 16 subnets.
public void setSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
subnets
- The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails withSubnets(String... subnets)
The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
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.
You can provide up to 16 subnets.
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails withSubnets(Collection<String> subnets)
The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
subnets
- The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
public String toString()
toString
in class Object
Object.toString()
public AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.