Class ComputeBackendServiceLocalityLbPolicies.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceLocalityLbPolicies.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPolicies>
- Enclosing interface:
- ComputeBackendServiceLocalityLbPolicies
@Stability(Stable) public static final class ComputeBackendServiceLocalityLbPolicies.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPolicies>
A builder forComputeBackendServiceLocalityLbPolicies
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendServiceLocalityLbPoliciesbuild()Builds the configured instance.ComputeBackendServiceLocalityLbPolicies.BuildercustomPolicy(ComputeBackendServiceLocalityLbPoliciesCustomPolicy customPolicy)Sets the value ofComputeBackendServiceLocalityLbPolicies.getCustomPolicy()ComputeBackendServiceLocalityLbPolicies.Builderpolicy(ComputeBackendServiceLocalityLbPoliciesPolicy policy)Sets the value ofComputeBackendServiceLocalityLbPolicies.getPolicy()
-
-
-
Method Detail
-
customPolicy
@Stability(Stable) public ComputeBackendServiceLocalityLbPolicies.Builder customPolicy(ComputeBackendServiceLocalityLbPoliciesCustomPolicy customPolicy)
Sets the value ofComputeBackendServiceLocalityLbPolicies.getCustomPolicy()- Parameters:
customPolicy- custom_policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#custom_policy ComputeBackendService#custom_policy}- Returns:
this
-
policy
@Stability(Stable) public ComputeBackendServiceLocalityLbPolicies.Builder policy(ComputeBackendServiceLocalityLbPoliciesPolicy policy)
Sets the value ofComputeBackendServiceLocalityLbPolicies.getPolicy()- Parameters:
policy- policy block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#policy ComputeBackendService#policy}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceLocalityLbPolicies build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPolicies>- Returns:
- a new instance of
ComputeBackendServiceLocalityLbPolicies - Throws:
NullPointerException- if any required attribute was not provided
-
-