class Builder {

        /**
         * Utility constructor.
         */
        private Builder() {
        }

        /**
         * Creates new {@link ExpireArgs} and sets {@literal NX}.
         *
         * @return new {@link ExpireArgs} with {@literal NX} set.
         */
        public static ExpireArgs nx() {
            return new ExpireArgs().nx();
        }

        /**
         * Creates new {@link ExpireArgs} and sets {@literal XX}.
         *
         * @return new {@link ExpireArgs} with {@literal XX} set.
         */
        public static ExpireArgs xx() {
            return new ExpireArgs().xx();
        }

        /**
         * Creates new {@link ExpireArgs} and sets {@literal GT}.
         *
         * @return new {@link ExpireArgs} with {@literal GT} set.
         */
        public static ExpireArgs gt() {
            return new ExpireArgs().gt();
        }

        /**
         * Creates new {@link ExpireArgs} and sets {@literal LT}.
         *
         * @return new {@link ExpireArgs} with {@literal LT} set.
         */
        public static ExpireArgs lt() {
            return new ExpireArgs().lt();
        }

    }

    /**
     * Set expiry only when the key has no expiry.
     *
     * @return {@code this}.
     */
    public ExpireArgs nx() {

        this.nx = true;
        return this;
    }

    /**
     * Set expiry only when the key has an existing expiry.
     *
     * @return {@code this}.
     */
    public ExpireArgs xx() {

        this.xx = true;
        return this;
    }

    /**
     * Set expiry only when the new expiry is greater than current one.
     *
     * @return {@code this}.
     */
    public ExpireArgs gt() {

        this.gt = true;
        return this;
    }

    /**
     * Set expiry only when the new expiry is less than current one.
     *
     * @return {@code this}.
     */
    public ExpireArgs lt() {

        this.lt = true;
        return this;
    }

    @Override
    public <K, V> void build(CommandArgs<K, V> args) {<FILL_FUNCTION_BODY>


        if (xx) {
            args.add(CommandKeyword.XX);
        } else if (nx) {
            args.add(CommandKeyword.NX);
        }

        if (lt) {
            args.add("LT");
        } else if (gt) {
            args.add("GT");
        }
    
<no_super_class>