Class IngressRuleConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.IngressRuleConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressRuleConfig>
- Enclosing interface:
IngressRuleConfig
@Stability(Stable)
public static final class IngressRuleConfig.Builder
extends Object
implements software.amazon.jsii.Builder<IngressRuleConfig>
A builder for
IngressRuleConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofRuleConfig.getCidrIp()Sets the value ofRuleConfig.getCidrIpv6()sourcePrefixListId(String sourcePrefixListId) Sets the value ofIngressRuleConfig.getSourcePrefixListId()sourceSecurityGroupId(String sourceSecurityGroupId) Sets the value ofIngressRuleConfig.getSourceSecurityGroupId()sourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId) Sets the value ofIngressRuleConfig.getSourceSecurityGroupOwnerId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourcePrefixListId
Sets the value ofIngressRuleConfig.getSourcePrefixListId()- Parameters:
sourcePrefixListId- The ID of a source prefix list.- Returns:
this
-
sourceSecurityGroupId
@Stability(Stable) public IngressRuleConfig.Builder sourceSecurityGroupId(String sourceSecurityGroupId) Sets the value ofIngressRuleConfig.getSourceSecurityGroupId()- Parameters:
sourceSecurityGroupId- The ID of a source security group.- Returns:
this
-
sourceSecurityGroupOwnerId
@Stability(Stable) public IngressRuleConfig.Builder sourceSecurityGroupOwnerId(String sourceSecurityGroupOwnerId) Sets the value ofIngressRuleConfig.getSourceSecurityGroupOwnerId()- Parameters:
sourceSecurityGroupOwnerId- The AWS account ID of the owner of a source 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<IngressRuleConfig>- Returns:
- a new instance of
IngressRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-