Class RateDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<RateDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<RateDataV1>
org.apache.fineract.avro.portfolio.v1.RateDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<RateDataV1>
- Enclosing class:
RateDataV1
public static class RateDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<RateDataV1>
implements org.apache.avro.data.RecordBuilder<RateDataV1>
RecordBuilder for RateDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'active' field.clearId()Clears the value of the 'id' field.Clears the value of the 'name' field.Clears the value of the 'percentage' field.Clears the value of the 'productApply' field.Gets the value of the 'active' field.getId()Gets the value of the 'id' field.getName()Gets the value of the 'name' field.Gets the value of the 'percentage' field.Gets the value of the 'productApply' field.Gets the Builder instance for the 'productApply' field and creates one if it doesn't exist yet.booleanChecks whether the 'active' 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 'percentage' field has been set.booleanChecks whether the 'productApply' field has been set.booleanChecks whether the 'productApply' field has an active Builder instanceSets the value of the 'active' field.Sets the value of the 'id' field.Sets the value of the 'name' field.setPercentage(BigDecimal value) Sets the value of the 'percentage' field.setProductApply(EnumOptionDataV1 value) Sets the value of the 'productApply' field.Sets the Builder instance for the 'productApply' fieldMethods 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.
-
getPercentage
Gets the value of the 'percentage' field.- Returns:
- The value.
-
setPercentage
Sets the value of the 'percentage' field.- Parameters:
value- The value of 'percentage'.- Returns:
- This builder.
-
hasPercentage
public boolean hasPercentage()Checks whether the 'percentage' field has been set.- Returns:
- True if the 'percentage' field has been set, false otherwise.
-
clearPercentage
Clears the value of the 'percentage' field.- Returns:
- This builder.
-
getProductApply
Gets the value of the 'productApply' field.- Returns:
- The value.
-
setProductApply
Sets the value of the 'productApply' field.- Parameters:
value- The value of 'productApply'.- Returns:
- This builder.
-
hasProductApply
public boolean hasProductApply()Checks whether the 'productApply' field has been set.- Returns:
- True if the 'productApply' field has been set, false otherwise.
-
getProductApplyBuilder
Gets the Builder instance for the 'productApply' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setProductApplyBuilder
Sets the Builder instance for the 'productApply' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasProductApplyBuilder
public boolean hasProductApplyBuilder()Checks whether the 'productApply' field has an active Builder instance- Returns:
- True if the 'productApply' field has an active Builder instance
-
clearProductApply
Clears the value of the 'productApply' 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.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<RateDataV1>
-