Class DeadLetter.Builder

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

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

      • getInputValue

        public java.lang.String getInputValue()
        Gets the value of the 'input_value' field.
        Returns:
        The value.
      • setInputValue

        public DeadLetter.Builder setInputValue​(java.lang.String value)
        Sets the value of the 'input_value' field.
        Parameters:
        value - The value of 'input_value'.
        Returns:
        This builder.
      • hasInputValue

        public boolean hasInputValue()
        Checks whether the 'input_value' field has been set.
        Returns:
        True if the 'input_value' field has been set, false otherwise.
      • clearInputValue

        public DeadLetter.Builder clearInputValue()
        Clears the value of the 'input_value' field.
        Returns:
        This builder.
      • getTopic

        public java.lang.String getTopic()
        Gets the value of the 'topic' field.
        Returns:
        The value.
      • setTopic

        public DeadLetter.Builder setTopic​(java.lang.String value)
        Sets the value of the 'topic' field.
        Parameters:
        value - The value of 'topic'.
        Returns:
        This builder.
      • hasTopic

        public boolean hasTopic()
        Checks whether the 'topic' field has been set.
        Returns:
        True if the 'topic' field has been set, false otherwise.
      • clearTopic

        public DeadLetter.Builder clearTopic()
        Clears the value of the 'topic' field.
        Returns:
        This builder.
      • getPartition

        public java.lang.Integer getPartition()
        Gets the value of the 'partition' field.
        Returns:
        The value.
      • setPartition

        public DeadLetter.Builder setPartition​(java.lang.Integer 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 DeadLetter.Builder clearPartition()
        Clears the value of the 'partition' field.
        Returns:
        This builder.
      • getOffset

        public java.lang.Long getOffset()
        Gets the value of the 'offset' field.
        Returns:
        The value.
      • setOffset

        public DeadLetter.Builder setOffset​(java.lang.Long 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 DeadLetter.Builder clearOffset()
        Clears the value of the 'offset' field.
        Returns:
        This builder.
      • getDescription

        public java.lang.String getDescription()
        Gets the value of the 'description' field.
        Returns:
        The value.
      • setDescription

        public DeadLetter.Builder setDescription​(java.lang.String value)
        Sets the value of the 'description' field.
        Parameters:
        value - The value of 'description'.
        Returns:
        This builder.
      • hasDescription

        public boolean hasDescription()
        Checks whether the 'description' field has been set.
        Returns:
        True if the 'description' field has been set, false otherwise.
      • clearDescription

        public DeadLetter.Builder clearDescription()
        Clears the value of the 'description' field.
        Returns:
        This builder.
      • getCause

        public ErrorDescription getCause()
        Gets the value of the 'cause' field.
        Returns:
        The value.
      • setCause

        public DeadLetter.Builder setCause​(ErrorDescription value)
        Sets the value of the 'cause' field.
        Parameters:
        value - The value of 'cause'.
        Returns:
        This builder.
      • hasCause

        public boolean hasCause()
        Checks whether the 'cause' field has been set.
        Returns:
        True if the 'cause' field has been set, false otherwise.
      • getCauseBuilder

        public ErrorDescription.Builder getCauseBuilder()
        Gets the Builder instance for the 'cause' field and creates one if it doesn't exist yet.
        Returns:
        This builder.
      • setCauseBuilder

        public DeadLetter.Builder setCauseBuilder​(ErrorDescription.Builder value)
        Sets the Builder instance for the 'cause' field
        Parameters:
        value - The builder instance that must be set.
        Returns:
        This builder.
      • hasCauseBuilder

        public boolean hasCauseBuilder()
        Checks whether the 'cause' field has an active Builder instance
        Returns:
        True if the 'cause' field has an active Builder instance
      • clearCause

        public DeadLetter.Builder clearCause()
        Clears the value of the 'cause' field.
        Returns:
        This builder.
      • build

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