public final class InsertManyOptions extends Object
Constructor | Description |
---|---|
InsertManyOptions() |
Modifier and Type | Method | 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.
|
String |
toString() |
public boolean isOrdered()
public InsertManyOptions ordered(boolean ordered)
ordered
- true if documents should be inserted in order@Nullable public Boolean getBypassDocumentValidation()
public InsertManyOptions bypassDocumentValidation(@Nullable Boolean bypassDocumentValidation)
bypassDocumentValidation
- If true, allows the write to opt-out of document level validation.