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 Type
    Method
    Description
    Return the current value for the entityTypes record component in the builder
    id()
    Return the current value for the id record component in the builder
    Return the current value for the version record component in the builder
    Return a new record builder using the current values
    default Schema
    Return a new record built from the builder passed to the given consumer
    default Schema
    Return a new instance of Schema with a new value for entityTypes
    default Schema
    Return a new instance of Schema with a new value for id
    default Schema
    withVersion(Long version)
    Return a new instance of Schema with a new value for version
  • Method Details

    • id

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") String id()
      Return the current value for the id record component in the builder
    • entityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") Map<String,EntityType> entityTypes()
      Return the current value for the entityTypes record component in the builder
    • version

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") Long version()
      Return the current value for the version record component in the builder
    • with

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") default SchemaBuilder 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

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") default Schema withId(String id)
      Return a new instance of Schema with a new value for id
    • withEntityTypes

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") default Schema withEntityTypes(Map<String,EntityType> entityTypes)
      Return a new instance of Schema with a new value for entityTypes
    • withVersion

      @Generated("io.soabase.recordbuilder.core.RecordBuilder") default Schema withVersion(Long version)
      Return a new instance of Schema with a new value for version