Class JsonSchemaProperty.JsonSchemaPropertyBuilder
java.lang.Object
org.springframework.data.mongodb.core.schema.JsonSchemaProperty.JsonSchemaPropertyBuilder
- Enclosing interface:
- JsonSchemaProperty
Builder for
IdentifiableJsonSchemaProperty.-
Method Summary
Modifier and TypeMethodDescriptionConfigure theJsonSchemaObject.Typefor the property by deriving it from the giventype.ofType(JsonSchemaObject.Type type) Configure aJsonSchemaObject.Typefor the property.with(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObjectfor the property.
-
Method Details
-
ofType
Configure aJsonSchemaObject.Typefor the property.- Parameters:
type- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.
-
ofType
Configure theJsonSchemaObject.Typefor the property by deriving it from the giventype.- Parameters:
type- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty. - Since:
- 2.2
-
with
public IdentifiableJsonSchemaProperty<TypedJsonSchemaObject> with(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObjectfor the property.- Parameters:
schemaObject- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty.
-
withoutType
- Returns:
- an untyped
IdentifiableJsonSchemaProperty.
-