Class ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allowCredentials
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowCredentials(Boolean allowCredentials)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.getAllowCredentials()- Parameters:
allowCredentials- In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access- Control-Allow-Credentials header. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_credentials ComputeRegionUrlMap#allow_credentials}- Returns:
this
-
allowCredentials
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowCredentials(com.hashicorp.cdktf.IResolvable allowCredentials)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.getAllowCredentials()- Parameters:
allowCredentials- In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access- Control-Allow-Credentials header. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_credentials ComputeRegionUrlMap#allow_credentials}- Returns:
this
-
allowHeaders
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowHeaders(List<String> allowHeaders)
- Parameters:
allowHeaders- Specifies the content for the Access-Control-Allow-Headers header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_headers ComputeRegionUrlMap#allow_headers}- Returns:
this
-
allowMethods
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowMethods(List<String> allowMethods)
- Parameters:
allowMethods- Specifies the content for the Access-Control-Allow-Methods header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_methods ComputeRegionUrlMap#allow_methods}- Returns:
this
-
allowOriginRegexes
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowOriginRegexes(List<String> allowOriginRegexes)
Sets the value ofComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.getAllowOriginRegexes()- Parameters:
allowOriginRegexes- Specifies the regular expression patterns that match allowed origins. For regular expression grammar please see en.cppreference.com/w/cpp/regex/ecmascript An origin is allowed if it matches either allow_origins or allow_origin_regex. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_origin_regexes ComputeRegionUrlMap#allow_origin_regexes}- Returns:
this
-
allowOrigins
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder allowOrigins(List<String> allowOrigins)
- Parameters:
allowOrigins- Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either allow_origins or allow_origin_regex. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#allow_origins ComputeRegionUrlMap#allow_origins}- Returns:
this
-
disabled
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder disabled(Boolean disabled)
- Parameters:
disabled- If true, specifies the CORS policy is disabled. which indicates that the CORS policy is in effect. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#disabled ComputeRegionUrlMap#disabled}- Returns:
this
-
disabled
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
- Parameters:
disabled- If true, specifies the CORS policy is disabled. which indicates that the CORS policy is in effect. Defaults to false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#disabled ComputeRegionUrlMap#disabled}- Returns:
this
-
exposeHeaders
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder exposeHeaders(List<String> exposeHeaders)
- Parameters:
exposeHeaders- Specifies the content for the Access-Control-Expose-Headers header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#expose_headers ComputeRegionUrlMap#expose_headers}- Returns:
this
-
maxAge
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy.Builder maxAge(Number maxAge)
- Parameters:
maxAge- Specifies how long the results of a preflight request can be cached. This translates to the content for the Access-Control-Max-Age header. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#max_age ComputeRegionUrlMap#max_age}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcherRouteRulesRouteActionCorsPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-