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.