public static class QueryParameterValidationRequestPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryParameterValidationRequestPolicy |
build() |
QueryParameterValidationRequestPolicy.Builder |
copy(QueryParameterValidationRequestPolicy model) |
QueryParameterValidationRequestPolicy.Builder |
parameters(List<QueryParameterValidationItem> parameters) |
QueryParameterValidationRequestPolicy.Builder |
validationMode(QueryParameterValidationRequestPolicy.ValidationMode validationMode)
Validation behavior mode.
|
public QueryParameterValidationRequestPolicy.Builder parameters(List<QueryParameterValidationItem> parameters)
public QueryParameterValidationRequestPolicy.Builder validationMode(QueryParameterValidationRequestPolicy.ValidationMode validationMode)
Validation behavior mode.
In ENFORCING
mode, upon a validation failure, the request will be rejected
with a 4xx response and not sent to the backend.
In PERMISSIVE
mode, the result of the validation will be exposed as metrics
while the request will follow the normal path.
DISABLED
type turns the validation off.
validationMode
- the value to setpublic QueryParameterValidationRequestPolicy build()
public QueryParameterValidationRequestPolicy.Builder copy(QueryParameterValidationRequestPolicy model)
Copyright © 2016–2024. All rights reserved.