Interface SchemaBuilder.With
- All Known Implementing Classes:
Schema
- Enclosing class:
SchemaBuilder
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
public static interface SchemaBuilder.With
Add withers to
Schema
-
Method Summary
Modifier and TypeMethodDescriptionReturn the current value for theentityTypes
record component in the builderid()
Return the current value for theid
record component in the builderversion()
Return the current value for theversion
record component in the builderdefault SchemaBuilder
with()
Return a new record builder using the current valuesdefault Schema
with
(Consumer<SchemaBuilder> consumer) Return a new record built from the builder passed to the given consumerdefault Schema
withEntityTypes
(Map<String, EntityType> entityTypes) Return a new instance ofSchema
with a new value forentityTypes
default Schema
Return a new instance ofSchema
with a new value forid
default Schema
withVersion
(Long version) Return a new instance ofSchema
with a new value forversion
-
Method Details
-
id
Return the current value for theid
record component in the builder -
entityTypes
Return the current value for theentityTypes
record component in the builder -
version
Return the current value for theversion
record component in the builder -
with
Return a new record builder using the current values -
with
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Schema with(Consumer<SchemaBuilder> consumer) Return a new record built from the builder passed to the given consumer -
withId
Return a new instance ofSchema
with a new value forid
-
withEntityTypes
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Schema withEntityTypes(Map<String, EntityType> entityTypes) Return a new instance ofSchema
with a new value forentityTypes
-
withVersion
Return a new instance ofSchema
with a new value forversion
-