public RestTemplateBuilder interceptors(
			Collection<ClientHttpRequestInterceptor> interceptors) {
		Assert.notNull(interceptors, "interceptors must not be null");
		return new RestTemplateBuilder(this.detectRequestFactory, this.rootUri,
				this.messageConverters, this.requestFactorySupplier,
				this.uriTemplateHandler, this.errorHandler, this.basicAuthentication,
				this.restTemplateCustomizers, this.requestFactoryCustomizer,
				Collections.unmodifiableSet(new LinkedHashSet<>(interceptors)));
	}
public RestTemplateBuilder interceptors ( Collection < ClientHttpRequestInterceptor > interceptors ) { Assert . notNull ( interceptors , "interceptors must not be null" ) ; return new RestTemplateBuilder ( this . detectRequestFactory , this . rootUri , this . messageConverters , this . requestFactorySupplier , this . uriTemplateHandler , this . errorHandler , this . basicAuthentication , this . restTemplateCustomizers , this . requestFactoryCustomizer , Collections . unmodifiableSet ( new LinkedHashSet < > ( interceptors ) ) ) ; }
Set the {@link ClientHttpRequestInterceptor ClientHttpRequestInterceptors} that
should be used with the {@link RestTemplate}. Setting this value will replace any
previously defined interceptors.
@param interceptors the interceptors to set
@return a new builder instance
@since 1.4.1
@see #additionalInterceptors(ClientHttpRequestInterceptor...)