Class CompileQueryWithPartialEvaluationRequest.Builder
java.lang.Object
com.styra.opa.openapi.models.operations.CompileQueryWithPartialEvaluationRequest.Builder
- Enclosing class:
- CompileQueryWithPartialEvaluationRequest
-
Method Summary
Modifier and TypeMethodDescriptionacceptEncoding
(GzipAcceptEncoding acceptEncoding) Indicates the server should respond with a gzip encoded body.acceptEncoding
(Optional<? extends GzipAcceptEncoding> acceptEncoding) Indicates the server should respond with a gzip encoded body.build()
contentEncoding
(GzipContentEncoding contentEncoding) Indicates that the request body is gzip encodedcontentEncoding
(Optional<? extends GzipContentEncoding> contentEncoding) Indicates that the request body is gzip encodedReturn query explanation in addition to result.Return query explanation in addition to result.instrument
(boolean instrument) Instrument query evaluation and return a superset of performance metrics in addition to result.instrument
(Optional<Boolean> instrument) Instrument query evaluation and return a superset of performance metrics in addition to result.metrics
(boolean metrics) Return query performance metrics in addition to result.Return query performance metrics in addition to result.The path separator is used to access values inside object and array documents.pretty
(boolean pretty) If parameter is `true`, response will formatted for humans.If parameter is `true`, response will formatted for humans.requestBody
(CompileQueryWithPartialEvaluationRequestBody requestBody) The query, input, and other settings for partial evaluation.
-
Method Details
-
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 CompileQueryWithPartialEvaluationRequest.Builder acceptEncoding(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 -
contentEncoding
public CompileQueryWithPartialEvaluationRequest.Builder contentEncoding(Optional<? extends GzipContentEncoding> contentEncoding) Indicates that the request body is gzip encoded -
pretty
If parameter is `true`, response will formatted for humans. -
pretty
If parameter is `true`, response will formatted for humans. -
explain
public CompileQueryWithPartialEvaluationRequest.Builder explain(Optional<? extends Explain> explain) Return query explanation in addition to result. -
metrics
Return query performance metrics in addition to result. -
metrics
Return query performance metrics in addition to result. -
instrument
Instrument query evaluation and return a superset of performance metrics in addition to result. -
instrument
Instrument query evaluation and return a superset of performance metrics in addition to result. -
requestBody
public CompileQueryWithPartialEvaluationRequest.Builder requestBody(CompileQueryWithPartialEvaluationRequestBody requestBody) The query, input, and other settings for partial evaluation. -
build
-