Class EgressRuleConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.EgressRuleConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EgressRuleConfig>
- Enclosing interface:
EgressRuleConfig
@Stability(Stable)
public static final class EgressRuleConfig.Builder
extends Object
implements software.amazon.jsii.Builder<EgressRuleConfig>
A builder for
EgressRuleConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofRuleConfig.getCidrIp()Sets the value ofRuleConfig.getCidrIpv6()destinationPrefixListId(String destinationPrefixListId) Sets the value ofEgressRuleConfig.getDestinationPrefixListId()destinationSecurityGroupId(String destinationSecurityGroupId) Sets the value ofEgressRuleConfig.getDestinationSecurityGroupId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationPrefixListId
@Stability(Stable) public EgressRuleConfig.Builder destinationPrefixListId(String destinationPrefixListId) Sets the value ofEgressRuleConfig.getDestinationPrefixListId()- Parameters:
destinationPrefixListId- The ID of a destination prefix list.- Returns:
this
-
destinationSecurityGroupId
@Stability(Stable) public EgressRuleConfig.Builder destinationSecurityGroupId(String destinationSecurityGroupId) Sets the value ofEgressRuleConfig.getDestinationSecurityGroupId()- Parameters:
destinationSecurityGroupId- The ID of a destination security group.- Returns:
this
-
cidrIp
Sets the value ofRuleConfig.getCidrIp()- Parameters:
cidrIp- The IPv4 address range, in CIDR format.- Returns:
this
-
cidrIpv6
Sets the value ofRuleConfig.getCidrIpv6()- Parameters:
cidrIpv6- The IPv6 address range, in CIDR format.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EgressRuleConfig>- Returns:
- a new instance of
EgressRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-