Class ExecutePolicyRequest.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecutePolicyRequest.Builder
-
- Enclosing class:
- ExecutePolicyRequest
public static final class ExecutePolicyRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutePolicyRequest.Builder
acceptEncoding(GzipAcceptEncoding acceptEncoding)
Indicates the server should respond with a gzip encoded body.ExecutePolicyRequest.Builder
acceptEncoding(java.util.Optional<? extends GzipAcceptEncoding> acceptEncoding)
Indicates the server should respond with a gzip encoded body.ExecutePolicyRequest
build()
ExecutePolicyRequest.Builder
explain(Explain explain)
Return query explanation in addition to result.ExecutePolicyRequest.Builder
explain(java.util.Optional<? extends Explain> explain)
Return query explanation in addition to result.ExecutePolicyRequest.Builder
instrument(boolean instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.ExecutePolicyRequest.Builder
instrument(java.util.Optional<java.lang.Boolean> instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.ExecutePolicyRequest.Builder
metrics(boolean metrics)
Return query performance metrics in addition to result.ExecutePolicyRequest.Builder
metrics(java.util.Optional<java.lang.Boolean> metrics)
Return query performance metrics in addition to result.ExecutePolicyRequest.Builder
path(java.lang.String path)
The path separator is used to access values inside object and array documents.ExecutePolicyRequest.Builder
pretty(boolean pretty)
If parameter is `true`, response will formatted for humans.ExecutePolicyRequest.Builder
pretty(java.util.Optional<java.lang.Boolean> pretty)
If parameter is `true`, response will formatted for humans.ExecutePolicyRequest.Builder
provenance(boolean provenance)
If parameter is true, response will include build/version info in addition to the result.ExecutePolicyRequest.Builder
provenance(java.util.Optional<java.lang.Boolean> provenance)
If parameter is true, response will include build/version info in addition to the result.ExecutePolicyRequest.Builder
strictBuiltinErrors(boolean strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.ExecutePolicyRequest.Builder
strictBuiltinErrors(java.util.Optional<java.lang.Boolean> strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.
-
-
-
Method Detail
-
path
public ExecutePolicyRequest.Builder path(java.lang.String path)
The path separator is used to access values inside object and array documents. If the path indexes into an array, the server will attempt to convert the array index to an integer. If the path element cannot be converted to an integer, the server will respond with 404.
-
acceptEncoding
public ExecutePolicyRequest.Builder acceptEncoding(GzipAcceptEncoding acceptEncoding)
Indicates the server should respond with a gzip encoded body. The server will send the compressed response only if its length is above `server.encoding.gzip.min_length` value. See the configuration section
-
acceptEncoding
public ExecutePolicyRequest.Builder acceptEncoding(java.util.Optional<? extends GzipAcceptEncoding> acceptEncoding)
Indicates the server should respond with a gzip encoded body. The server will send the compressed response only if its length is above `server.encoding.gzip.min_length` value. See the configuration section
-
pretty
public ExecutePolicyRequest.Builder pretty(boolean pretty)
If parameter is `true`, response will formatted for humans.
-
pretty
public ExecutePolicyRequest.Builder pretty(java.util.Optional<java.lang.Boolean> pretty)
If parameter is `true`, response will formatted for humans.
-
provenance
public ExecutePolicyRequest.Builder provenance(boolean provenance)
If parameter is true, response will include build/version info in addition to the result.
-
provenance
public ExecutePolicyRequest.Builder provenance(java.util.Optional<java.lang.Boolean> provenance)
If parameter is true, response will include build/version info in addition to the result.
-
explain
public ExecutePolicyRequest.Builder explain(Explain explain)
Return query explanation in addition to result.
-
explain
public ExecutePolicyRequest.Builder explain(java.util.Optional<? extends Explain> explain)
Return query explanation in addition to result.
-
metrics
public ExecutePolicyRequest.Builder metrics(boolean metrics)
Return query performance metrics in addition to result.
-
metrics
public ExecutePolicyRequest.Builder metrics(java.util.Optional<java.lang.Boolean> metrics)
Return query performance metrics in addition to result.
-
instrument
public ExecutePolicyRequest.Builder instrument(boolean instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.
-
instrument
public ExecutePolicyRequest.Builder instrument(java.util.Optional<java.lang.Boolean> instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.
-
strictBuiltinErrors
public ExecutePolicyRequest.Builder strictBuiltinErrors(boolean strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.
-
strictBuiltinErrors
public ExecutePolicyRequest.Builder strictBuiltinErrors(java.util.Optional<java.lang.Boolean> strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.
-
build
public ExecutePolicyRequest build()
-
-