Class AvroDomainEventIdentity.Builder

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

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

    • getEventId

      public String getEventId()
      Gets the value of the 'eventId' field.
      Returns:
      The value.
    • getOptionalEventId

      public Optional<String> getOptionalEventId()
      Gets the value of the 'eventId' field as an Optional
      Returns:
      The Optional<value>.
    • setEventId

      public AvroDomainEventIdentity.Builder setEventId(String value)
      Sets the value of the 'eventId' field.
      Parameters:
      value - The value of 'eventId'.
      Returns:
      This builder.
    • hasEventId

      public boolean hasEventId()
      Checks whether the 'eventId' field has been set.
      Returns:
      True if the 'eventId' field has been set, false otherwise.
    • clearEventId

      public AvroDomainEventIdentity.Builder clearEventId()
      Clears the value of the 'eventId' field.
      Returns:
      This builder.
    • getIdempotenceId

      public String getIdempotenceId()
      Gets the value of the 'idempotenceId' field.
      Returns:
      The value.
    • getOptionalIdempotenceId

      public Optional<String> getOptionalIdempotenceId()
      Gets the value of the 'idempotenceId' field as an Optional
      Returns:
      The Optional<value>.
    • setIdempotenceId

      public AvroDomainEventIdentity.Builder setIdempotenceId(String value)
      Sets the value of the 'idempotenceId' field.
      Parameters:
      value - The value of 'idempotenceId'.
      Returns:
      This builder.
    • hasIdempotenceId

      public boolean hasIdempotenceId()
      Checks whether the 'idempotenceId' field has been set.
      Returns:
      True if the 'idempotenceId' field has been set, false otherwise.
    • clearIdempotenceId

      public AvroDomainEventIdentity.Builder clearIdempotenceId()
      Clears the value of the 'idempotenceId' field.
      Returns:
      This builder.
    • getCreated

      public Instant getCreated()
      Gets the value of the 'created' field.
      Returns:
      The value.
    • getOptionalCreated

      public Optional<Instant> getOptionalCreated()
      Gets the value of the 'created' field as an Optional
      Returns:
      The Optional<value>.
    • setCreated

      public AvroDomainEventIdentity.Builder setCreated(Instant value)
      Sets the value of the 'created' field.
      Parameters:
      value - The value of 'created'.
      Returns:
      This builder.
    • hasCreated

      public boolean hasCreated()
      Checks whether the 'created' field has been set.
      Returns:
      True if the 'created' field has been set, false otherwise.
    • clearCreated

      public AvroDomainEventIdentity.Builder clearCreated()
      Clears the value of the 'created' field.
      Returns:
      This builder.
    • build

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