public RedirectConfig build() {
        BiPredicate<ClientRequestContext, String> predicate;
        if (isAllowingAllDomains) {
            predicate = allowAllDomains;
        } else {
            final BiPredicate<ClientRequestContext, String> allowedDomains = allowedDomains();
            if (allowedDomains != null) {
                predicate = allowedDomains;
                if (this.predicate != null) {
                    predicate = predicate.or(this.predicate);
                }
            } else {
                predicate = this.predicate;
            }
        }

        return new RedirectConfig(allowedProtocols, predicate, maxRedirects);
    }
Returns a newly-created {@link RedirectConfig} based on the properties set so far.
core/src/main/java/com/linecorp/armeria/client/redirect/RedirectConfigBuilder.java