Class CodeValueDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<CodeValueDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<CodeValueDataV1>
org.apache.fineract.avro.generic.v1.CodeValueDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<CodeValueDataV1>
- Enclosing class:
CodeValueDataV1
public static class CodeValueDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<CodeValueDataV1>
implements org.apache.avro.data.RecordBuilder<CodeValueDataV1>
RecordBuilder for CodeValueDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'active' field.Clears the value of the 'description' field.clearId()Clears the value of the 'id' field.Clears the value of the 'mandatory' field.Clears the value of the 'name' field.Clears the value of the 'position' field.Gets the value of the 'active' field.Gets the value of the 'description' field.getId()Gets the value of the 'id' field.Gets the value of the 'mandatory' field.getName()Gets the value of the 'name' field.Gets the value of the 'position' field.booleanChecks whether the 'active' field has been set.booleanChecks whether the 'description' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanChecks whether the 'mandatory' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'position' field has been set.Sets the value of the 'active' field.setDescription(String value) Sets the value of the 'description' field.Sets the value of the 'id' field.setMandatory(Boolean value) Sets the value of the 'mandatory' field.Sets the value of the 'name' field.setPosition(Integer value) Sets the value of the 'position' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getId
Gets the value of the 'id' field.- Returns:
- The value.
-
setId
Sets the value of the 'id' field.- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set.- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' field.- Returns:
- This builder.
-
getName
Gets the value of the 'name' field.- Returns:
- The value.
-
setName
Sets the value of the 'name' field.- Parameters:
value- The value of 'name'.- Returns:
- This builder.
-
hasName
public boolean hasName()Checks whether the 'name' field has been set.- Returns:
- True if the 'name' field has been set, false otherwise.
-
clearName
Clears the value of the 'name' field.- Returns:
- This builder.
-
getPosition
Gets the value of the 'position' field.- Returns:
- The value.
-
setPosition
Sets the value of the 'position' field.- Parameters:
value- The value of 'position'.- Returns:
- This builder.
-
hasPosition
public boolean hasPosition()Checks whether the 'position' field has been set.- Returns:
- True if the 'position' field has been set, false otherwise.
-
clearPosition
Clears the value of the 'position' field.- Returns:
- This builder.
-
getDescription
Gets the value of the 'description' field.- Returns:
- The value.
-
setDescription
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
Clears the value of the 'description' field.- Returns:
- This builder.
-
getActive
Gets the value of the 'active' field.- Returns:
- The value.
-
setActive
Sets the value of the 'active' field.- Parameters:
value- The value of 'active'.- Returns:
- This builder.
-
hasActive
public boolean hasActive()Checks whether the 'active' field has been set.- Returns:
- True if the 'active' field has been set, false otherwise.
-
clearActive
Clears the value of the 'active' field.- Returns:
- This builder.
-
getMandatory
Gets the value of the 'mandatory' field.- Returns:
- The value.
-
setMandatory
Sets the value of the 'mandatory' field.- Parameters:
value- The value of 'mandatory'.- Returns:
- This builder.
-
hasMandatory
public boolean hasMandatory()Checks whether the 'mandatory' field has been set.- Returns:
- True if the 'mandatory' field has been set, false otherwise.
-
clearMandatory
Clears the value of the 'mandatory' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<CodeValueDataV1>
-