Class AvroMessageIdentity.Builder

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

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

    • getId

      public String getId()
      Gets the value of the 'id' field.
      Returns:
      The value.
    • getOptionalId

      public Optional<String> getOptionalId()
      Gets the value of the 'id' field as an Optional
      Returns:
      The Optional<value>.
    • setId

      public AvroMessageIdentity.Builder setId(String value)
      Sets the value of the 'id' field.
      Parameters:
      value - The value of 'id'.
      Returns:
      This builder.
    • hasId

      public boolean hasId()
      Checks whether the 'id' field has been set.
      Returns:
      True if the 'id' field has been set, false otherwise.
    • clearId

      public AvroMessageIdentity.Builder clearId()
      Clears the value of the 'id' 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 AvroMessageIdentity.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 AvroMessageIdentity.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 AvroMessageIdentity.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 AvroMessageIdentity.Builder clearCreated()
      Clears the value of the 'created' field.
      Returns:
      This builder.
    • build

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