private BackendService(Builder builder) { this.id = checkNotNull(builder.id, "id"); this.path = checkNotNull(builder.path, "path"); this.connectionPoolSettings = checkNotNull(builder.connectionPoolSettings); this.origins = ImmutableSet.copyOf(builder.origins); this.healthCheckConfig = nullIfDisabled(builder.healthCheckConfig); this.stickySessionConfig = checkNotNull(builder.stickySessionConfig); this.rewrites = checkNotNull(builder.rewrites); this.responseTimeoutMillis = builder.responseTimeoutMillis == 0 ? DEFAULT_RESPONSE_TIMEOUT_MILLIS : builder.responseTimeoutMillis; this.tlsSettings = builder.tlsSettings; checkThatOriginsAreDistinct(origins); checkArgument(responseTimeoutMillis >= 0, "Request timeout must be greater than or equal to zero"); }