Class CfnListenerRule.SourceIpConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.CfnListenerRule.SourceIpConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnListenerRule.SourceIpConfigProperty>
- Enclosing interface:
CfnListenerRule.SourceIpConfigProperty
@Stability(Stable)
public static final class CfnListenerRule.SourceIpConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnListenerRule.SourceIpConfigProperty>
A builder for
CfnListenerRule.SourceIpConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnListenerRule.SourceIpConfigProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
values
@Stability(Stable) public CfnListenerRule.SourceIpConfigProperty.Builder values(List<String> values) Sets the value ofCfnListenerRule.SourceIpConfigProperty.getValues()
- Parameters:
values
- The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnListenerRule.SourceIpConfigProperty>
- Returns:
- a new instance of
CfnListenerRule.SourceIpConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-