Package org.opfab.avro
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 Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'card' field.Clears the value of the 'command' field.Clears the value of the 'responseCard' field.getCard()Gets the value of the 'card' field.Gets the Builder instance for the 'card' field and creates one if it doesn't exist yet.Gets the value of the 'command' field.Gets the value of the 'responseCard' field.Gets the Builder instance for the 'responseCard' field and creates one if it doesn't exist yet.booleanhasCard()Checks whether the 'card' field has been set.booleanChecks whether the 'card' field has an active Builder instancebooleanChecks whether the 'command' field has been set.booleanChecks whether the 'responseCard' field has been set.booleanChecks whether the 'responseCard' field has an active Builder instanceSets the value of the 'card' field.setCardBuilder(Card.Builder value) Sets the Builder instance for the 'card' fieldsetCommand(CommandType value) Sets the value of the 'command' field.setResponseCard(ResponseCard value) Sets the value of the 'responseCard' field.Sets the Builder instance for the 'responseCard' fieldMethods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getCommand
Gets the value of the 'command' field.- Returns:
- The value.
-
setCommand
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
Clears the value of the 'command' field.- Returns:
- This builder.
-
getCard
Gets the value of the 'card' field.- Returns:
- The value.
-
setCard
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
Gets the Builder instance for the 'card' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setCardBuilder
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
Clears the value of the 'card' field.- Returns:
- This builder.
-
getResponseCard
Gets the value of the 'responseCard' field.- Returns:
- The value.
-
setResponseCard
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
Gets the Builder instance for the 'responseCard' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setResponseCardBuilder
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
Clears the value of the 'responseCard' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<CardCommand>
-