Class ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
headerName
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder headerName(String headerName)
- Parameters:
headerName- The name of the HTTP header to match. This parameter is required. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#header_name ComputeRegionUrlMap#header_name}- Returns:
this
-
exactMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder exactMatch(String exactMatch)
- Parameters:
exactMatch- The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#exact_match ComputeRegionUrlMap#exact_match}- Returns:
this
-
invertMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder invertMatch(Boolean invertMatch)
- Parameters:
invertMatch- If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#invert_match ComputeRegionUrlMap#invert_match}- Returns:
this
-
invertMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder invertMatch(com.hashicorp.cdktf.IResolvable invertMatch)
- Parameters:
invertMatch- If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#invert_match ComputeRegionUrlMap#invert_match}- Returns:
this
-
prefixMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder prefixMatch(String prefixMatch)
- Parameters:
prefixMatch- The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#prefix_match ComputeRegionUrlMap#prefix_match}- Returns:
this
-
presentMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder presentMatch(Boolean presentMatch)
- Parameters:
presentMatch- A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#present_match ComputeRegionUrlMap#present_match}- Returns:
this
-
presentMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder presentMatch(com.hashicorp.cdktf.IResolvable presentMatch)
- Parameters:
presentMatch- A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value or not. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#present_match ComputeRegionUrlMap#present_match}- Returns:
this
-
rangeMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder rangeMatch(ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatchesRangeMatch rangeMatch)
- Parameters:
rangeMatch- range_match block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#range_match ComputeRegionUrlMap#range_match}- Returns:
this
-
regexMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder regexMatch(String regexMatch)
- Parameters:
regexMatch- The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#regex_match ComputeRegionUrlMap#regex_match}- Returns:
this
-
suffixMatch
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches.Builder suffixMatch(String suffixMatch)
- Parameters:
suffixMatch- The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#suffix_match ComputeRegionUrlMap#suffix_match}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcherRouteRulesMatchRulesHeaderMatches - Throws:
NullPointerException- if any required attribute was not provided
-
-