Class ComputeRegionBackendServiceConsistentHash.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_backend_service.ComputeRegionBackendServiceConsistentHash.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionBackendServiceConsistentHash>
- Enclosing interface:
- ComputeRegionBackendServiceConsistentHash
@Stability(Stable) public static final class ComputeRegionBackendServiceConsistentHash.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionBackendServiceConsistentHash>
A builder forComputeRegionBackendServiceConsistentHash
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionBackendServiceConsistentHashbuild()Builds the configured instance.ComputeRegionBackendServiceConsistentHash.BuilderhttpCookie(ComputeRegionBackendServiceConsistentHashHttpCookie httpCookie)Sets the value ofComputeRegionBackendServiceConsistentHash.getHttpCookie()ComputeRegionBackendServiceConsistentHash.BuilderhttpHeaderName(String httpHeaderName)Sets the value ofComputeRegionBackendServiceConsistentHash.getHttpHeaderName()ComputeRegionBackendServiceConsistentHash.BuilderminimumRingSize(Number minimumRingSize)Sets the value ofComputeRegionBackendServiceConsistentHash.getMinimumRingSize()
-
-
-
Method Detail
-
httpCookie
@Stability(Stable) public ComputeRegionBackendServiceConsistentHash.Builder httpCookie(ComputeRegionBackendServiceConsistentHashHttpCookie httpCookie)
Sets the value ofComputeRegionBackendServiceConsistentHash.getHttpCookie()- Parameters:
httpCookie- http_cookie block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_backend_service#http_cookie ComputeRegionBackendService#http_cookie}- Returns:
this
-
httpHeaderName
@Stability(Stable) public ComputeRegionBackendServiceConsistentHash.Builder httpHeaderName(String httpHeaderName)
Sets the value ofComputeRegionBackendServiceConsistentHash.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_region_backend_service#http_header_name ComputeRegionBackendService#http_header_name}- Returns:
this
-
minimumRingSize
@Stability(Stable) public ComputeRegionBackendServiceConsistentHash.Builder minimumRingSize(Number minimumRingSize)
Sets the value ofComputeRegionBackendServiceConsistentHash.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_region_backend_service#minimum_ring_size ComputeRegionBackendService#minimum_ring_size}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionBackendServiceConsistentHash build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionBackendServiceConsistentHash>- Returns:
- a new instance of
ComputeRegionBackendServiceConsistentHash - Throws:
NullPointerException- if any required attribute was not provided
-
-