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 thecreationTime
record component in the builderReturn the current value for theentityTypeMigrationRuns
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 MetadataBuilder
with()
Return a new record builder using the current valuesdefault Metadata
with
(Consumer<MetadataBuilder> consumer) Return a new record built from the builder passed to the given consumerdefault Metadata
withCreationTime
(Instant creationTime) Return a new instance ofMetadata
with a new value forcreationTime
default Metadata
withEntityTypeMigrationRuns
(Set<Metadata.MigrationRun> entityTypeMigrationRuns) Return a new instance ofMetadata
with a new value forentityTypeMigrationRuns
default Metadata
Return a new instance ofMetadata
with a new value forid
default Metadata
withVersion
(Long version) Return a new instance ofMetadata
with a new value forversion
-
Method Details
-
id
Return the current value for theid
record component in the builder -
version
Return the current value for theversion
record component in the builder -
creationTime
Return the current value for thecreationTime
record component in the builder -
entityTypeMigrationRuns
@Generated("io.soabase.recordbuilder.core.RecordBuilder") Set<Metadata.MigrationRun> entityTypeMigrationRuns()Return the current value for theentityTypeMigrationRuns
record 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 ofMetadata
with a new value forid
-
withVersion
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withVersion(Long version) Return a new instance ofMetadata
with a new value forversion
-
withCreationTime
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withCreationTime(Instant creationTime) Return a new instance ofMetadata
with a new value forcreationTime
-
withEntityTypeMigrationRuns
@Generated("io.soabase.recordbuilder.core.RecordBuilder") default Metadata withEntityTypeMigrationRuns(Set<Metadata.MigrationRun> entityTypeMigrationRuns) Return a new instance ofMetadata
with a new value forentityTypeMigrationRuns
-