Class ChargeDataV1.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<ChargeDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<ChargeDataV1>
org.apache.fineract.avro.portfolio.v1.ChargeDataV1.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<ChargeDataV1>
Enclosing class:
ChargeDataV1

public static class ChargeDataV1.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<ChargeDataV1> implements org.apache.avro.data.RecordBuilder<ChargeDataV1>
RecordBuilder for ChargeDataV1 instances.
  • Method Details

    • getId

      public Long getId()
      Gets the value of the 'id' field.
      Returns:
      The value.
    • setId

      public ChargeDataV1.Builder setId(Long value)
      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

      public ChargeDataV1.Builder clearId()
      Clears the value of the 'id' field.
      Returns:
      This builder.
    • getName

      public String getName()
      Gets the value of the 'name' field.
      Returns:
      The value.
    • setName

      public ChargeDataV1.Builder setName(String value)
      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

      public ChargeDataV1.Builder clearName()
      Clears the value of the 'name' field.
      Returns:
      This builder.
    • getActive

      public Boolean getActive()
      Gets the value of the 'active' field.
      Returns:
      The value.
    • setActive

      public ChargeDataV1.Builder setActive(Boolean value)
      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

      public ChargeDataV1.Builder clearActive()
      Clears the value of the 'active' field.
      Returns:
      This builder.
    • getPenalty

      public Boolean getPenalty()
      Gets the value of the 'penalty' field.
      Returns:
      The value.
    • setPenalty

      public ChargeDataV1.Builder setPenalty(Boolean value)
      Sets the value of the 'penalty' field.
      Parameters:
      value - The value of 'penalty'.
      Returns:
      This builder.
    • hasPenalty

      public boolean hasPenalty()
      Checks whether the 'penalty' field has been set.
      Returns:
      True if the 'penalty' field has been set, false otherwise.
    • clearPenalty

      public ChargeDataV1.Builder clearPenalty()
      Clears the value of the 'penalty' field.
      Returns:
      This builder.
    • getFreeWithdrawal

      public Boolean getFreeWithdrawal()
      Gets the value of the 'freeWithdrawal' field.
      Returns:
      The value.
    • setFreeWithdrawal

      public ChargeDataV1.Builder setFreeWithdrawal(Boolean value)
      Sets the value of the 'freeWithdrawal' field.
      Parameters:
      value - The value of 'freeWithdrawal'.
      Returns:
      This builder.
    • hasFreeWithdrawal

      public boolean hasFreeWithdrawal()
      Checks whether the 'freeWithdrawal' field has been set.
      Returns:
      True if the 'freeWithdrawal' field has been set, false otherwise.
    • clearFreeWithdrawal

      public ChargeDataV1.Builder clearFreeWithdrawal()
      Clears the value of the 'freeWithdrawal' field.
      Returns:
      This builder.
    • getFreeWithdrawalChargeFrequency

      public Integer getFreeWithdrawalChargeFrequency()
      Gets the value of the 'freeWithdrawalChargeFrequency' field.
      Returns:
      The value.
    • setFreeWithdrawalChargeFrequency

      public ChargeDataV1.Builder setFreeWithdrawalChargeFrequency(Integer value)
      Sets the value of the 'freeWithdrawalChargeFrequency' field.
      Parameters:
      value - The value of 'freeWithdrawalChargeFrequency'.
      Returns:
      This builder.
    • hasFreeWithdrawalChargeFrequency

      public boolean hasFreeWithdrawalChargeFrequency()
      Checks whether the 'freeWithdrawalChargeFrequency' field has been set.
      Returns:
      True if the 'freeWithdrawalChargeFrequency' field has been set, false otherwise.
    • clearFreeWithdrawalChargeFrequency

      public ChargeDataV1.Builder clearFreeWithdrawalChargeFrequency()
      Clears the value of the 'freeWithdrawalChargeFrequency' field.
      Returns:
      This builder.
    • getRestartFrequency

      public Integer getRestartFrequency()
      Gets the value of the 'restartFrequency' field.
      Returns:
      The value.
    • setRestartFrequency

      public ChargeDataV1.Builder setRestartFrequency(Integer value)
      Sets the value of the 'restartFrequency' field.
      Parameters:
      value - The value of 'restartFrequency'.
      Returns:
      This builder.
    • hasRestartFrequency

      public boolean hasRestartFrequency()
      Checks whether the 'restartFrequency' field has been set.
      Returns:
      True if the 'restartFrequency' field has been set, false otherwise.
    • clearRestartFrequency

      public ChargeDataV1.Builder clearRestartFrequency()
      Clears the value of the 'restartFrequency' field.
      Returns:
      This builder.
    • getRestartFrequencyEnum

      public Integer getRestartFrequencyEnum()
      Gets the value of the 'restartFrequencyEnum' field.
      Returns:
      The value.
    • setRestartFrequencyEnum

      public ChargeDataV1.Builder setRestartFrequencyEnum(Integer value)
      Sets the value of the 'restartFrequencyEnum' field.
      Parameters:
      value - The value of 'restartFrequencyEnum'.
      Returns:
      This builder.
    • hasRestartFrequencyEnum

      public boolean hasRestartFrequencyEnum()
      Checks whether the 'restartFrequencyEnum' field has been set.
      Returns:
      True if the 'restartFrequencyEnum' field has been set, false otherwise.
    • clearRestartFrequencyEnum

      public ChargeDataV1.Builder clearRestartFrequencyEnum()
      Clears the value of the 'restartFrequencyEnum' field.
      Returns:
      This builder.
    • getIsPaymentType

      public Boolean getIsPaymentType()
      Gets the value of the 'isPaymentType' field.
      Returns:
      The value.
    • setIsPaymentType

      public ChargeDataV1.Builder setIsPaymentType(Boolean value)
      Sets the value of the 'isPaymentType' field.
      Parameters:
      value - The value of 'isPaymentType'.
      Returns:
      This builder.
    • hasIsPaymentType

      public boolean hasIsPaymentType()
      Checks whether the 'isPaymentType' field has been set.
      Returns:
      True if the 'isPaymentType' field has been set, false otherwise.
    • clearIsPaymentType

      public ChargeDataV1.Builder clearIsPaymentType()
      Clears the value of the 'isPaymentType' field.
      Returns:
      This builder.
    • getPaymentTypeOptions

      public PaymentTypeDataV1 getPaymentTypeOptions()
      Gets the value of the 'paymentTypeOptions' field.
      Returns:
      The value.
    • setPaymentTypeOptions

      public ChargeDataV1.Builder setPaymentTypeOptions(PaymentTypeDataV1 value)
      Sets the value of the 'paymentTypeOptions' field.
      Parameters:
      value - The value of 'paymentTypeOptions'.
      Returns:
      This builder.
    • hasPaymentTypeOptions

      public boolean hasPaymentTypeOptions()
      Checks whether the 'paymentTypeOptions' field has been set.
      Returns:
      True if the 'paymentTypeOptions' field has been set, false otherwise.
    • getPaymentTypeOptionsBuilder

      public PaymentTypeDataV1.Builder getPaymentTypeOptionsBuilder()
      Gets the Builder instance for the 'paymentTypeOptions' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setPaymentTypeOptionsBuilder

      public ChargeDataV1.Builder setPaymentTypeOptionsBuilder(PaymentTypeDataV1.Builder value)
      Sets the Builder instance for the 'paymentTypeOptions' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasPaymentTypeOptionsBuilder

      public boolean hasPaymentTypeOptionsBuilder()
      Checks whether the 'paymentTypeOptions' field has an active Builder instance
      Returns:
      True if the 'paymentTypeOptions' field has an active Builder instance
    • clearPaymentTypeOptions

      public ChargeDataV1.Builder clearPaymentTypeOptions()
      Clears the value of the 'paymentTypeOptions' field.
      Returns:
      This builder.
    • getCurrency

      public CurrencyDataV1 getCurrency()
      Gets the value of the 'currency' field.
      Returns:
      The value.
    • setCurrency

      public ChargeDataV1.Builder setCurrency(CurrencyDataV1 value)
      Sets the value of the 'currency' field.
      Parameters:
      value - The value of 'currency'.
      Returns:
      This builder.
    • hasCurrency

      public boolean hasCurrency()
      Checks whether the 'currency' field has been set.
      Returns:
      True if the 'currency' field has been set, false otherwise.
    • getCurrencyBuilder

      public CurrencyDataV1.Builder getCurrencyBuilder()
      Gets the Builder instance for the 'currency' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setCurrencyBuilder

      public ChargeDataV1.Builder setCurrencyBuilder(CurrencyDataV1.Builder value)
      Sets the Builder instance for the 'currency' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasCurrencyBuilder

      public boolean hasCurrencyBuilder()
      Checks whether the 'currency' field has an active Builder instance
      Returns:
      True if the 'currency' field has an active Builder instance
    • clearCurrency

      public ChargeDataV1.Builder clearCurrency()
      Clears the value of the 'currency' field.
      Returns:
      This builder.
    • getAmount

      public BigDecimal getAmount()
      Gets the value of the 'amount' field.
      Returns:
      The value.
    • setAmount

      public ChargeDataV1.Builder setAmount(BigDecimal value)
      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

      public ChargeDataV1.Builder clearAmount()
      Clears the value of the 'amount' field.
      Returns:
      This builder.
    • getChargeTimeType

      public EnumOptionDataV1 getChargeTimeType()
      Gets the value of the 'chargeTimeType' field.
      Returns:
      The value.
    • setChargeTimeType

      public ChargeDataV1.Builder setChargeTimeType(EnumOptionDataV1 value)
      Sets the value of the 'chargeTimeType' field.
      Parameters:
      value - The value of 'chargeTimeType'.
      Returns:
      This builder.
    • hasChargeTimeType

      public boolean hasChargeTimeType()
      Checks whether the 'chargeTimeType' field has been set.
      Returns:
      True if the 'chargeTimeType' field has been set, false otherwise.
    • getChargeTimeTypeBuilder

      public EnumOptionDataV1.Builder getChargeTimeTypeBuilder()
      Gets the Builder instance for the 'chargeTimeType' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setChargeTimeTypeBuilder

      public ChargeDataV1.Builder setChargeTimeTypeBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'chargeTimeType' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasChargeTimeTypeBuilder

      public boolean hasChargeTimeTypeBuilder()
      Checks whether the 'chargeTimeType' field has an active Builder instance
      Returns:
      True if the 'chargeTimeType' field has an active Builder instance
    • clearChargeTimeType

      public ChargeDataV1.Builder clearChargeTimeType()
      Clears the value of the 'chargeTimeType' field.
      Returns:
      This builder.
    • getChargeAppliesTo

      public EnumOptionDataV1 getChargeAppliesTo()
      Gets the value of the 'chargeAppliesTo' field.
      Returns:
      The value.
    • setChargeAppliesTo

      public ChargeDataV1.Builder setChargeAppliesTo(EnumOptionDataV1 value)
      Sets the value of the 'chargeAppliesTo' field.
      Parameters:
      value - The value of 'chargeAppliesTo'.
      Returns:
      This builder.
    • hasChargeAppliesTo

      public boolean hasChargeAppliesTo()
      Checks whether the 'chargeAppliesTo' field has been set.
      Returns:
      True if the 'chargeAppliesTo' field has been set, false otherwise.
    • getChargeAppliesToBuilder

      public EnumOptionDataV1.Builder getChargeAppliesToBuilder()
      Gets the Builder instance for the 'chargeAppliesTo' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setChargeAppliesToBuilder

      public ChargeDataV1.Builder setChargeAppliesToBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'chargeAppliesTo' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasChargeAppliesToBuilder

      public boolean hasChargeAppliesToBuilder()
      Checks whether the 'chargeAppliesTo' field has an active Builder instance
      Returns:
      True if the 'chargeAppliesTo' field has an active Builder instance
    • clearChargeAppliesTo

      public ChargeDataV1.Builder clearChargeAppliesTo()
      Clears the value of the 'chargeAppliesTo' field.
      Returns:
      This builder.
    • getChargeCalculationType

      public EnumOptionDataV1 getChargeCalculationType()
      Gets the value of the 'chargeCalculationType' field.
      Returns:
      The value.
    • setChargeCalculationType

      public ChargeDataV1.Builder setChargeCalculationType(EnumOptionDataV1 value)
      Sets the value of the 'chargeCalculationType' field.
      Parameters:
      value - The value of 'chargeCalculationType'.
      Returns:
      This builder.
    • hasChargeCalculationType

      public boolean hasChargeCalculationType()
      Checks whether the 'chargeCalculationType' field has been set.
      Returns:
      True if the 'chargeCalculationType' field has been set, false otherwise.
    • getChargeCalculationTypeBuilder

      public EnumOptionDataV1.Builder getChargeCalculationTypeBuilder()
      Gets the Builder instance for the 'chargeCalculationType' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setChargeCalculationTypeBuilder

      public ChargeDataV1.Builder setChargeCalculationTypeBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'chargeCalculationType' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasChargeCalculationTypeBuilder

      public boolean hasChargeCalculationTypeBuilder()
      Checks whether the 'chargeCalculationType' field has an active Builder instance
      Returns:
      True if the 'chargeCalculationType' field has an active Builder instance
    • clearChargeCalculationType

      public ChargeDataV1.Builder clearChargeCalculationType()
      Clears the value of the 'chargeCalculationType' field.
      Returns:
      This builder.
    • getChargePaymentMode

      public EnumOptionDataV1 getChargePaymentMode()
      Gets the value of the 'chargePaymentMode' field.
      Returns:
      The value.
    • setChargePaymentMode

      public ChargeDataV1.Builder setChargePaymentMode(EnumOptionDataV1 value)
      Sets the value of the 'chargePaymentMode' field.
      Parameters:
      value - The value of 'chargePaymentMode'.
      Returns:
      This builder.
    • hasChargePaymentMode

      public boolean hasChargePaymentMode()
      Checks whether the 'chargePaymentMode' field has been set.
      Returns:
      True if the 'chargePaymentMode' field has been set, false otherwise.
    • getChargePaymentModeBuilder

      public EnumOptionDataV1.Builder getChargePaymentModeBuilder()
      Gets the Builder instance for the 'chargePaymentMode' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setChargePaymentModeBuilder

      public ChargeDataV1.Builder setChargePaymentModeBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'chargePaymentMode' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasChargePaymentModeBuilder

      public boolean hasChargePaymentModeBuilder()
      Checks whether the 'chargePaymentMode' field has an active Builder instance
      Returns:
      True if the 'chargePaymentMode' field has an active Builder instance
    • clearChargePaymentMode

      public ChargeDataV1.Builder clearChargePaymentMode()
      Clears the value of the 'chargePaymentMode' field.
      Returns:
      This builder.
    • getFeeOnMonthDay

      public String getFeeOnMonthDay()
      Gets the value of the 'feeOnMonthDay' field.
      Returns:
      The value.
    • setFeeOnMonthDay

      public ChargeDataV1.Builder setFeeOnMonthDay(String value)
      Sets the value of the 'feeOnMonthDay' field.
      Parameters:
      value - The value of 'feeOnMonthDay'.
      Returns:
      This builder.
    • hasFeeOnMonthDay

      public boolean hasFeeOnMonthDay()
      Checks whether the 'feeOnMonthDay' field has been set.
      Returns:
      True if the 'feeOnMonthDay' field has been set, false otherwise.
    • clearFeeOnMonthDay

      public ChargeDataV1.Builder clearFeeOnMonthDay()
      Clears the value of the 'feeOnMonthDay' field.
      Returns:
      This builder.
    • getFeeInterval

      public Integer getFeeInterval()
      Gets the value of the 'feeInterval' field.
      Returns:
      The value.
    • setFeeInterval

      public ChargeDataV1.Builder setFeeInterval(Integer value)
      Sets the value of the 'feeInterval' field.
      Parameters:
      value - The value of 'feeInterval'.
      Returns:
      This builder.
    • hasFeeInterval

      public boolean hasFeeInterval()
      Checks whether the 'feeInterval' field has been set.
      Returns:
      True if the 'feeInterval' field has been set, false otherwise.
    • clearFeeInterval

      public ChargeDataV1.Builder clearFeeInterval()
      Clears the value of the 'feeInterval' field.
      Returns:
      This builder.
    • getMinCap

      public BigDecimal getMinCap()
      Gets the value of the 'minCap' field.
      Returns:
      The value.
    • setMinCap

      public ChargeDataV1.Builder setMinCap(BigDecimal value)
      Sets the value of the 'minCap' field.
      Parameters:
      value - The value of 'minCap'.
      Returns:
      This builder.
    • hasMinCap

      public boolean hasMinCap()
      Checks whether the 'minCap' field has been set.
      Returns:
      True if the 'minCap' field has been set, false otherwise.
    • clearMinCap

      public ChargeDataV1.Builder clearMinCap()
      Clears the value of the 'minCap' field.
      Returns:
      This builder.
    • getMaxCap

      public BigDecimal getMaxCap()
      Gets the value of the 'maxCap' field.
      Returns:
      The value.
    • setMaxCap

      public ChargeDataV1.Builder setMaxCap(BigDecimal value)
      Sets the value of the 'maxCap' field.
      Parameters:
      value - The value of 'maxCap'.
      Returns:
      This builder.
    • hasMaxCap

      public boolean hasMaxCap()
      Checks whether the 'maxCap' field has been set.
      Returns:
      True if the 'maxCap' field has been set, false otherwise.
    • clearMaxCap

      public ChargeDataV1.Builder clearMaxCap()
      Clears the value of the 'maxCap' field.
      Returns:
      This builder.
    • getFeeFrequency

      public EnumOptionDataV1 getFeeFrequency()
      Gets the value of the 'feeFrequency' field.
      Returns:
      The value.
    • setFeeFrequency

      public ChargeDataV1.Builder setFeeFrequency(EnumOptionDataV1 value)
      Sets the value of the 'feeFrequency' field.
      Parameters:
      value - The value of 'feeFrequency'.
      Returns:
      This builder.
    • hasFeeFrequency

      public boolean hasFeeFrequency()
      Checks whether the 'feeFrequency' field has been set.
      Returns:
      True if the 'feeFrequency' field has been set, false otherwise.
    • getFeeFrequencyBuilder

      public EnumOptionDataV1.Builder getFeeFrequencyBuilder()
      Gets the Builder instance for the 'feeFrequency' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setFeeFrequencyBuilder

      public ChargeDataV1.Builder setFeeFrequencyBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'feeFrequency' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasFeeFrequencyBuilder

      public boolean hasFeeFrequencyBuilder()
      Checks whether the 'feeFrequency' field has an active Builder instance
      Returns:
      True if the 'feeFrequency' field has an active Builder instance
    • clearFeeFrequency

      public ChargeDataV1.Builder clearFeeFrequency()
      Clears the value of the 'feeFrequency' field.
      Returns:
      This builder.
    • getIncomeOrLiabilityAccount

      public GLAccountDataV1 getIncomeOrLiabilityAccount()
      Gets the value of the 'incomeOrLiabilityAccount' field.
      Returns:
      The value.
    • setIncomeOrLiabilityAccount

      public ChargeDataV1.Builder setIncomeOrLiabilityAccount(GLAccountDataV1 value)
      Sets the value of the 'incomeOrLiabilityAccount' field.
      Parameters:
      value - The value of 'incomeOrLiabilityAccount'.
      Returns:
      This builder.
    • hasIncomeOrLiabilityAccount

      public boolean hasIncomeOrLiabilityAccount()
      Checks whether the 'incomeOrLiabilityAccount' field has been set.
      Returns:
      True if the 'incomeOrLiabilityAccount' field has been set, false otherwise.
    • getIncomeOrLiabilityAccountBuilder

      public GLAccountDataV1.Builder getIncomeOrLiabilityAccountBuilder()
      Gets the Builder instance for the 'incomeOrLiabilityAccount' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setIncomeOrLiabilityAccountBuilder

      public ChargeDataV1.Builder setIncomeOrLiabilityAccountBuilder(GLAccountDataV1.Builder value)
      Sets the Builder instance for the 'incomeOrLiabilityAccount' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasIncomeOrLiabilityAccountBuilder

      public boolean hasIncomeOrLiabilityAccountBuilder()
      Checks whether the 'incomeOrLiabilityAccount' field has an active Builder instance
      Returns:
      True if the 'incomeOrLiabilityAccount' field has an active Builder instance
    • clearIncomeOrLiabilityAccount

      public ChargeDataV1.Builder clearIncomeOrLiabilityAccount()
      Clears the value of the 'incomeOrLiabilityAccount' field.
      Returns:
      This builder.
    • build

      public ChargeDataV1 build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<ChargeDataV1>