Interface MetadataBuilder.With
- All Known Implementing Classes:
Metadata
- Enclosing class:
MetadataBuilder
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
public static interface MetadataBuilder.With
Add withers to
Metadata-
Method Summary
Modifier and TypeMethodDescriptionReturn the current value for thecreationTimerecord component in the builderReturn the current value for theentityTypeMigrationRunsrecord component in the builderid()Return the current value for theidrecord component in the builderversion()Return the current value for theversionrecord component in the builderdefault MetadataBuilderwith()Return a new record builder using the current valuesdefault Metadatawith(Consumer<MetadataBuilder> consumer) Return a new record built from the builder passed to the given consumerdefault MetadatawithCreationTime(Instant creationTime) Return a new instance ofMetadatawith a new value forcreationTimedefault MetadatawithEntityTypeMigrationRuns(Set<Metadata.MigrationRun> entityTypeMigrationRuns) Return a new instance ofMetadatawith a new value forentityTypeMigrationRunsdefault MetadataReturn a new instance ofMetadatawith a new value foriddefault MetadatawithVersion(Long version) Return a new instance ofMetadatawith a new value forversion
-
Method Details
-
id
Return the current value for theidrecord component in the builder -
version
Return the current value for theversionrecord component in the builder -
creationTime
Return the current value for thecreationTimerecord component in the builder -
entityTypeMigrationRuns
@Generated("io.soabase.recordbuilder.core.RecordBuilder") Set<Metadata.MigrationRun> entityTypeMigrationRuns()Return the current value for theentityTypeMigrationRunsrecord component in the builder -
with
Return a new record builder using the current values -
with
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata with(Consumer<MetadataBuilder> consumer) Return a new record built from the builder passed to the given consumer -
withId
Return a new instance ofMetadatawith a new value forid -
withVersion
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withVersion(Long version) Return a new instance ofMetadatawith a new value forversion -
withCreationTime
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withCreationTime(Instant creationTime) Return a new instance ofMetadatawith a new value forcreationTime -
withEntityTypeMigrationRuns
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withEntityTypeMigrationRuns(Set<Metadata.MigrationRun> entityTypeMigrationRuns) Return a new instance ofMetadatawith a new value forentityTypeMigrationRuns
-