Class AvroDomainEventType.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<AvroDomainEventType>
org.apache.avro.specific.SpecificRecordBuilderBase<AvroDomainEventType>
ch.admin.bit.jeap.domainevent.avro.AvroDomainEventType.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AvroDomainEventType>
Enclosing class:
AvroDomainEventType

public static class AvroDomainEventType.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<AvroDomainEventType> implements org.apache.avro.data.RecordBuilder<AvroDomainEventType>
RecordBuilder for AvroDomainEventType instances.
  • Method Details

    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value.
    • getOptionalName

      public Optional<String> getOptionalName()
      Gets the value of the 'name' field as an Optional
      Returns:
      The Optional<value>.
    • setName

      public AvroDomainEventType.Builder setName(String value)
      Sets the value of the 'name' field.
      Parameters:
      value - The value of 'name'.
      Returns:
      This builder.
    • hasName

      public boolean hasName()
      Checks whether the 'name' field has been set.
      Returns:
      True if the 'name' field has been set, false otherwise.
    • clearName

      public AvroDomainEventType.Builder clearName()
      Clears the value of the 'name' field.
      Returns:
      This builder.
    • getVersion

      public String getVersion()
      Gets the value of the 'version' field.
      Returns:
      The value.
    • getOptionalVersion

      public Optional<String> getOptionalVersion()
      Gets the value of the 'version' field as an Optional
      Returns:
      The Optional<value>.
    • setVersion

      public AvroDomainEventType.Builder setVersion(String value)
      Sets the value of the 'version' field.
      Parameters:
      value - The value of 'version'.
      Returns:
      This builder.
    • hasVersion

      public boolean hasVersion()
      Checks whether the 'version' field has been set.
      Returns:
      True if the 'version' field has been set, false otherwise.
    • clearVersion

      public AvroDomainEventType.Builder clearVersion()
      Clears the value of the 'version' field.
      Returns:
      This builder.
    • build

      public AvroDomainEventType build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<AvroDomainEventType>