Class Event.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder<Event>
    Enclosing class:
    Event

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

      • getMetadata

        public Metadata getMetadata()
        Gets the value of the 'metadata' field.
        Returns:
        The value.
      • setMetadata

        public Event.Builder setMetadata​(Metadata value)
        Sets the value of the 'metadata' field.
        Parameters:
        value - The value of 'metadata'.
        Returns:
        This builder.
      • hasMetadata

        public boolean hasMetadata()
        Checks whether the 'metadata' field has been set.
        Returns:
        True if the 'metadata' field has been set, false otherwise.
      • getMetadataBuilder

        public Metadata.Builder getMetadataBuilder()
        Gets the Builder instance for the 'metadata' field and creates one if it doesn't exist yet.
        Returns:
        This builder.
      • setMetadataBuilder

        public Event.Builder setMetadataBuilder​(Metadata.Builder value)
        Sets the Builder instance for the 'metadata' field
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasMetadataBuilder

        public boolean hasMetadataBuilder()
        Checks whether the 'metadata' field has an active Builder instance
        Returns:
        True if the 'metadata' field has an active Builder instance
      • clearMetadata

        public Event.Builder clearMetadata()
        Clears the value of the 'metadata' field.
        Returns:
        This builder.
      • getPayload

        public Map getPayload()
        Gets the value of the 'payload' field.
        Returns:
        The value.
      • setPayload

        public Event.Builder setPayload​(Map value)
        Sets the value of the 'payload' field.
        Parameters:
        value - The value of 'payload'.
        Returns:
        This builder.
      • hasPayload

        public boolean hasPayload()
        Checks whether the 'payload' field has been set.
        Returns:
        True if the 'payload' field has been set, false otherwise.
      • clearPayload

        public Event.Builder clearPayload()
        Clears the value of the 'payload' field.
        Returns:
        This builder.
      • build

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