@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 Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud.
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.
|
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. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.
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. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.
subnets
- The ID of the subnets in the VPC to which you want to connect your training job or model. For information
about the availability of specific instance types, see Supported Instance Types and
Availability Zones.public VpcConfig withSubnets(String... subnets)
The ID of the subnets in the VPC to which you want to connect your training job or model. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.
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. For information
about the availability of specific instance types, see Supported Instance Types and
Availability Zones.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. For information about the availability of specific instance types, see Supported Instance Types and Availability Zones.
subnets
- The ID of the subnets in the VPC to which you want to connect your training job or model. For information
about the availability of specific instance types, see Supported Instance Types and
Availability Zones.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.