/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); } }
/** * <p> * The endpoint configuration of this <a>RestApi</a> showing the endpoint types of the API. * </p> * This is a convenience that creates an instance of the {@link EndpointConfiguration.Builder} avoiding the need * to create one manually via {@link EndpointConfiguration#builder()}. * * When the {@link Consumer} completes, {@link EndpointConfiguration.Builder#build()} is called immediately and * its result is passed to {@link #endpointConfiguration(EndpointConfiguration)}. * * @param endpointConfiguration * a consumer that will call methods on {@link EndpointConfiguration.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #endpointConfiguration(EndpointConfiguration) */ default Builder endpointConfiguration(Consumer<EndpointConfiguration.Builder> endpointConfiguration) { return endpointConfiguration(EndpointConfiguration.builder().applyMutation(endpointConfiguration).build()); }