Class CfnRule.NetworkConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.NetworkConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.NetworkConfigurationProperty>
- Enclosing interface:
CfnRule.NetworkConfigurationProperty
@Stability(Stable)
public static final class CfnRule.NetworkConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.NetworkConfigurationProperty>
A builder for
CfnRule.NetworkConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionawsVpcConfiguration
(IResolvable awsVpcConfiguration) Sets the value ofCfnRule.NetworkConfigurationProperty.getAwsVpcConfiguration()
awsVpcConfiguration
(CfnRule.AwsVpcConfigurationProperty awsVpcConfiguration) Sets the value ofCfnRule.NetworkConfigurationProperty.getAwsVpcConfiguration()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsVpcConfiguration
@Stability(Stable) public CfnRule.NetworkConfigurationProperty.Builder awsVpcConfiguration(IResolvable awsVpcConfiguration) Sets the value ofCfnRule.NetworkConfigurationProperty.getAwsVpcConfiguration()
- Parameters:
awsVpcConfiguration
- Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use theawsvpc
network mode.- Returns:
this
-
awsVpcConfiguration
@Stability(Stable) public CfnRule.NetworkConfigurationProperty.Builder awsVpcConfiguration(CfnRule.AwsVpcConfigurationProperty awsVpcConfiguration) Sets the value ofCfnRule.NetworkConfigurationProperty.getAwsVpcConfiguration()
- Parameters:
awsVpcConfiguration
- Use this structure to specify the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use theawsvpc
network mode.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.NetworkConfigurationProperty>
- Returns:
- a new instance of
CfnRule.NetworkConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-