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.Type
for the property by deriving it from the giventype
.ofType
(JsonSchemaObject.Type type) Configure aJsonSchemaObject.Type
for the property.with
(TypedJsonSchemaObject schemaObject) Configure aTypedJsonSchemaObject
for the property.
-
Method Details
-
ofType
Configure aJsonSchemaObject.Type
for the property.- Parameters:
type
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty
.
-
ofType
Configure theJsonSchemaObject.Type
for 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 aTypedJsonSchemaObject
for the property.- Parameters:
schemaObject
- must not be null.- Returns:
- new instance of
IdentifiableJsonSchemaProperty
.
-
withoutType
- Returns:
- an untyped
IdentifiableJsonSchemaProperty
.
-