Class ComputeRouterNatLogConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_router_nat.ComputeRouterNatLogConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRouterNatLogConfig>
- Enclosing interface:
- ComputeRouterNatLogConfig
@Stability(Stable) public static final class ComputeRouterNatLogConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeRouterNatLogConfig>
A builder forComputeRouterNatLogConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRouterNatLogConfigbuild()Builds the configured instance.ComputeRouterNatLogConfig.Builderenable(com.hashicorp.cdktf.IResolvable enable)Sets the value ofComputeRouterNatLogConfig.getEnable()ComputeRouterNatLogConfig.Builderenable(Boolean enable)Sets the value ofComputeRouterNatLogConfig.getEnable()ComputeRouterNatLogConfig.Builderfilter(String filter)Sets the value ofComputeRouterNatLogConfig.getFilter()
-
-
-
Method Detail
-
enable
@Stability(Stable) public ComputeRouterNatLogConfig.Builder enable(Boolean enable)
Sets the value ofComputeRouterNatLogConfig.getEnable()- Parameters:
enable- Indicates whether or not to export logs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#enable ComputeRouterNat#enable}- Returns:
this
-
enable
@Stability(Stable) public ComputeRouterNatLogConfig.Builder enable(com.hashicorp.cdktf.IResolvable enable)
Sets the value ofComputeRouterNatLogConfig.getEnable()- Parameters:
enable- Indicates whether or not to export logs. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#enable ComputeRouterNat#enable}- Returns:
this
-
filter
@Stability(Stable) public ComputeRouterNatLogConfig.Builder filter(String filter)
Sets the value ofComputeRouterNatLogConfig.getFilter()- Parameters:
filter- Specifies the desired filtering of logs on this NAT. Possible values: ["ERRORS_ONLY", "TRANSLATIONS_ONLY", "ALL"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_router_nat#filter ComputeRouterNat#filter}- Returns:
this
-
build
@Stability(Stable) public ComputeRouterNatLogConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRouterNatLogConfig>- Returns:
- a new instance of
ComputeRouterNatLogConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-