public RedirectConfigBuilder maxRedirects(int maxRedirects) {
        checkArgument(maxRedirects > 0, "maxRedirects: %s (expected: > 0)", maxRedirects);
        this.maxRedirects = maxRedirects;
        return this;
    }
Sets the maximum number of automatic redirection that the client executes.
core/src/main/java/com/linecorp/armeria/client/redirect/RedirectConfigBuilder.java