All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noenv.wiremongo.command.collection.CreateCollectionWithOptionsCommand Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
package com.noenv.wiremongo.command.collection;

import io.vertx.ext.mongo.CreateCollectionOptions;

public class CreateCollectionWithOptionsCommand extends WithCollectionCommand {

  private final CreateCollectionOptions options;

  public CreateCollectionWithOptionsCommand(String collection, CreateCollectionOptions options) {
    super("createCollectionWithOptions", collection);
    this.options = options;
  }

  public CreateCollectionOptions getOptions() {
    return options;
  }

  @Override
  public String toString() {
    return super.toString() + ", options: " + (options != null ? options.toJson().encode() : "null");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy