@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcConfig extends Object implements Serializable, Cloneable, StructuredPojo
Describes VPC configuration information for fleets and image builders.
Constructor and Description |
---|
VpcConfig() |
Modifier and Type | Method and Description |
---|---|
VpcConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
The identifiers of the security groups for the fleet or image builder.
|
List<String> |
getSubnetIds()
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder
instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
|
void |
setSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder
instance.
|
String |
toString()
Returns a string representation of this object.
|
VpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
|
VpcConfig |
withSecurityGroupIds(String... securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
|
VpcConfig |
withSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder
instance.
|
VpcConfig |
withSubnetIds(String... subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder
instance.
|
public List<String> getSubnetIds()
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.
public void setSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.
subnetIds
- The identifiers of the subnets to which a network interface is attached from the fleet instance or image
builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.public VpcConfig withSubnetIds(String... subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.
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
- The identifiers of the subnets to which a network interface is attached from the fleet instance or image
builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.public VpcConfig withSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets to which a network interface is attached from the fleet instance or image builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.
subnetIds
- The identifiers of the subnets to which a network interface is attached from the fleet instance or image
builder instance. Fleet instances use one or more subnets. Image builder instances use one subnet.public List<String> getSecurityGroupIds()
The identifiers of the security groups for the fleet or image builder.
public void setSecurityGroupIds(Collection<String> securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
securityGroupIds
- The identifiers of the security groups for the fleet or image builder.public VpcConfig withSecurityGroupIds(String... securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
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
- The identifiers of the security groups for the fleet or image builder.public VpcConfig withSecurityGroupIds(Collection<String> securityGroupIds)
The identifiers of the security groups for the fleet or image builder.
securityGroupIds
- The identifiers of the security groups for the fleet or image builder.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.