Class ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_url_map.ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort>
- Enclosing interface:
- ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort
@Stability(Stable) public static final class ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbortbuild()Builds the configured instance.ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.BuilderhttpStatus(Number httpStatus)ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builderpercentage(Number percentage)
-
-
-
Method Detail
-
httpStatus
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builder httpStatus(Number httpStatus)
Sets the value ofComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.getHttpStatus()- Parameters:
httpStatus- The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#http_status ComputeRegionUrlMap#http_status}- Returns:
this
-
percentage
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.Builder percentage(Number percentage)
Sets the value ofComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort.getPercentage()- Parameters:
percentage- The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. This parameter is required. The value must be between 0.0 and 100.0 inclusive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_url_map#percentage ComputeRegionUrlMap#percentage}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort>- Returns:
- a new instance of
ComputeRegionUrlMapPathMatcherPathRuleRouteActionFaultInjectionPolicyAbort - Throws:
NullPointerException- if any required attribute was not provided
-
-