@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcConfig extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a VPC that your training jobs and hosted models have access to. Control access to and from your training and model containers by configuring the VPC. For more information, see host-vpc and train-vpc.
Constructor and Description |
---|
VpcConfig() |
Modifier and Type | Method and Description |
---|---|
VpcConfig |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSecurityGroupIds()
The VPC security group IDs, in the form sg-xxxxxxxx.
|
List<String> |
getSubnets()
The ID of the subnets in the VPC to which you want to connect your training job or model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx.
|
void |
setSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
VpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx.
|
VpcConfig |
withSecurityGroupIds(String... securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx.
|
VpcConfig |
withSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
|
VpcConfig |
withSubnets(String... subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
|
public List<String> getSecurityGroupIds()
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in
the Subnets
field.
Subnets
field.public void setSecurityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in
the Subnets
field.
securityGroupIds
- The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is
specified in the Subnets
field.public VpcConfig withSecurityGroupIds(String... securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in
the Subnets
field.
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 VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is
specified in the Subnets
field.public VpcConfig withSecurityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in
the Subnets
field.
securityGroupIds
- The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is
specified in the Subnets
field.public List<String> getSubnets()
The ID of the subnets in the VPC to which you want to connect your training job or model.
public void setSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
subnets
- The ID of the subnets in the VPC to which you want to connect your training job or model.public VpcConfig withSubnets(String... subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
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 ID of the subnets in the VPC to which you want to connect your training job or model.public VpcConfig withSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model.
subnets
- The ID of the subnets in the VPC to which you want to connect your training job or model.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.