Package org.apache.fineract.avro.loan.v1
Class LoanTransactionRelationDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<LoanTransactionRelationDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<LoanTransactionRelationDataV1>
org.apache.fineract.avro.loan.v1.LoanTransactionRelationDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<LoanTransactionRelationDataV1>
- Enclosing class:
LoanTransactionRelationDataV1
public static class LoanTransactionRelationDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<LoanTransactionRelationDataV1>
implements org.apache.avro.data.RecordBuilder<LoanTransactionRelationDataV1>
RecordBuilder for LoanTransactionRelationDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'amount' field.Clears the value of the 'fromLoanTransaction' field.Clears the value of the 'paymentType' field.Clears the value of the 'relationType' field.Clears the value of the 'toLoanCharge' field.Clears the value of the 'toLoanTransaction' field.Gets the value of the 'amount' field.longGets the value of the 'fromLoanTransaction' field.Gets the value of the 'paymentType' field.Gets the value of the 'relationType' field.Gets the value of the 'toLoanCharge' field.Gets the value of the 'toLoanTransaction' field.booleanChecks whether the 'amount' field has been set.booleanChecks whether the 'fromLoanTransaction' field has been set.booleanChecks whether the 'paymentType' field has been set.booleanChecks whether the 'relationType' field has been set.booleanChecks whether the 'toLoanCharge' field has been set.booleanChecks whether the 'toLoanTransaction' field has been set.setAmount(BigDecimal value) Sets the value of the 'amount' field.setFromLoanTransaction(long value) Sets the value of the 'fromLoanTransaction' field.setPaymentType(String value) Sets the value of the 'paymentType' field.setRelationType(String value) Sets the value of the 'relationType' field.setToLoanCharge(Long value) Sets the value of the 'toLoanCharge' field.setToLoanTransaction(Long value) Sets the value of the 'toLoanTransaction' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getFromLoanTransaction
public long getFromLoanTransaction()Gets the value of the 'fromLoanTransaction' field.- Returns:
- The value.
-
setFromLoanTransaction
Sets the value of the 'fromLoanTransaction' field.- Parameters:
value- The value of 'fromLoanTransaction'.- Returns:
- This builder.
-
hasFromLoanTransaction
public boolean hasFromLoanTransaction()Checks whether the 'fromLoanTransaction' field has been set.- Returns:
- True if the 'fromLoanTransaction' field has been set, false otherwise.
-
clearFromLoanTransaction
Clears the value of the 'fromLoanTransaction' field.- Returns:
- This builder.
-
getToLoanTransaction
Gets the value of the 'toLoanTransaction' field.- Returns:
- The value.
-
setToLoanTransaction
Sets the value of the 'toLoanTransaction' field.- Parameters:
value- The value of 'toLoanTransaction'.- Returns:
- This builder.
-
hasToLoanTransaction
public boolean hasToLoanTransaction()Checks whether the 'toLoanTransaction' field has been set.- Returns:
- True if the 'toLoanTransaction' field has been set, false otherwise.
-
clearToLoanTransaction
Clears the value of the 'toLoanTransaction' field.- Returns:
- This builder.
-
getToLoanCharge
Gets the value of the 'toLoanCharge' field.- Returns:
- The value.
-
setToLoanCharge
Sets the value of the 'toLoanCharge' field.- Parameters:
value- The value of 'toLoanCharge'.- Returns:
- This builder.
-
hasToLoanCharge
public boolean hasToLoanCharge()Checks whether the 'toLoanCharge' field has been set.- Returns:
- True if the 'toLoanCharge' field has been set, false otherwise.
-
clearToLoanCharge
Clears the value of the 'toLoanCharge' field.- Returns:
- This builder.
-
getAmount
Gets the value of the 'amount' field.- Returns:
- The value.
-
setAmount
Sets the value of the 'amount' field.- Parameters:
value- The value of 'amount'.- Returns:
- This builder.
-
hasAmount
public boolean hasAmount()Checks whether the 'amount' field has been set.- Returns:
- True if the 'amount' field has been set, false otherwise.
-
clearAmount
Clears the value of the 'amount' field.- Returns:
- This builder.
-
getRelationType
Gets the value of the 'relationType' field.- Returns:
- The value.
-
setRelationType
Sets the value of the 'relationType' field.- Parameters:
value- The value of 'relationType'.- Returns:
- This builder.
-
hasRelationType
public boolean hasRelationType()Checks whether the 'relationType' field has been set.- Returns:
- True if the 'relationType' field has been set, false otherwise.
-
clearRelationType
Clears the value of the 'relationType' field.- Returns:
- This builder.
-
getPaymentType
Gets the value of the 'paymentType' field.- Returns:
- The value.
-
setPaymentType
Sets the value of the 'paymentType' field.- Parameters:
value- The value of 'paymentType'.- Returns:
- This builder.
-
hasPaymentType
public boolean hasPaymentType()Checks whether the 'paymentType' field has been set.- Returns:
- True if the 'paymentType' field has been set, false otherwise.
-
clearPaymentType
Clears the value of the 'paymentType' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<LoanTransactionRelationDataV1>
-