Package com.mongodb.client.model
Class ValidationOptions
java.lang.Object
com.mongodb.client.model.ValidationOptions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Validation options for documents being inserted or updated in a collection
- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets theValidationAction
.Deprecated.Gets theValidationLevel
that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.Deprecated.Gets the validation rules if set or null.toString()
Deprecated.validationAction
(ValidationAction validationAction) Deprecated.Sets theValidationAction
that determines whether to error on invalid documents or just warn about the violations but allow invalid documents.validationLevel
(ValidationLevel validationLevel) Deprecated.Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.Deprecated.Sets the validation rules for all
-
Constructor Details
-
ValidationOptions
public ValidationOptions()Deprecated.
-
-
Method Details
-
getValidator
Deprecated.Gets the validation rules if set or null.- Returns:
- the validation rules if set or null
-
validator
Deprecated.Sets the validation rules for all- Parameters:
validator
- the validation rules- Returns:
- this
-
getValidationLevel
Deprecated.Gets theValidationLevel
that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.- Returns:
- the ValidationLevel.
-
validationLevel
Deprecated.Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.- Parameters:
validationLevel
- the validation level- Returns:
- this
-
getValidationAction
Deprecated.Gets theValidationAction
.- Returns:
- the ValidationAction.
-
validationAction
Deprecated.Sets theValidationAction
that determines whether to error on invalid documents or just warn about the violations but allow invalid documents.- Parameters:
validationAction
- the validation action- Returns:
- this
-
toString
Deprecated.
-