Class ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.BuilderbackendService(String backendService)ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServicesbuild()Builds the configured instance.ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.BuilderheaderAction(ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServicesHeaderAction headerAction)ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builderweight(Number weight)
-
-
-
Method Detail
-
backendService
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder backendService(String backendService)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.getBackendService()- Parameters:
backendService- The default RegionBackendService resource. This parameter is required. Before forwarding the request to backendService, the loadbalancer 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
-
weight
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder weight(Number weight)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.getWeight()- Parameters:
weight- Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . This parameter is required. The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService's session affinity policy. The value must be between 0 and 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
-
headerAction
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.Builder headerAction(ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServicesHeaderAction headerAction)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices.getHeaderAction()- 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
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcherRouteRulesRouteActionWeightedBackendServices - Throws:
NullPointerException- if any required attribute was not provided
-
-