Class ComputeRegionNetworkEndpointGroupCloudFunction.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_network_endpoint_group.ComputeRegionNetworkEndpointGroupCloudFunction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionNetworkEndpointGroupCloudFunction>
- Enclosing interface:
- ComputeRegionNetworkEndpointGroupCloudFunction
@Stability(Stable) public static final class ComputeRegionNetworkEndpointGroupCloudFunction.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionNetworkEndpointGroupCloudFunction>
A builder forComputeRegionNetworkEndpointGroupCloudFunction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionNetworkEndpointGroupCloudFunctionbuild()Builds the configured instance.ComputeRegionNetworkEndpointGroupCloudFunction.Builderfunction(String function)Sets the value ofComputeRegionNetworkEndpointGroupCloudFunction.getFunction()ComputeRegionNetworkEndpointGroupCloudFunction.BuilderurlMask(String urlMask)Sets the value ofComputeRegionNetworkEndpointGroupCloudFunction.getUrlMask()
-
-
-
Method Detail
-
function
@Stability(Stable) public ComputeRegionNetworkEndpointGroupCloudFunction.Builder function(String function)
Sets the value ofComputeRegionNetworkEndpointGroupCloudFunction.getFunction()- Parameters:
function- A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint_group#function ComputeRegionNetworkEndpointGroup#function}- Returns:
this
-
urlMask
@Stability(Stable) public ComputeRegionNetworkEndpointGroupCloudFunction.Builder urlMask(String urlMask)
Sets the value ofComputeRegionNetworkEndpointGroupCloudFunction.getUrlMask()- Parameters:
urlMask- A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs "mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_network_endpoint_group#url_mask ComputeRegionNetworkEndpointGroup#url_mask}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionNetworkEndpointGroupCloudFunction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionNetworkEndpointGroupCloudFunction>- Returns:
- a new instance of
ComputeRegionNetworkEndpointGroupCloudFunction - Throws:
NullPointerException- if any required attribute was not provided
-
-