Class ExecutePolicyWithInputRequest.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecutePolicyWithInputRequest.Builder
-
- Enclosing class:
- ExecutePolicyWithInputRequest
public static final class ExecutePolicyWithInputRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutePolicyWithInputRequest.Builder
acceptEncoding(GzipAcceptEncoding acceptEncoding)
Indicates the server should respond with a gzip encoded body.ExecutePolicyWithInputRequest.Builder
acceptEncoding(java.util.Optional<? extends GzipAcceptEncoding> acceptEncoding)
Indicates the server should respond with a gzip encoded body.ExecutePolicyWithInputRequest
build()
ExecutePolicyWithInputRequest.Builder
contentEncoding(GzipContentEncoding contentEncoding)
Indicates that the request body is gzip encodedExecutePolicyWithInputRequest.Builder
contentEncoding(java.util.Optional<? extends GzipContentEncoding> contentEncoding)
Indicates that the request body is gzip encodedExecutePolicyWithInputRequest.Builder
explain(Explain explain)
Return query explanation in addition to result.ExecutePolicyWithInputRequest.Builder
explain(java.util.Optional<? extends Explain> explain)
Return query explanation in addition to result.ExecutePolicyWithInputRequest.Builder
instrument(boolean instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.ExecutePolicyWithInputRequest.Builder
instrument(java.util.Optional<java.lang.Boolean> instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.ExecutePolicyWithInputRequest.Builder
metrics(boolean metrics)
Return query performance metrics in addition to result.ExecutePolicyWithInputRequest.Builder
metrics(java.util.Optional<java.lang.Boolean> metrics)
Return query performance metrics in addition to result.ExecutePolicyWithInputRequest.Builder
path(java.lang.String path)
The path separator is used to access values inside object and array documents.ExecutePolicyWithInputRequest.Builder
pretty(boolean pretty)
If parameter is `true`, response will formatted for humans.ExecutePolicyWithInputRequest.Builder
pretty(java.util.Optional<java.lang.Boolean> pretty)
If parameter is `true`, response will formatted for humans.ExecutePolicyWithInputRequest.Builder
provenance(boolean provenance)
If parameter is true, response will include build/version info in addition to the result.ExecutePolicyWithInputRequest.Builder
provenance(java.util.Optional<java.lang.Boolean> provenance)
If parameter is true, response will include build/version info in addition to the result.ExecutePolicyWithInputRequest.Builder
requestBody(ExecutePolicyWithInputRequestBody requestBody)
The input documentExecutePolicyWithInputRequest.Builder
strictBuiltinErrors(boolean strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.ExecutePolicyWithInputRequest.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 ExecutePolicyWithInputRequest.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.
-
contentEncoding
public ExecutePolicyWithInputRequest.Builder contentEncoding(GzipContentEncoding contentEncoding)
Indicates that the request body is gzip encoded
-
contentEncoding
public ExecutePolicyWithInputRequest.Builder contentEncoding(java.util.Optional<? extends GzipContentEncoding> contentEncoding)
Indicates that the request body is gzip encoded
-
acceptEncoding
public ExecutePolicyWithInputRequest.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 ExecutePolicyWithInputRequest.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 ExecutePolicyWithInputRequest.Builder pretty(boolean pretty)
If parameter is `true`, response will formatted for humans.
-
pretty
public ExecutePolicyWithInputRequest.Builder pretty(java.util.Optional<java.lang.Boolean> pretty)
If parameter is `true`, response will formatted for humans.
-
provenance
public ExecutePolicyWithInputRequest.Builder provenance(boolean provenance)
If parameter is true, response will include build/version info in addition to the result.
-
provenance
public ExecutePolicyWithInputRequest.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 ExecutePolicyWithInputRequest.Builder explain(Explain explain)
Return query explanation in addition to result.
-
explain
public ExecutePolicyWithInputRequest.Builder explain(java.util.Optional<? extends Explain> explain)
Return query explanation in addition to result.
-
metrics
public ExecutePolicyWithInputRequest.Builder metrics(boolean metrics)
Return query performance metrics in addition to result.
-
metrics
public ExecutePolicyWithInputRequest.Builder metrics(java.util.Optional<java.lang.Boolean> metrics)
Return query performance metrics in addition to result.
-
instrument
public ExecutePolicyWithInputRequest.Builder instrument(boolean instrument)
Instrument query evaluation and return a superset of performance metrics in addition to result.
-
instrument
public ExecutePolicyWithInputRequest.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 ExecutePolicyWithInputRequest.Builder strictBuiltinErrors(boolean strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.
-
strictBuiltinErrors
public ExecutePolicyWithInputRequest.Builder strictBuiltinErrors(java.util.Optional<java.lang.Boolean> strictBuiltinErrors)
Treat built-in function call errors as fatal and return an error immediately.
-
requestBody
public ExecutePolicyWithInputRequest.Builder requestBody(ExecutePolicyWithInputRequestBody requestBody)
The input document
-
build
public ExecutePolicyWithInputRequest build()
-
-