Class CfnService.NetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.NetworkConfigurationProperty>
- Enclosing interface:
CfnService.NetworkConfigurationProperty
@Stability(Stable)
public static final class CfnService.NetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.NetworkConfigurationProperty>
A builder for
CfnService.NetworkConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsvpcConfiguration(IResolvable awsvpcConfiguration) Sets the value ofCfnService.NetworkConfigurationProperty.getAwsvpcConfiguration()awsvpcConfiguration(CfnService.AwsVpcConfigurationProperty awsvpcConfiguration) Sets the value ofCfnService.NetworkConfigurationProperty.getAwsvpcConfiguration()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsvpcConfiguration
@Stability(Stable) public CfnService.NetworkConfigurationProperty.Builder awsvpcConfiguration(IResolvable awsvpcConfiguration) Sets the value ofCfnService.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 CfnService.NetworkConfigurationProperty.Builder awsvpcConfiguration(CfnService.AwsVpcConfigurationProperty awsvpcConfiguration) Sets the value ofCfnService.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.NetworkConfigurationProperty>- Returns:
- a new instance of
CfnService.NetworkConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-