Class ComputeSecurityPolicyRuleRedirectOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_security_policy.ComputeSecurityPolicyRuleRedirectOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeSecurityPolicyRuleRedirectOptions>
- Enclosing interface:
- ComputeSecurityPolicyRuleRedirectOptions
@Stability(Stable) public static final class ComputeSecurityPolicyRuleRedirectOptions.Builder extends Object implements software.amazon.jsii.Builder<ComputeSecurityPolicyRuleRedirectOptions>
A builder forComputeSecurityPolicyRuleRedirectOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeSecurityPolicyRuleRedirectOptionsbuild()Builds the configured instance.ComputeSecurityPolicyRuleRedirectOptions.Buildertarget(String target)Sets the value ofComputeSecurityPolicyRuleRedirectOptions.getTarget()ComputeSecurityPolicyRuleRedirectOptions.Buildertype(String type)Sets the value ofComputeSecurityPolicyRuleRedirectOptions.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public ComputeSecurityPolicyRuleRedirectOptions.Builder type(String type)
Sets the value ofComputeSecurityPolicyRuleRedirectOptions.getType()- Parameters:
type- Type of the redirect action. This parameter is required. Available options: EXTERNAL_302: Must specify the corresponding target field in config. GOOGLE_RECAPTCHA: Cannot specify target field in config. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#type ComputeSecurityPolicy#type}- Returns:
this
-
target
@Stability(Stable) public ComputeSecurityPolicyRuleRedirectOptions.Builder target(String target)
Sets the value ofComputeSecurityPolicyRuleRedirectOptions.getTarget()- Parameters:
target- Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_security_policy#target ComputeSecurityPolicy#target}- Returns:
this
-
build
@Stability(Stable) public ComputeSecurityPolicyRuleRedirectOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeSecurityPolicyRuleRedirectOptions>- Returns:
- a new instance of
ComputeSecurityPolicyRuleRedirectOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-