Class ComputeBackendServiceConsistentHash.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceConsistentHash.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceConsistentHash>
- Enclosing interface:
- ComputeBackendServiceConsistentHash
@Stability(Stable) public static final class ComputeBackendServiceConsistentHash.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceConsistentHash>
A builder forComputeBackendServiceConsistentHash
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendServiceConsistentHashbuild()Builds the configured instance.ComputeBackendServiceConsistentHash.BuilderhttpCookie(ComputeBackendServiceConsistentHashHttpCookie httpCookie)Sets the value ofComputeBackendServiceConsistentHash.getHttpCookie()ComputeBackendServiceConsistentHash.BuilderhttpHeaderName(String httpHeaderName)Sets the value ofComputeBackendServiceConsistentHash.getHttpHeaderName()ComputeBackendServiceConsistentHash.BuilderminimumRingSize(Number minimumRingSize)Sets the value ofComputeBackendServiceConsistentHash.getMinimumRingSize()
-
-
-
Method Detail
-
httpCookie
@Stability(Stable) public ComputeBackendServiceConsistentHash.Builder httpCookie(ComputeBackendServiceConsistentHashHttpCookie httpCookie)
Sets the value ofComputeBackendServiceConsistentHash.getHttpCookie()- Parameters:
httpCookie- http_cookie block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#http_cookie ComputeBackendService#http_cookie}- Returns:
this
-
httpHeaderName
@Stability(Stable) public ComputeBackendServiceConsistentHash.Builder httpHeaderName(String httpHeaderName)
Sets the value ofComputeBackendServiceConsistentHash.getHttpHeaderName()- Parameters:
httpHeaderName- The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#http_header_name ComputeBackendService#http_header_name}- Returns:
this
-
minimumRingSize
@Stability(Stable) public ComputeBackendServiceConsistentHash.Builder minimumRingSize(Number minimumRingSize)
Sets the value ofComputeBackendServiceConsistentHash.getMinimumRingSize()- Parameters:
minimumRingSize- The minimum number of virtual nodes to use for the hash ring. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node. Defaults to 1024. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#minimum_ring_size ComputeBackendService#minimum_ring_size}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceConsistentHash build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceConsistentHash>- Returns:
- a new instance of
ComputeBackendServiceConsistentHash - Throws:
NullPointerException- if any required attribute was not provided
-
-