Class ExecutePolicyRequest.Builder

  • Enclosing class:
    ExecutePolicyRequest

    public static final class ExecutePolicyRequest.Builder
    extends java.lang.Object
    • 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​(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.
      • 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.