/** * <p> * Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, * see the configuration properties section in <a * href="http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html"> Using MongoDB as a Target * for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> * </p> * This is a convenience that creates an instance of the {@link MongoDbSettings.Builder} avoiding the need to * create one manually via {@link MongoDbSettings#builder()}. * * When the {@link Consumer} completes, {@link MongoDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #mongoDbSettings(MongoDbSettings)}. * * @param mongoDbSettings * a consumer that will call methods on {@link MongoDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #mongoDbSettings(MongoDbSettings) */ default Builder mongoDbSettings(Consumer<MongoDbSettings.Builder> mongoDbSettings) { return mongoDbSettings(MongoDbSettings.builder().applyMutation(mongoDbSettings).build()); }
/** * <p> * Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, * see the <b>Configuration Properties When Using MongoDB as a Source for AWS Database Migration Service</b> * section at <a href="http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html"> Using Amazon * S3 as a Target for AWS Database Migration Service</a>. * </p> * This is a convenience that creates an instance of the {@link MongoDbSettings.Builder} avoiding the need to * create one manually via {@link MongoDbSettings#builder()}. * * When the {@link Consumer} completes, {@link MongoDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #mongoDbSettings(MongoDbSettings)}. * * @param mongoDbSettings * a consumer that will call methods on {@link MongoDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #mongoDbSettings(MongoDbSettings) */ default Builder mongoDbSettings(Consumer<MongoDbSettings.Builder> mongoDbSettings) { return mongoDbSettings(MongoDbSettings.builder().applyMutation(mongoDbSettings).build()); }
/** * <p> * Settings in JSON format for the source MongoDB endpoint. For more information about the available settings, * see the configuration properties section in <a * href="http://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html"> Using MongoDB as a Target * for AWS Database Migration Service</a> in the <i>AWS Database Migration Service User Guide.</i> * </p> * This is a convenience that creates an instance of the {@link MongoDbSettings.Builder} avoiding the need to * create one manually via {@link MongoDbSettings#builder()}. * * When the {@link Consumer} completes, {@link MongoDbSettings.Builder#build()} is called immediately and its * result is passed to {@link #mongoDbSettings(MongoDbSettings)}. * * @param mongoDbSettings * a consumer that will call methods on {@link MongoDbSettings.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #mongoDbSettings(MongoDbSettings) */ default Builder mongoDbSettings(Consumer<MongoDbSettings.Builder> mongoDbSettings) { return mongoDbSettings(MongoDbSettings.builder().applyMutation(mongoDbSettings).build()); }