Class ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_backend_service.ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPoliciesCustomPolicy>
- Enclosing interface:
- ComputeBackendServiceLocalityLbPoliciesCustomPolicy
@Stability(Stable) public static final class ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPoliciesCustomPolicy>
A builder forComputeBackendServiceLocalityLbPoliciesCustomPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeBackendServiceLocalityLbPoliciesCustomPolicybuild()Builds the configured instance.ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builderdata(String data)Sets the value ofComputeBackendServiceLocalityLbPoliciesCustomPolicy.getData()ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Buildername(String name)Sets the value ofComputeBackendServiceLocalityLbPoliciesCustomPolicy.getName()
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builder name(String name)
Sets the value ofComputeBackendServiceLocalityLbPoliciesCustomPolicy.getName()- Parameters:
name- Identifies the custom policy. This parameter is required. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is not a valid configuration and will be rejected. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#name ComputeBackendService#name}- Returns:
this
-
data
@Stability(Stable) public ComputeBackendServiceLocalityLbPoliciesCustomPolicy.Builder data(String data)
Sets the value ofComputeBackendServiceLocalityLbPoliciesCustomPolicy.getData()- Parameters:
data- An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_backend_service#data ComputeBackendService#data}- Returns:
this
-
build
@Stability(Stable) public ComputeBackendServiceLocalityLbPoliciesCustomPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeBackendServiceLocalityLbPoliciesCustomPolicy>- Returns:
- a new instance of
ComputeBackendServiceLocalityLbPoliciesCustomPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-