Package example.avro

Class Command.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<T>
org.apache.avro.specific.SpecificRecordBuilderBase<Command>
example.avro.Command.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Command>
Enclosing class:
Command

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

    • getType

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

      public Command.Builder setType(CharSequence 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 Command.Builder clearType()
      Clears the value of the 'type' field.
      Returns:
      This builder.
    • getCorrelationId

      public CharSequence getCorrelationId()
      Gets the value of the 'correlationId' field.
      Returns:
      The value.
    • setCorrelationId

      public Command.Builder setCorrelationId(CharSequence value)
      Sets the value of the 'correlationId' field.
      Parameters:
      value - The value of 'correlationId'.
      Returns:
      This builder.
    • hasCorrelationId

      public boolean hasCorrelationId()
      Checks whether the 'correlationId' field has been set.
      Returns:
      True if the 'correlationId' field has been set, false otherwise.
    • clearCorrelationId

      public Command.Builder clearCorrelationId()
      Clears the value of the 'correlationId' field.
      Returns:
      This builder.
    • getPayload

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

      public Command.Builder setPayload(Object 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 Command.Builder clearPayload()
      Clears the value of the 'payload' field.
      Returns:
      This builder.
    • build

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