Class MessageReference.Builder

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

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

    • getType

      public String getType()
      Gets the value of the 'type' field.
      Returns:
      The value.
    • getOptionalType

      public Optional<String> getOptionalType()
      Gets the value of the 'type' field as an Optional
      Returns:
      The Optional<value>.
    • setType

      public MessageReference.Builder setType(String value)
      Sets the value of the 'type' field.
      Parameters:
      value - The value of 'type'.
      Returns:
      This builder.
    • hasType

      public boolean hasType()
      Checks whether the 'type' field has been set.
      Returns:
      True if the 'type' field has been set, false otherwise.
    • clearType

      public MessageReference.Builder clearType()
      Clears the value of the 'type' field.
      Returns:
      This builder.
    • getTopicName

      public String getTopicName()
      Gets the value of the 'topicName' field.
      Returns:
      The value.
    • getOptionalTopicName

      public Optional<String> getOptionalTopicName()
      Gets the value of the 'topicName' field as an Optional
      Returns:
      The Optional<value>.
    • setTopicName

      public MessageReference.Builder setTopicName(String value)
      Sets the value of the 'topicName' field.
      Parameters:
      value - The value of 'topicName'.
      Returns:
      This builder.
    • hasTopicName

      public boolean hasTopicName()
      Checks whether the 'topicName' field has been set.
      Returns:
      True if the 'topicName' field has been set, false otherwise.
    • clearTopicName

      public MessageReference.Builder clearTopicName()
      Clears the value of the 'topicName' field.
      Returns:
      This builder.
    • getPartition

      public String getPartition()
      Gets the value of the 'partition' field.
      Returns:
      The value.
    • getOptionalPartition

      public Optional<String> getOptionalPartition()
      Gets the value of the 'partition' field as an Optional
      Returns:
      The Optional<value>.
    • setPartition

      public MessageReference.Builder setPartition(String value)
      Sets the value of the 'partition' field.
      Parameters:
      value - The value of 'partition'.
      Returns:
      This builder.
    • hasPartition

      public boolean hasPartition()
      Checks whether the 'partition' field has been set.
      Returns:
      True if the 'partition' field has been set, false otherwise.
    • clearPartition

      public MessageReference.Builder clearPartition()
      Clears the value of the 'partition' field.
      Returns:
      This builder.
    • getOffset

      public String getOffset()
      Gets the value of the 'offset' field.
      Returns:
      The value.
    • getOptionalOffset

      public Optional<String> getOptionalOffset()
      Gets the value of the 'offset' field as an Optional
      Returns:
      The Optional<value>.
    • setOffset

      public MessageReference.Builder setOffset(String value)
      Sets the value of the 'offset' field.
      Parameters:
      value - The value of 'offset'.
      Returns:
      This builder.
    • hasOffset

      public boolean hasOffset()
      Checks whether the 'offset' field has been set.
      Returns:
      True if the 'offset' field has been set, false otherwise.
    • clearOffset

      public MessageReference.Builder clearOffset()
      Clears the value of the 'offset' field.
      Returns:
      This builder.
    • build

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