Class CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.scheduler.CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedulePropsMixin.AwsVpcConfigurationProperty>
- Enclosing interface:
CfnSchedulePropsMixin.AwsVpcConfigurationProperty
@Stability(Stable)
public static final class CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedulePropsMixin.AwsVpcConfigurationProperty>
A builder for
CfnSchedulePropsMixin.AwsVpcConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp(String assignPublicIp) Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getAssignPublicIp()build()Builds the configured instance.securityGroups(List<String> securityGroups) Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getSecurityGroups()Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignPublicIp
@Stability(Stable) public CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp) Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getAssignPublicIp()- Parameters:
assignPublicIp- Specifies whether the task's elastic network interface receives a public IP address. You can specifyENABLEDonly whenLaunchTypeinEcsParametersis set toFARGATE.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getSecurityGroups()- Parameters:
securityGroups- Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.- Returns:
this
-
subnets
@Stability(Stable) public CfnSchedulePropsMixin.AwsVpcConfigurationProperty.Builder subnets(List<String> subnets) Sets the value ofCfnSchedulePropsMixin.AwsVpcConfigurationProperty.getSubnets()- Parameters:
subnets- Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSchedulePropsMixin.AwsVpcConfigurationProperty>- Returns:
- a new instance of
CfnSchedulePropsMixin.AwsVpcConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-