Class ExternalEventResponse.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder

    
    public class ExternalEventResponse.Builder
    extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
                        

    RecordBuilder for ExternalEventResponse instances.

    • Constructor Detail

    • Method Detail

      • getRequestId

         String getRequestId()

        Gets the value of the 'requestId' field. The request id of the external event response. Used for deduplication when processing responses.

      • setRequestId

         ExternalEventResponse.Builder setRequestId(String value)

        Sets the value of the 'requestId' field. The request id of the external event response. Used for deduplication when processing responses.

        Parameters:
        value - The value of 'requestId'.
      • getPayload

         ByteBuffer getPayload()

        Gets the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.

      • setPayload

         ExternalEventResponse.Builder setPayload(ByteBuffer value)

        Sets the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.

        Parameters:
        value - The value of 'payload'.
      • getTimestamp

         Instant getTimestamp()

        Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the response was created.

      • hasRequestId

         boolean hasRequestId()

        Checks whether the 'requestId' field has been set. The request id of the external event response. Used for deduplication when processing responses.

      • hasPayload

         boolean hasPayload()

        Checks whether the 'payload' field has been set. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.

      • clearPayload

         ExternalEventResponse.Builder clearPayload()

        Clears the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.

      • hasError

         boolean hasError()

        Checks whether the 'error' field has been set. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.

      • hasErrorBuilder

         boolean hasErrorBuilder()

        Checks whether the 'error' field has an active Builder instance The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.

      • hasTimestamp

         boolean hasTimestamp()

        Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the response was created.