@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OptimizationVpcConfig extends Object implements Serializable, Cloneable, StructuredPojo
A VPC in Amazon VPC that's accessible to an optimized that you create with an optimization job. You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC.
| Constructor and Description |
|---|
OptimizationVpcConfig() |
| Modifier and Type | Method and Description |
|---|---|
OptimizationVpcConfig |
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 optimized 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 optimized model.
|
String |
toString()
Returns a string representation of this object.
|
OptimizationVpcConfig |
withSecurityGroupIds(Collection<String> securityGroupIds)
The VPC security group IDs, in the form
sg-xxxxxxxx. |
OptimizationVpcConfig |
withSecurityGroupIds(String... securityGroupIds)
The VPC security group IDs, in the form
sg-xxxxxxxx. |
OptimizationVpcConfig |
withSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your optimized model.
|
OptimizationVpcConfig |
withSubnets(String... subnets)
The ID of the subnets in the VPC to which you want to connect your optimized 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.
sg-xxxxxxxx. Specify the security groups for the VPC
that is specified in the 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 OptimizationVpcConfig 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 OptimizationVpcConfig 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 optimized model.
public void setSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your optimized model.
subnets - The ID of the subnets in the VPC to which you want to connect your optimized model.public OptimizationVpcConfig withSubnets(String... subnets)
The ID of the subnets in the VPC to which you want to connect your optimized 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 optimized model.public OptimizationVpcConfig withSubnets(Collection<String> subnets)
The ID of the subnets in the VPC to which you want to connect your optimized model.
subnets - The ID of the subnets in the VPC to which you want to connect your optimized model.public String toString()
toString in class ObjectObject.toString()public OptimizationVpcConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.