Class ComputeBackendServiceLogConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceLogConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceLogConfig>
- Enclosing interface:
- ComputeBackendServiceLogConfig
@Stability(Stable) public static final class ComputeBackendServiceLogConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceLogConfig>
A builder forComputeBackendServiceLogConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendServiceLogConfigbuild()Builds the configured instance.ComputeBackendServiceLogConfig.Builderenable(com.hashicorp.cdktf.IResolvable enable)Sets the value ofComputeBackendServiceLogConfig.getEnable()ComputeBackendServiceLogConfig.Builderenable(Boolean enable)Sets the value ofComputeBackendServiceLogConfig.getEnable()ComputeBackendServiceLogConfig.BuildersampleRate(Number sampleRate)Sets the value ofComputeBackendServiceLogConfig.getSampleRate()
-
-
-
Method Detail
-
enable
@Stability(Stable) public ComputeBackendServiceLogConfig.Builder enable(Boolean enable)
Sets the value ofComputeBackendServiceLogConfig.getEnable()- Parameters:
enable- Whether to enable logging for the load balancer traffic served by this backend service. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#enable ComputeBackendService#enable}- Returns:
this
-
enable
@Stability(Stable) public ComputeBackendServiceLogConfig.Builder enable(com.hashicorp.cdktf.IResolvable enable)
Sets the value ofComputeBackendServiceLogConfig.getEnable()- Parameters:
enable- Whether to enable logging for the load balancer traffic served by this backend service. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#enable ComputeBackendService#enable}- Returns:
this
-
sampleRate
@Stability(Stable) public ComputeBackendServiceLogConfig.Builder sampleRate(Number sampleRate)
Sets the value ofComputeBackendServiceLogConfig.getSampleRate()- Parameters:
sampleRate- This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#sample_rate ComputeBackendService#sample_rate}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceLogConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceLogConfig>- Returns:
- a new instance of
ComputeBackendServiceLogConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-