Class CfnRule.AwsVpcConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.AwsVpcConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.AwsVpcConfigurationProperty>
- Enclosing interface:
CfnRule.AwsVpcConfigurationProperty
@Stability(Stable)
public static final class CfnRule.AwsVpcConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.AwsVpcConfigurationProperty>
A builder for
CfnRule.AwsVpcConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignPublicIp
(String assignPublicIp) Sets the value ofCfnRule.AwsVpcConfigurationProperty.getAssignPublicIp()
build()
Builds the configured instance.securityGroups
(List<String> securityGroups) Sets the value ofCfnRule.AwsVpcConfigurationProperty.getSecurityGroups()
Sets the value ofCfnRule.AwsVpcConfigurationProperty.getSubnets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnets
Sets the value ofCfnRule.AwsVpcConfigurationProperty.getSubnets()
- Parameters:
subnets
- Specifies the subnets associated with the task. This parameter is required. These subnets must all be in the same VPC. You can specify as many as 16 subnets.- Returns:
this
-
assignPublicIp
@Stability(Stable) public CfnRule.AwsVpcConfigurationProperty.Builder assignPublicIp(String assignPublicIp) Sets the value ofCfnRule.AwsVpcConfigurationProperty.getAssignPublicIp()
- Parameters:
assignPublicIp
- Specifies whether the task's elastic network interface receives a public IP address. You can specifyENABLED
only whenLaunchType
inEcsParameters
is set toFARGATE
.- Returns:
this
-
securityGroups
@Stability(Stable) public CfnRule.AwsVpcConfigurationProperty.Builder securityGroups(List<String> securityGroups) Sets the value ofCfnRule.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.AwsVpcConfigurationProperty>
- Returns:
- a new instance of
CfnRule.AwsVpcConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-