Class CardCommand.Builder

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

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

    • getCommand

      public CommandType getCommand()
      Gets the value of the 'command' field.
      Returns:
      The value.
    • setCommand

      public CardCommand.Builder setCommand(CommandType value)
      Sets the value of the 'command' field.
      Parameters:
      value - The value of 'command'.
      Returns:
      This builder.
    • hasCommand

      public boolean hasCommand()
      Checks whether the 'command' field has been set.
      Returns:
      True if the 'command' field has been set, false otherwise.
    • clearCommand

      public CardCommand.Builder clearCommand()
      Clears the value of the 'command' field.
      Returns:
      This builder.
    • getCard

      public Card getCard()
      Gets the value of the 'card' field.
      Returns:
      The value.
    • setCard

      public CardCommand.Builder setCard(Card value)
      Sets the value of the 'card' field.
      Parameters:
      value - The value of 'card'.
      Returns:
      This builder.
    • hasCard

      public boolean hasCard()
      Checks whether the 'card' field has been set.
      Returns:
      True if the 'card' field has been set, false otherwise.
    • getCardBuilder

      public Card.Builder getCardBuilder()
      Gets the Builder instance for the 'card' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setCardBuilder

      public CardCommand.Builder setCardBuilder(Card.Builder value)
      Sets the Builder instance for the 'card' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasCardBuilder

      public boolean hasCardBuilder()
      Checks whether the 'card' field has an active Builder instance
      Returns:
      True if the 'card' field has an active Builder instance
    • clearCard

      public CardCommand.Builder clearCard()
      Clears the value of the 'card' field.
      Returns:
      This builder.
    • getResponseCard

      public ResponseCard getResponseCard()
      Gets the value of the 'responseCard' field.
      Returns:
      The value.
    • setResponseCard

      public CardCommand.Builder setResponseCard(ResponseCard value)
      Sets the value of the 'responseCard' field.
      Parameters:
      value - The value of 'responseCard'.
      Returns:
      This builder.
    • hasResponseCard

      public boolean hasResponseCard()
      Checks whether the 'responseCard' field has been set.
      Returns:
      True if the 'responseCard' field has been set, false otherwise.
    • getResponseCardBuilder

      public ResponseCard.Builder getResponseCardBuilder()
      Gets the Builder instance for the 'responseCard' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setResponseCardBuilder

      public CardCommand.Builder setResponseCardBuilder(ResponseCard.Builder value)
      Sets the Builder instance for the 'responseCard' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasResponseCardBuilder

      public boolean hasResponseCardBuilder()
      Checks whether the 'responseCard' field has an active Builder instance
      Returns:
      True if the 'responseCard' field has an active Builder instance
    • clearResponseCard

      public CardCommand.Builder clearResponseCard()
      Clears the value of the 'responseCard' field.
      Returns:
      This builder.
    • build

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