Class ComputeSecurityPolicyRuleMatch.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRuleMatch.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatch>
- Enclosing interface:
- ComputeSecurityPolicyRuleMatch
@Stability(Stable) public static final class ComputeSecurityPolicyRuleMatch.Builder extends Object implements software.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatch>
A builder forComputeSecurityPolicyRuleMatch
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeSecurityPolicyRuleMatchbuild()Builds the configured instance.ComputeSecurityPolicyRuleMatch.Builderconfig(ComputeSecurityPolicyRuleMatchConfig config)Sets the value ofComputeSecurityPolicyRuleMatch.getConfig()ComputeSecurityPolicyRuleMatch.Builderexpr(ComputeSecurityPolicyRuleMatchExpr expr)Sets the value ofComputeSecurityPolicyRuleMatch.getExpr()ComputeSecurityPolicyRuleMatch.BuilderexprOptions(ComputeSecurityPolicyRuleMatchExprOptions exprOptions)Sets the value ofComputeSecurityPolicyRuleMatch.getExprOptions()ComputeSecurityPolicyRuleMatch.BuilderversionedExpr(String versionedExpr)Sets the value ofComputeSecurityPolicyRuleMatch.getVersionedExpr()
-
-
-
Method Detail
-
config
@Stability(Stable) public ComputeSecurityPolicyRuleMatch.Builder config(ComputeSecurityPolicyRuleMatchConfig config)
Sets the value ofComputeSecurityPolicyRuleMatch.getConfig()- Parameters:
config- config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#config ComputeSecurityPolicy#config}- Returns:
this
-
expr
@Stability(Stable) public ComputeSecurityPolicyRuleMatch.Builder expr(ComputeSecurityPolicyRuleMatchExpr expr)
Sets the value ofComputeSecurityPolicyRuleMatch.getExpr()- Parameters:
expr- expr block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#expr ComputeSecurityPolicy#expr}- Returns:
this
-
exprOptions
@Stability(Stable) public ComputeSecurityPolicyRuleMatch.Builder exprOptions(ComputeSecurityPolicyRuleMatchExprOptions exprOptions)
Sets the value ofComputeSecurityPolicyRuleMatch.getExprOptions()- Parameters:
exprOptions- expr_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#expr_options ComputeSecurityPolicy#expr_options}- Returns:
this
-
versionedExpr
@Stability(Stable) public ComputeSecurityPolicyRuleMatch.Builder versionedExpr(String versionedExpr)
Sets the value ofComputeSecurityPolicyRuleMatch.getVersionedExpr()- Parameters:
versionedExpr- Predefined rule expression. If this field is specified, config must also be specified. Available options: SRC_IPS_V1: Must specify the corresponding src_ip_ranges field in config. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#versioned_expr ComputeSecurityPolicy#versioned_expr}- Returns:
this
-
build
@Stability(Stable) public ComputeSecurityPolicyRuleMatch build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSecurityPolicyRuleMatch>- Returns:
- a new instance of
ComputeSecurityPolicyRuleMatch - Throws:
NullPointerException- if any required attribute was not provided
-
-