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 java.lang.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(java.lang.Boolean bypassDocumentValidation)
Deprecated.Sets the bypass document level validation flag.java.lang.Boolean
getBypassDocumentValidation()
Deprecated.Gets the the bypass document level validation flagjava.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getBypassDocumentValidation
@Nullable public java.lang.Boolean getBypassDocumentValidation()
Deprecated.Gets the the bypass document level validation flag- Returns:
- the bypass document level validation flag
-
bypassDocumentValidation
public InsertOneOptions bypassDocumentValidation(@Nullable java.lang.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
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-