UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

47 lines 1.8 kB
var StitchClientConfiguration = (function () { function StitchClientConfiguration(baseUrl, storage, dataDirectory, transport) { this.baseUrl = baseUrl; this.storage = storage; this.dataDirectory = dataDirectory; this.transport = transport; } StitchClientConfiguration.prototype.builder = function () { return new StitchClientConfiguration.Builder(this); }; return StitchClientConfiguration; }()); export { StitchClientConfiguration }; (function (StitchClientConfiguration) { var Builder = (function () { function Builder(config) { if (config) { this.baseUrl = config.baseUrl; this.storage = config.storage; this.dataDirectory = config.dataDirectory; this.transport = config.transport; } } Builder.prototype.withBaseUrl = function (baseUrl) { this.baseUrl = baseUrl; return this; }; Builder.prototype.withStorage = function (storage) { this.storage = storage; return this; }; Builder.prototype.withDataDirectory = function (dataDirectory) { this.dataDirectory = dataDirectory; return this; }; Builder.prototype.withTransport = function (transport) { this.transport = transport; return this; }; Builder.prototype.build = function () { return new StitchClientConfiguration(this.baseUrl, this.storage, this.dataDirectory, this.transport); }; return Builder; }()); StitchClientConfiguration.Builder = Builder; })(StitchClientConfiguration || (StitchClientConfiguration = {})); //# sourceMappingURL=StitchClientConfiguration.js.map