public final class InsertManyOptions extends Object
| Constructor and Description | 
|---|
| InsertManyOptions() | 
| Modifier and Type | Method and Description | 
|---|---|
| InsertManyOptions | bypassDocumentValidation(Boolean bypassDocumentValidation)Sets the bypass document level validation flag. | 
| Boolean | getBypassDocumentValidation()Gets the the bypass document level validation flag | 
| boolean | isOrdered()Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion. | 
| InsertManyOptions | ordered(boolean ordered)Sets whether the server should insert the documents in the order provided. | 
public boolean isOrdered()
public InsertManyOptions ordered(boolean ordered)
ordered - true if documents should be inserted in orderpublic Boolean getBypassDocumentValidation()
public InsertManyOptions bypassDocumentValidation(Boolean bypassDocumentValidation)
bypassDocumentValidation - If true, allows the write to opt-out of document level validation.