public final class ValidationOptions extends Object
Constructor and Description |
---|
ValidationOptions() |
ValidationOptions(JsonObject json) |
ValidationOptions(ValidationOptions validationOptions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.mongodb.client.model.ValidationAction |
getValidationAction() |
com.mongodb.client.model.ValidationLevel |
getValidationLevel() |
JsonObject |
getValidator() |
int |
hashCode() |
ValidationOptions |
setValidationAction(com.mongodb.client.model.ValidationAction validationAction)
Optional.
|
ValidationOptions |
setValidationLevel(com.mongodb.client.model.ValidationLevel validationLevel)
Optional.
|
ValidationOptions |
setValidator(JsonObject validator)
Optional.
|
JsonObject |
toJson() |
com.mongodb.client.model.ValidationOptions |
toMongoDriverObject()
Returns the mongo-java-driver specific object.
|
String |
toString() |
public ValidationOptions()
public ValidationOptions(ValidationOptions validationOptions)
public ValidationOptions(JsonObject json)
public JsonObject toJson()
public com.mongodb.client.model.ValidationOptions toMongoDriverObject()
@Nullable public JsonObject getValidator()
public ValidationOptions setValidator(@Nullable JsonObject validator)
validator
- @Nullable public com.mongodb.client.model.ValidationLevel getValidationLevel()
public ValidationOptions setValidationLevel(@Nullable com.mongodb.client.model.ValidationLevel validationLevel)
validationLevel
- @Nullable public com.mongodb.client.model.ValidationAction getValidationAction()
public ValidationOptions setValidationAction(@Nullable com.mongodb.client.model.ValidationAction validationAction)
validationAction
- Copyright © 2024 Eclipse. All rights reserved.