Class RuleConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.RuleConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RuleConfig>
- Enclosing interface:
RuleConfig
@Stability(Stable)
public static final class RuleConfig.Builder
extends Object
implements software.amazon.jsii.Builder<RuleConfig>
A builder for
RuleConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofRuleConfig.getCidrIp()Sets the value ofRuleConfig.getCidrIpv6()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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<RuleConfig>- Returns:
- a new instance of
RuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-