Class OfficeDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<OfficeDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<OfficeDataV1>
org.apache.fineract.avro.office.v1.OfficeDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<OfficeDataV1>
- Enclosing class:
OfficeDataV1
public static class OfficeDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<OfficeDataV1>
implements org.apache.avro.data.RecordBuilder<OfficeDataV1>
RecordBuilder for OfficeDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'allowedParents' field.Clears the value of the 'externalId' field.Clears the value of the 'hierarchy' field.clearId()Clears the value of the 'id' field.Clears the value of the 'name' field.Clears the value of the 'nameDecorated' field.Clears the value of the 'openingDate' field.Clears the value of the 'parentId' field.Clears the value of the 'parentName' field.Gets the value of the 'allowedParents' field.Gets the value of the 'externalId' field.Gets the value of the 'hierarchy' field.getId()Gets the value of the 'id' field.getName()Gets the value of the 'name' field.Gets the value of the 'nameDecorated' field.Gets the value of the 'openingDate' field.Gets the value of the 'parentId' field.Gets the value of the 'parentName' field.booleanChecks whether the 'allowedParents' field has been set.booleanChecks whether the 'externalId' field has been set.booleanChecks whether the 'hierarchy' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'nameDecorated' field has been set.booleanChecks whether the 'openingDate' field has been set.booleanChecks whether the 'parentId' field has been set.booleanChecks whether the 'parentName' field has been set.setAllowedParents(List<OfficeDataV1> value) Sets the value of the 'allowedParents' field.setExternalId(String value) Sets the value of the 'externalId' field.setHierarchy(String value) Sets the value of the 'hierarchy' field.Sets the value of the 'id' field.Sets the value of the 'name' field.setNameDecorated(String value) Sets the value of the 'nameDecorated' field.setOpeningDate(String value) Sets the value of the 'openingDate' field.setParentId(Long value) Sets the value of the 'parentId' field.setParentName(String value) Sets the value of the 'parentName' 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.
-
getNameDecorated
Gets the value of the 'nameDecorated' field.- Returns:
- The value.
-
setNameDecorated
Sets the value of the 'nameDecorated' field.- Parameters:
value- The value of 'nameDecorated'.- Returns:
- This builder.
-
hasNameDecorated
public boolean hasNameDecorated()Checks whether the 'nameDecorated' field has been set.- Returns:
- True if the 'nameDecorated' field has been set, false otherwise.
-
clearNameDecorated
Clears the value of the 'nameDecorated' field.- Returns:
- This builder.
-
getExternalId
Gets the value of the 'externalId' field.- Returns:
- The value.
-
setExternalId
Sets the value of the 'externalId' field.- Parameters:
value- The value of 'externalId'.- Returns:
- This builder.
-
hasExternalId
public boolean hasExternalId()Checks whether the 'externalId' field has been set.- Returns:
- True if the 'externalId' field has been set, false otherwise.
-
clearExternalId
Clears the value of the 'externalId' field.- Returns:
- This builder.
-
getOpeningDate
Gets the value of the 'openingDate' field.- Returns:
- The value.
-
setOpeningDate
Sets the value of the 'openingDate' field.- Parameters:
value- The value of 'openingDate'.- Returns:
- This builder.
-
hasOpeningDate
public boolean hasOpeningDate()Checks whether the 'openingDate' field has been set.- Returns:
- True if the 'openingDate' field has been set, false otherwise.
-
clearOpeningDate
Clears the value of the 'openingDate' field.- Returns:
- This builder.
-
getHierarchy
Gets the value of the 'hierarchy' field.- Returns:
- The value.
-
setHierarchy
Sets the value of the 'hierarchy' field.- Parameters:
value- The value of 'hierarchy'.- Returns:
- This builder.
-
hasHierarchy
public boolean hasHierarchy()Checks whether the 'hierarchy' field has been set.- Returns:
- True if the 'hierarchy' field has been set, false otherwise.
-
clearHierarchy
Clears the value of the 'hierarchy' field.- Returns:
- This builder.
-
getParentId
Gets the value of the 'parentId' field.- Returns:
- The value.
-
setParentId
Sets the value of the 'parentId' field.- Parameters:
value- The value of 'parentId'.- Returns:
- This builder.
-
hasParentId
public boolean hasParentId()Checks whether the 'parentId' field has been set.- Returns:
- True if the 'parentId' field has been set, false otherwise.
-
clearParentId
Clears the value of the 'parentId' field.- Returns:
- This builder.
-
getParentName
Gets the value of the 'parentName' field.- Returns:
- The value.
-
setParentName
Sets the value of the 'parentName' field.- Parameters:
value- The value of 'parentName'.- Returns:
- This builder.
-
hasParentName
public boolean hasParentName()Checks whether the 'parentName' field has been set.- Returns:
- True if the 'parentName' field has been set, false otherwise.
-
clearParentName
Clears the value of the 'parentName' field.- Returns:
- This builder.
-
getAllowedParents
Gets the value of the 'allowedParents' field.- Returns:
- The value.
-
setAllowedParents
Sets the value of the 'allowedParents' field.- Parameters:
value- The value of 'allowedParents'.- Returns:
- This builder.
-
hasAllowedParents
public boolean hasAllowedParents()Checks whether the 'allowedParents' field has been set.- Returns:
- True if the 'allowedParents' field has been set, false otherwise.
-
clearAllowedParents
Clears the value of the 'allowedParents' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<OfficeDataV1>
-