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