Class EventProcessingFailedPayload.Builder

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

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

    • getOriginalMessage

      public ByteBuffer getOriginalMessage()
      Gets the value of the 'originalMessage' field.
      Returns:
      The value.
    • getOptionalOriginalMessage

      public Optional<ByteBuffer> getOptionalOriginalMessage()
      Gets the value of the 'originalMessage' field as an Optional
      Returns:
      The Optional<value>.
    • setOriginalMessage

      public EventProcessingFailedPayload.Builder setOriginalMessage(ByteBuffer value)
      Sets the value of the 'originalMessage' field.
      Parameters:
      value - The value of 'originalMessage'.
      Returns:
      This builder.
    • hasOriginalMessage

      public boolean hasOriginalMessage()
      Checks whether the 'originalMessage' field has been set.
      Returns:
      True if the 'originalMessage' field has been set, false otherwise.
    • clearOriginalMessage

      public EventProcessingFailedPayload.Builder clearOriginalMessage()
      Clears the value of the 'originalMessage' field.
      Returns:
      This builder.
    • getOriginalKey

      public ByteBuffer getOriginalKey()
      Gets the value of the 'originalKey' field.
      Returns:
      The value.
    • getOptionalOriginalKey

      public Optional<ByteBuffer> getOptionalOriginalKey()
      Gets the value of the 'originalKey' field as an Optional
      Returns:
      The Optional<value>.
    • setOriginalKey

      public EventProcessingFailedPayload.Builder setOriginalKey(ByteBuffer value)
      Sets the value of the 'originalKey' field.
      Parameters:
      value - The value of 'originalKey'.
      Returns:
      This builder.
    • hasOriginalKey

      public boolean hasOriginalKey()
      Checks whether the 'originalKey' field has been set.
      Returns:
      True if the 'originalKey' field has been set, false otherwise.
    • clearOriginalKey

      public EventProcessingFailedPayload.Builder clearOriginalKey()
      Clears the value of the 'originalKey' field.
      Returns:
      This builder.
    • getErrorMessage

      public String getErrorMessage()
      Gets the value of the 'errorMessage' field.
      Returns:
      The value.
    • getOptionalErrorMessage

      public Optional<String> getOptionalErrorMessage()
      Gets the value of the 'errorMessage' field as an Optional
      Returns:
      The Optional<value>.
    • setErrorMessage

      public EventProcessingFailedPayload.Builder setErrorMessage(String value)
      Sets the value of the 'errorMessage' field.
      Parameters:
      value - The value of 'errorMessage'.
      Returns:
      This builder.
    • hasErrorMessage

      public boolean hasErrorMessage()
      Checks whether the 'errorMessage' field has been set.
      Returns:
      True if the 'errorMessage' field has been set, false otherwise.
    • clearErrorMessage

      public EventProcessingFailedPayload.Builder clearErrorMessage()
      Clears the value of the 'errorMessage' field.
      Returns:
      This builder.
    • getErrorDescription

      public String getErrorDescription()
      Gets the value of the 'errorDescription' field.
      Returns:
      The value.
    • getOptionalErrorDescription

      public Optional<String> getOptionalErrorDescription()
      Gets the value of the 'errorDescription' field as an Optional
      Returns:
      The Optional<value>.
    • setErrorDescription

      public EventProcessingFailedPayload.Builder setErrorDescription(String value)
      Sets the value of the 'errorDescription' field.
      Parameters:
      value - The value of 'errorDescription'.
      Returns:
      This builder.
    • hasErrorDescription

      public boolean hasErrorDescription()
      Checks whether the 'errorDescription' field has been set.
      Returns:
      True if the 'errorDescription' field has been set, false otherwise.
    • clearErrorDescription

      public EventProcessingFailedPayload.Builder clearErrorDescription()
      Clears the value of the 'errorDescription' field.
      Returns:
      This builder.
    • getStackTrace

      public String getStackTrace()
      Gets the value of the 'stackTrace' field.
      Returns:
      The value.
    • getOptionalStackTrace

      public Optional<String> getOptionalStackTrace()
      Gets the value of the 'stackTrace' field as an Optional
      Returns:
      The Optional<value>.
    • setStackTrace

      public EventProcessingFailedPayload.Builder setStackTrace(String value)
      Sets the value of the 'stackTrace' field.
      Parameters:
      value - The value of 'stackTrace'.
      Returns:
      This builder.
    • hasStackTrace

      public boolean hasStackTrace()
      Checks whether the 'stackTrace' field has been set.
      Returns:
      True if the 'stackTrace' field has been set, false otherwise.
    • clearStackTrace

      public EventProcessingFailedPayload.Builder clearStackTrace()
      Clears the value of the 'stackTrace' field.
      Returns:
      This builder.
    • build

      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<EventProcessingFailedPayload>