Class CfnTaskSet.NetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskSet.NetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskSet.NetworkConfigurationProperty>
- Enclosing interface:
- CfnTaskSet.NetworkConfigurationProperty
@Stability(Stable)
public static final class CfnTaskSet.NetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskSet.NetworkConfigurationProperty>
A builder for
CfnTaskSet.NetworkConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsVpcConfiguration
(IResolvable awsVpcConfiguration) Sets the value ofCfnTaskSet.NetworkConfigurationProperty.getAwsVpcConfiguration()
awsVpcConfiguration
(CfnTaskSet.AwsVpcConfigurationProperty awsVpcConfiguration) Sets the value ofCfnTaskSet.NetworkConfigurationProperty.getAwsVpcConfiguration()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsVpcConfiguration
@Stability(Stable) public CfnTaskSet.NetworkConfigurationProperty.Builder awsVpcConfiguration(IResolvable awsVpcConfiguration) Sets the value ofCfnTaskSet.NetworkConfigurationProperty.getAwsVpcConfiguration()
- Parameters:
awsVpcConfiguration
- The VPC subnets and security groups that are associated with a task.All specified subnets and security groups must be from the same VPC.
- Returns:
this
-
awsVpcConfiguration
@Stability(Stable) public CfnTaskSet.NetworkConfigurationProperty.Builder awsVpcConfiguration(CfnTaskSet.AwsVpcConfigurationProperty awsVpcConfiguration) Sets the value ofCfnTaskSet.NetworkConfigurationProperty.getAwsVpcConfiguration()
- Parameters:
awsVpcConfiguration
- The VPC subnets and security groups that are associated with a task.All specified subnets and security groups must be from the same VPC.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskSet.NetworkConfigurationProperty>
- Returns:
- a new instance of
CfnTaskSet.NetworkConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-