public static class MongoJsonSchema.MongoJsonSchemaBuilder extends Object
MongoJsonSchema.MongoJsonSchemaBuilder provides a fluent API for defining a MongoJsonSchema.public MongoJsonSchema.MongoJsonSchemaBuilder minProperties(int count)
count - this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.minProperties(int)public MongoJsonSchema.MongoJsonSchemaBuilder maxProperties(int count)
count - this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.maxProperties(int)public MongoJsonSchema.MongoJsonSchemaBuilder required(String... properties)
properties - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.required(String...)public MongoJsonSchema.MongoJsonSchemaBuilder additionalProperties(boolean additionalPropertiesAllowed)
additionalPropertiesAllowed - this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.additionalProperties(boolean)public MongoJsonSchema.MongoJsonSchemaBuilder additionalProperties(TypedJsonSchemaObject.ObjectJsonSchemaObject schema)
schema - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.ObjectJsonSchemaObject#additionalProperties(ObjectJsonSchemaObject)public MongoJsonSchema.MongoJsonSchemaBuilder properties(JsonSchemaProperty... properties)
properties - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.properties(JsonSchemaProperty...)public MongoJsonSchema.MongoJsonSchemaBuilder patternProperties(JsonSchemaProperty... properties)
properties - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.patternProperties(JsonSchemaProperty...)public MongoJsonSchema.MongoJsonSchemaBuilder property(JsonSchemaProperty property)
property - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.property(JsonSchemaProperty)public MongoJsonSchema.MongoJsonSchemaBuilder possibleValues(Set<Object> possibleValues)
possibleValues - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.TypedJsonSchemaObject.ObjectJsonSchemaObject.possibleValues(Collection)public MongoJsonSchema.MongoJsonSchemaBuilder allOf(Set<JsonSchemaObject> allOf)
allOf - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.UntypedJsonSchemaObject.allOf(Collection)public MongoJsonSchema.MongoJsonSchemaBuilder anyOf(Set<JsonSchemaObject> anyOf)
anyOf - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.UntypedJsonSchemaObject.anyOf(Collection)public MongoJsonSchema.MongoJsonSchemaBuilder oneOf(Set<JsonSchemaObject> oneOf)
oneOf - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.UntypedJsonSchemaObject.oneOf(Collection)public MongoJsonSchema.MongoJsonSchemaBuilder notMatch(JsonSchemaObject notMatch)
notMatch - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.UntypedJsonSchemaObject.notMatch(JsonSchemaObject)public MongoJsonSchema.MongoJsonSchemaBuilder description(String description)
description - must not be null.this MongoJsonSchema.MongoJsonSchemaBuilder.UntypedJsonSchemaObject.description(String)public void encryptionMetadata(@Nullable org.bson.Document encryptionMetadata)
encryptionMetadata - can be null.public MongoJsonSchema build()
MongoJsonSchema.MongoJsonSchema.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.