@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provide the security group and subnet IDs for the workers and scheduler.
Constructor and Description |
---|
NetworkConfiguration() |
Modifier and Type | Method and Description |
---|---|
NetworkConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
|
List<String> |
getSubnetIds()
Provide a JSON list of 2 subnet IDs by name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
|
void |
setSubnetIds(Collection<String> subnetIds)
Provide a JSON list of 2 subnet IDs by name.
|
String |
toString()
Returns a string representation of this object.
|
NetworkConfiguration |
withSecurityGroupIds(Collection<String> securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
|
NetworkConfiguration |
withSecurityGroupIds(String... securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
|
NetworkConfiguration |
withSubnetIds(Collection<String> subnetIds)
Provide a JSON list of 2 subnet IDs by name.
|
NetworkConfiguration |
withSubnetIds(String... subnetIds)
Provide a JSON list of 2 subnet IDs by name.
|
public List<String> getSecurityGroupIds()
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
securityGroupIds
- A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.public NetworkConfiguration withSecurityGroupIds(String... securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
NOTE: This method appends the values to the existing list (if any). Use
setSecurityGroupIds(java.util.Collection)
or withSecurityGroupIds(java.util.Collection)
if you
want to override the existing values.
securityGroupIds
- A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.public NetworkConfiguration withSecurityGroupIds(Collection<String> securityGroupIds)
A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.
securityGroupIds
- A JSON list of 1 or more security groups IDs by name, in the same VPC as the subnets.public List<String> getSubnetIds()
Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two different availability zones.
public void setSubnetIds(Collection<String> subnetIds)
Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two different availability zones.
subnetIds
- Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two
different availability zones.public NetworkConfiguration withSubnetIds(String... subnetIds)
Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two different availability zones.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
or withSubnetIds(java.util.Collection)
if you want to
override the existing values.
subnetIds
- Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two
different availability zones.public NetworkConfiguration withSubnetIds(Collection<String> subnetIds)
Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two different availability zones.
subnetIds
- Provide a JSON list of 2 subnet IDs by name. These must be private subnets, in the same VPC, in two
different availability zones.public String toString()
toString
in class Object
Object.toString()
public NetworkConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.