Class MetadataBuilder
java.lang.Object
cloud.quinimbus.persistence.api.schema.MetadataBuilder
@Generated("io.soabase.recordbuilder.core.RecordBuilder")
public class MetadataBuilder
extends Object
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionAdd to the internally allocatedHashSetforentityTypeMigrationRunsaddEntityTypeMigrationRuns(Iterable<? extends Metadata.MigrationRun> i) Add to the internally allocatedHashSetforentityTypeMigrationRunsaddEntityTypeMigrationRuns(Stream<? extends Metadata.MigrationRun> i) Add to the internally allocatedHashSetforentityTypeMigrationRunsbuild()Return a new record instance with all fields set to the current values in this builderstatic MetadataBuilderbuilder()Return a new builder with all fields set to default Java valuesstatic MetadataBuilderReturn a new builder with all fields set to the values taken from the given record instanceReturn the current value for thecreationTimerecord component in the buildercreationTime(Instant creationTime) Set a new value for thecreationTimerecord component in the builderReturn the current value for theentityTypeMigrationRunsrecord component in the builderentityTypeMigrationRuns(Collection<? extends Metadata.MigrationRun> entityTypeMigrationRuns) Re-create the internally allocatedSet<Metadata.MigrationRun>forentityTypeMigrationRunsby copying the argumentbooleanstatic MetadataBuilder.WithReturn a "with"er for an existing record instanceinthashCode()id()Return the current value for theidrecord component in the builderSet a new value for theidrecord component in the builderstatic MetadataMetadata(String id, Long version, Instant creationTime, Set<Metadata.MigrationRun> entityTypeMigrationRuns) Static constructor/builder.Return a stream of the record components as map entries keyed with the component name and the value as the component valuetoString()version()Return the current value for theversionrecord component in the builderSet a new value for theversionrecord component in the builder
- 
Method Details- 
Metadata@Generated("io.soabase.recordbuilder.core.RecordBuilder") public static Metadata Metadata(String id, Long version, Instant creationTime, Set<Metadata.MigrationRun> entityTypeMigrationRuns) Static constructor/builder. Can be used instead of new Metadata(...)
- 
builderReturn a new builder with all fields set to default Java values
- 
builder@Generated("io.soabase.recordbuilder.core.RecordBuilder") public static MetadataBuilder builder(Metadata from) Return a new builder with all fields set to the values taken from the given record instance
- 
from@Generated("io.soabase.recordbuilder.core.RecordBuilder") public static MetadataBuilder.With from(Metadata from) Return a "with"er for an existing record instance
- 
stream
- 
buildReturn a new record instance with all fields set to the current values in this builder
- 
toString
- 
hashCode
- 
equals
- 
idSet a new value for theidrecord component in the builder
- 
idReturn the current value for theidrecord component in the builder
- 
version@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder version(Long version) Set a new value for theversionrecord component in the builder
- 
versionReturn the current value for theversionrecord component in the builder
- 
creationTime@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder creationTime(Instant creationTime) Set a new value for thecreationTimerecord component in the builder
- 
creationTimeReturn the current value for thecreationTimerecord component in the builder
- 
entityTypeMigrationRuns@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder entityTypeMigrationRuns(Collection<? extends Metadata.MigrationRun> entityTypeMigrationRuns) Re-create the internally allocatedSet<Metadata.MigrationRun>forentityTypeMigrationRunsby copying the argument
- 
entityTypeMigrationRuns@Generated("io.soabase.recordbuilder.core.RecordBuilder") public Set<Metadata.MigrationRun> entityTypeMigrationRuns()Return the current value for theentityTypeMigrationRunsrecord component in the builder
- 
addEntityTypeMigrationRuns@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Metadata.MigrationRun i) Add to the internally allocatedHashSetforentityTypeMigrationRuns
- 
addEntityTypeMigrationRuns@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Stream<? extends Metadata.MigrationRun> i) Add to the internally allocatedHashSetforentityTypeMigrationRuns
- 
addEntityTypeMigrationRuns@Generated("io.soabase.recordbuilder.core.RecordBuilder") public MetadataBuilder addEntityTypeMigrationRuns(Iterable<? extends Metadata.MigrationRun> i) Add to the internally allocatedHashSetforentityTypeMigrationRuns
 
-