Class ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices>
- Enclosing interface:
- ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices
@Stability(Stable) public static final class ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.BuilderbackendService(String backendService)ComputeRegionUrlMapDefaultRouteActionWeightedBackendServicesbuild()Builds the configured instance.ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.BuilderheaderAction(ComputeRegionUrlMapDefaultRouteActionWeightedBackendServicesHeaderAction headerAction)ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builderweight(Number weight)Sets the value ofComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.getWeight()
-
-
-
Method Detail
-
backendService
@Stability(Stable) public ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder backendService(String backendService)
- Parameters:
backendService- The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#backend_service ComputeRegionUrlMap#backend_service}- Returns:
this
-
headerAction
@Stability(Stable) public ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder headerAction(ComputeRegionUrlMapDefaultRouteActionWeightedBackendServicesHeaderAction headerAction)
- Parameters:
headerAction- header_action block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#header_action ComputeRegionUrlMap#header_action}- Returns:
this
-
weight
@Stability(Stable) public ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.Builder weight(Number weight)
Sets the value ofComputeRegionUrlMapDefaultRouteActionWeightedBackendServices.getWeight()- Parameters:
weight- Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#weight ComputeRegionUrlMap#weight}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices>- Returns:
- a new instance of
ComputeRegionUrlMapDefaultRouteActionWeightedBackendServices - Throws:
NullPointerException- if any required attribute was not provided
-
-