Class ComputeSecurityPolicyRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSecurityPolicyRule>
- Enclosing interface:
- ComputeSecurityPolicyRule
@Stability(Stable) public static final class ComputeSecurityPolicyRule.Builder extends Object implements software.amazon.jsii.Builder<ComputeSecurityPolicyRule>
A builder forComputeSecurityPolicyRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
action
@Stability(Stable) public ComputeSecurityPolicyRule.Builder action(String action)
Sets the value ofComputeSecurityPolicyRule.getAction()- Parameters:
action- Action to take when match matches the request. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#action ComputeSecurityPolicy#action}- Returns:
this
-
match
@Stability(Stable) public ComputeSecurityPolicyRule.Builder match(ComputeSecurityPolicyRuleMatch match)
Sets the value ofComputeSecurityPolicyRule.getMatch()- Parameters:
match- match block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#match ComputeSecurityPolicy#match}- Returns:
this
-
priority
@Stability(Stable) public ComputeSecurityPolicyRule.Builder priority(Number priority)
Sets the value ofComputeSecurityPolicyRule.getPriority()- Parameters:
priority- An unique positive integer indicating the priority of evaluation for a rule. This parameter is required. Rules are evaluated from highest priority (lowest numerically) to lowest priority (highest numerically) in order. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#priority ComputeSecurityPolicy#priority}- Returns:
this
-
description
@Stability(Stable) public ComputeSecurityPolicyRule.Builder description(String description)
Sets the value ofComputeSecurityPolicyRule.getDescription()- Parameters:
description- An optional description of this rule. Max size is 64. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#description ComputeSecurityPolicy#description}- Returns:
this
-
headerAction
@Stability(Stable) public ComputeSecurityPolicyRule.Builder headerAction(ComputeSecurityPolicyRuleHeaderAction headerAction)
Sets the value ofComputeSecurityPolicyRule.getHeaderAction()- Parameters:
headerAction- header_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#header_action ComputeSecurityPolicy#header_action}- Returns:
this
-
preview
@Stability(Stable) public ComputeSecurityPolicyRule.Builder preview(Boolean preview)
Sets the value ofComputeSecurityPolicyRule.getPreview()- Parameters:
preview- When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#preview ComputeSecurityPolicy#preview}- Returns:
this
-
preview
@Stability(Stable) public ComputeSecurityPolicyRule.Builder preview(com.hashicorp.cdktf.IResolvable preview)
Sets the value ofComputeSecurityPolicyRule.getPreview()- Parameters:
preview- When set to true, the action specified above is not enforced. Stackdriver logs for requests that trigger a preview action are annotated as such. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#preview ComputeSecurityPolicy#preview}- Returns:
this
-
rateLimitOptions
@Stability(Stable) public ComputeSecurityPolicyRule.Builder rateLimitOptions(ComputeSecurityPolicyRuleRateLimitOptions rateLimitOptions)
Sets the value ofComputeSecurityPolicyRule.getRateLimitOptions()- Parameters:
rateLimitOptions- rate_limit_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#rate_limit_options ComputeSecurityPolicy#rate_limit_options}- Returns:
this
-
redirectOptions
@Stability(Stable) public ComputeSecurityPolicyRule.Builder redirectOptions(ComputeSecurityPolicyRuleRedirectOptions redirectOptions)
Sets the value ofComputeSecurityPolicyRule.getRedirectOptions()- Parameters:
redirectOptions- redirect_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#redirect_options ComputeSecurityPolicy#redirect_options}- Returns:
this
-
build
@Stability(Stable) public ComputeSecurityPolicyRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSecurityPolicyRule>- Returns:
- a new instance of
ComputeSecurityPolicyRule - Throws:
NullPointerException- if any required attribute was not provided
-
-