Class ComputeSecurityPolicyRuleMatchConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRuleMatchConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatchConfig>
- Enclosing interface:
- ComputeSecurityPolicyRuleMatchConfig
@Stability(Stable) public static final class ComputeSecurityPolicyRuleMatchConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatchConfig>
A builder forComputeSecurityPolicyRuleMatchConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeSecurityPolicyRuleMatchConfigbuild()Builds the configured instance.ComputeSecurityPolicyRuleMatchConfig.BuildersrcIpRanges(List<String> srcIpRanges)Sets the value ofComputeSecurityPolicyRuleMatchConfig.getSrcIpRanges()
-
-
-
Method Detail
-
srcIpRanges
@Stability(Stable) public ComputeSecurityPolicyRuleMatchConfig.Builder srcIpRanges(List<String> srcIpRanges)
Sets the value ofComputeSecurityPolicyRuleMatchConfig.getSrcIpRanges()- Parameters:
srcIpRanges- Set of IP addresses or ranges (IPV4 or IPV6) in CIDR notation to match against inbound traffic. This parameter is required. There is a limit of 10 IP ranges per rule. A value of '*' matches all IPs (can be used to override the default behavior). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#src_ip_ranges ComputeSecurityPolicy#src_ip_ranges}- Returns:
this
-
build
@Stability(Stable) public ComputeSecurityPolicyRuleMatchConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatchConfig>- Returns:
- a new instance of
ComputeSecurityPolicyRuleMatchConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-