Class ComputeRegionBackendServiceCircuitBreakers.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_backend_service.ComputeRegionBackendServiceCircuitBreakers.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionBackendServiceCircuitBreakers>
- Enclosing interface:
- ComputeRegionBackendServiceCircuitBreakers
@Stability(Stable) public static final class ComputeRegionBackendServiceCircuitBreakers.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionBackendServiceCircuitBreakers>
A builder forComputeRegionBackendServiceCircuitBreakers
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
maxConnections
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers.Builder maxConnections(Number maxConnections)
Sets the value ofComputeRegionBackendServiceCircuitBreakers.getMaxConnections()- Parameters:
maxConnections- The maximum number of connections to the backend cluster. Defaults to 1024. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#max_connections ComputeRegionBackendService#max_connections}- Returns:
this
-
maxPendingRequests
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers.Builder maxPendingRequests(Number maxPendingRequests)
Sets the value ofComputeRegionBackendServiceCircuitBreakers.getMaxPendingRequests()- Parameters:
maxPendingRequests- The maximum number of pending requests to the backend cluster. Defaults to 1024. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#max_pending_requests ComputeRegionBackendService#max_pending_requests}- Returns:
this
-
maxRequests
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers.Builder maxRequests(Number maxRequests)
Sets the value ofComputeRegionBackendServiceCircuitBreakers.getMaxRequests()- Parameters:
maxRequests- The maximum number of parallel requests to the backend cluster. Defaults to 1024. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#max_requests ComputeRegionBackendService#max_requests}- Returns:
this
-
maxRequestsPerConnection
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers.Builder maxRequestsPerConnection(Number maxRequestsPerConnection)
Sets the value ofComputeRegionBackendServiceCircuitBreakers.getMaxRequestsPerConnection()- Parameters:
maxRequestsPerConnection- Maximum requests for a single backend connection. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#max_requests_per_connection ComputeRegionBackendService#max_requests_per_connection}- Returns:
this
-
maxRetries
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers.Builder maxRetries(Number maxRetries)
Sets the value ofComputeRegionBackendServiceCircuitBreakers.getMaxRetries()- Parameters:
maxRetries- The maximum number of parallel retries to the backend cluster. Defaults to 3. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#max_retries ComputeRegionBackendService#max_retries}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionBackendServiceCircuitBreakers build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionBackendServiceCircuitBreakers>- Returns:
- a new instance of
ComputeRegionBackendServiceCircuitBreakers - Throws:
NullPointerException- if any required attribute was not provided
-
-