Package com.mongodb.client.model
Class InsertOneOptions
- java.lang.Object
-
- com.mongodb.client.model.InsertOneOptions
-
@Deprecated(since="2021-05-27") public final class InsertOneOptions extends Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.The options to apply to an operation that inserts a single document into a collection.- Since:
- 3.2
-
-
Constructor Summary
Constructors Constructor Description InsertOneOptions()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InsertOneOptions
bypassDocumentValidation(Boolean bypassDocumentValidation)
Deprecated.Sets the bypass document level validation flag.Boolean
getBypassDocumentValidation()
Deprecated.Gets the the bypass document level validation flagString
toString()
Deprecated.
-
-
-
Method Detail
-
getBypassDocumentValidation
@Nullable public Boolean getBypassDocumentValidation()
Deprecated.Gets the the bypass document level validation flag- Returns:
- the bypass document level validation flag
-
bypassDocumentValidation
public InsertOneOptions bypassDocumentValidation(@Nullable Boolean bypassDocumentValidation)
Deprecated.Sets the bypass document level validation flag.- Parameters:
bypassDocumentValidation
- If true, allows the write to opt-out of document level validation.- Returns:
- this
-
-