Class ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_url_map.ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy>
- Enclosing interface:
- ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy
@Stability(Stable) public static final class ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder extends Object implements software.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy>
A builder forComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
disabled
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder disabled(Boolean disabled)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getDisabled()- Parameters:
disabled- If true, specifies the CORS policy is disabled. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#disabled ComputeUrlMap#disabled}- Returns:
this
-
disabled
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder disabled(com.hashicorp.cdktf.IResolvable disabled)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getDisabled()- Parameters:
disabled- If true, specifies the CORS policy is disabled. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_url_map#disabled ComputeUrlMap#disabled}- Returns:
this
-
allowCredentials
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowCredentials(Boolean allowCredentials)
- 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_url_map#allow_credentials ComputeUrlMap#allow_credentials}- Returns:
this
-
allowCredentials
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowCredentials(com.hashicorp.cdktf.IResolvable allowCredentials)
- 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_url_map#allow_credentials ComputeUrlMap#allow_credentials}- Returns:
this
-
allowHeaders
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowHeaders(List<String> allowHeaders)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getAllowHeaders()- 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_url_map#allow_headers ComputeUrlMap#allow_headers}- Returns:
this
-
allowMethods
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowMethods(List<String> allowMethods)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getAllowMethods()- 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_url_map#allow_methods ComputeUrlMap#allow_methods}- Returns:
this
-
allowOriginRegexes
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowOriginRegexes(List<String> allowOriginRegexes)
- 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_url_map#allow_origin_regexes ComputeUrlMap#allow_origin_regexes}- Returns:
this
-
allowOrigins
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder allowOrigins(List<String> allowOrigins)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getAllowOrigins()- 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_url_map#allow_origins ComputeUrlMap#allow_origins}- Returns:
this
-
exposeHeaders
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder exposeHeaders(List<String> exposeHeaders)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getExposeHeaders()- 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_url_map#expose_headers ComputeUrlMap#expose_headers}- Returns:
this
-
maxAge
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.Builder maxAge(Number maxAge)
Sets the value ofComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy.getMaxAge()- 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_url_map#max_age ComputeUrlMap#max_age}- Returns:
this
-
build
@Stability(Stable) public ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy>- Returns:
- a new instance of
ComputeUrlMapPathMatcherPathRuleRouteActionCorsPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-