Class ShareProductDataV1.Builder

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

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

    • getId

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

      public ShareProductDataV1.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 ShareProductDataV1.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 ShareProductDataV1.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 ShareProductDataV1.Builder clearName()
      Clears the value of the 'name' field.
      Returns:
      This builder.
    • getShortName

      public String getShortName()
      Gets the value of the 'shortName' field.
      Returns:
      The value.
    • setShortName

      public ShareProductDataV1.Builder setShortName(String value)
      Sets the value of the 'shortName' field.
      Parameters:
      value - The value of 'shortName'.
      Returns:
      This builder.
    • hasShortName

      public boolean hasShortName()
      Checks whether the 'shortName' field has been set.
      Returns:
      True if the 'shortName' field has been set, false otherwise.
    • clearShortName

      public ShareProductDataV1.Builder clearShortName()
      Clears the value of the 'shortName' field.
      Returns:
      This builder.
    • getDescription

      public String getDescription()
      Gets the value of the 'description' field.
      Returns:
      The value.
    • setDescription

      public ShareProductDataV1.Builder setDescription(String value)
      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

      public ShareProductDataV1.Builder clearDescription()
      Clears the value of the 'description' field.
      Returns:
      This builder.
    • getExternalId

      public String getExternalId()
      Gets the value of the 'externalId' field.
      Returns:
      The value.
    • setExternalId

      public ShareProductDataV1.Builder setExternalId(String value)
      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

      public ShareProductDataV1.Builder clearExternalId()
      Clears the value of the 'externalId' field.
      Returns:
      This builder.
    • getCurrency

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

      public ShareProductDataV1.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 ShareProductDataV1.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 ShareProductDataV1.Builder clearCurrency()
      Clears the value of the 'currency' field.
      Returns:
      This builder.
    • getTotalShares

      public Long getTotalShares()
      Gets the value of the 'totalShares' field.
      Returns:
      The value.
    • setTotalShares

      public ShareProductDataV1.Builder setTotalShares(Long value)
      Sets the value of the 'totalShares' field.
      Parameters:
      value - The value of 'totalShares'.
      Returns:
      This builder.
    • hasTotalShares

      public boolean hasTotalShares()
      Checks whether the 'totalShares' field has been set.
      Returns:
      True if the 'totalShares' field has been set, false otherwise.
    • clearTotalShares

      public ShareProductDataV1.Builder clearTotalShares()
      Clears the value of the 'totalShares' field.
      Returns:
      This builder.
    • getTotalSharesIssued

      public Long getTotalSharesIssued()
      Gets the value of the 'totalSharesIssued' field.
      Returns:
      The value.
    • setTotalSharesIssued

      public ShareProductDataV1.Builder setTotalSharesIssued(Long value)
      Sets the value of the 'totalSharesIssued' field.
      Parameters:
      value - The value of 'totalSharesIssued'.
      Returns:
      This builder.
    • hasTotalSharesIssued

      public boolean hasTotalSharesIssued()
      Checks whether the 'totalSharesIssued' field has been set.
      Returns:
      True if the 'totalSharesIssued' field has been set, false otherwise.
    • clearTotalSharesIssued

      public ShareProductDataV1.Builder clearTotalSharesIssued()
      Clears the value of the 'totalSharesIssued' field.
      Returns:
      This builder.
    • getUnitPrice

      public BigDecimal getUnitPrice()
      Gets the value of the 'unitPrice' field.
      Returns:
      The value.
    • setUnitPrice

      public ShareProductDataV1.Builder setUnitPrice(BigDecimal value)
      Sets the value of the 'unitPrice' field.
      Parameters:
      value - The value of 'unitPrice'.
      Returns:
      This builder.
    • hasUnitPrice

      public boolean hasUnitPrice()
      Checks whether the 'unitPrice' field has been set.
      Returns:
      True if the 'unitPrice' field has been set, false otherwise.
    • clearUnitPrice

      public ShareProductDataV1.Builder clearUnitPrice()
      Clears the value of the 'unitPrice' field.
      Returns:
      This builder.
    • getShareCapital

      public BigDecimal getShareCapital()
      Gets the value of the 'shareCapital' field.
      Returns:
      The value.
    • setShareCapital

      public ShareProductDataV1.Builder setShareCapital(BigDecimal value)
      Sets the value of the 'shareCapital' field.
      Parameters:
      value - The value of 'shareCapital'.
      Returns:
      This builder.
    • hasShareCapital

      public boolean hasShareCapital()
      Checks whether the 'shareCapital' field has been set.
      Returns:
      True if the 'shareCapital' field has been set, false otherwise.
    • clearShareCapital

      public ShareProductDataV1.Builder clearShareCapital()
      Clears the value of the 'shareCapital' field.
      Returns:
      This builder.
    • getMinimumShares

      public Long getMinimumShares()
      Gets the value of the 'minimumShares' field.
      Returns:
      The value.
    • setMinimumShares

      public ShareProductDataV1.Builder setMinimumShares(Long value)
      Sets the value of the 'minimumShares' field.
      Parameters:
      value - The value of 'minimumShares'.
      Returns:
      This builder.
    • hasMinimumShares

      public boolean hasMinimumShares()
      Checks whether the 'minimumShares' field has been set.
      Returns:
      True if the 'minimumShares' field has been set, false otherwise.
    • clearMinimumShares

      public ShareProductDataV1.Builder clearMinimumShares()
      Clears the value of the 'minimumShares' field.
      Returns:
      This builder.
    • getNominalShares

      public Long getNominalShares()
      Gets the value of the 'nominalShares' field.
      Returns:
      The value.
    • setNominalShares

      public ShareProductDataV1.Builder setNominalShares(Long value)
      Sets the value of the 'nominalShares' field.
      Parameters:
      value - The value of 'nominalShares'.
      Returns:
      This builder.
    • hasNominalShares

      public boolean hasNominalShares()
      Checks whether the 'nominalShares' field has been set.
      Returns:
      True if the 'nominalShares' field has been set, false otherwise.
    • clearNominalShares

      public ShareProductDataV1.Builder clearNominalShares()
      Clears the value of the 'nominalShares' field.
      Returns:
      This builder.
    • getMaximumShares

      public Long getMaximumShares()
      Gets the value of the 'maximumShares' field.
      Returns:
      The value.
    • setMaximumShares

      public ShareProductDataV1.Builder setMaximumShares(Long value)
      Sets the value of the 'maximumShares' field.
      Parameters:
      value - The value of 'maximumShares'.
      Returns:
      This builder.
    • hasMaximumShares

      public boolean hasMaximumShares()
      Checks whether the 'maximumShares' field has been set.
      Returns:
      True if the 'maximumShares' field has been set, false otherwise.
    • clearMaximumShares

      public ShareProductDataV1.Builder clearMaximumShares()
      Clears the value of the 'maximumShares' field.
      Returns:
      This builder.
    • getMarketPrice

      public List<ShareProductMarketPriceDataV1> getMarketPrice()
      Gets the value of the 'marketPrice' field.
      Returns:
      The value.
    • setMarketPrice

      Sets the value of the 'marketPrice' field.
      Parameters:
      value - The value of 'marketPrice'.
      Returns:
      This builder.
    • hasMarketPrice

      public boolean hasMarketPrice()
      Checks whether the 'marketPrice' field has been set.
      Returns:
      True if the 'marketPrice' field has been set, false otherwise.
    • clearMarketPrice

      public ShareProductDataV1.Builder clearMarketPrice()
      Clears the value of the 'marketPrice' field.
      Returns:
      This builder.
    • getCharges

      public List<ChargeDataV1> getCharges()
      Gets the value of the 'charges' field.
      Returns:
      The value.
    • setCharges

      public ShareProductDataV1.Builder setCharges(List<ChargeDataV1> value)
      Sets the value of the 'charges' field.
      Parameters:
      value - The value of 'charges'.
      Returns:
      This builder.
    • hasCharges

      public boolean hasCharges()
      Checks whether the 'charges' field has been set.
      Returns:
      True if the 'charges' field has been set, false otherwise.
    • clearCharges

      public ShareProductDataV1.Builder clearCharges()
      Clears the value of the 'charges' field.
      Returns:
      This builder.
    • getAllowDividendCalculationForInactiveClients

      public Boolean getAllowDividendCalculationForInactiveClients()
      Gets the value of the 'allowDividendCalculationForInactiveClients' field.
      Returns:
      The value.
    • setAllowDividendCalculationForInactiveClients

      public ShareProductDataV1.Builder setAllowDividendCalculationForInactiveClients(Boolean value)
      Sets the value of the 'allowDividendCalculationForInactiveClients' field.
      Parameters:
      value - The value of 'allowDividendCalculationForInactiveClients'.
      Returns:
      This builder.
    • hasAllowDividendCalculationForInactiveClients

      public boolean hasAllowDividendCalculationForInactiveClients()
      Checks whether the 'allowDividendCalculationForInactiveClients' field has been set.
      Returns:
      True if the 'allowDividendCalculationForInactiveClients' field has been set, false otherwise.
    • clearAllowDividendCalculationForInactiveClients

      public ShareProductDataV1.Builder clearAllowDividendCalculationForInactiveClients()
      Clears the value of the 'allowDividendCalculationForInactiveClients' field.
      Returns:
      This builder.
    • getLockinPeriod

      public Integer getLockinPeriod()
      Gets the value of the 'lockinPeriod' field.
      Returns:
      The value.
    • setLockinPeriod

      public ShareProductDataV1.Builder setLockinPeriod(Integer value)
      Sets the value of the 'lockinPeriod' field.
      Parameters:
      value - The value of 'lockinPeriod'.
      Returns:
      This builder.
    • hasLockinPeriod

      public boolean hasLockinPeriod()
      Checks whether the 'lockinPeriod' field has been set.
      Returns:
      True if the 'lockinPeriod' field has been set, false otherwise.
    • clearLockinPeriod

      public ShareProductDataV1.Builder clearLockinPeriod()
      Clears the value of the 'lockinPeriod' field.
      Returns:
      This builder.
    • getLockPeriodTypeEnum

      public EnumOptionDataV1 getLockPeriodTypeEnum()
      Gets the value of the 'lockPeriodTypeEnum' field.
      Returns:
      The value.
    • setLockPeriodTypeEnum

      public ShareProductDataV1.Builder setLockPeriodTypeEnum(EnumOptionDataV1 value)
      Sets the value of the 'lockPeriodTypeEnum' field.
      Parameters:
      value - The value of 'lockPeriodTypeEnum'.
      Returns:
      This builder.
    • hasLockPeriodTypeEnum

      public boolean hasLockPeriodTypeEnum()
      Checks whether the 'lockPeriodTypeEnum' field has been set.
      Returns:
      True if the 'lockPeriodTypeEnum' field has been set, false otherwise.
    • getLockPeriodTypeEnumBuilder

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

      public ShareProductDataV1.Builder setLockPeriodTypeEnumBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'lockPeriodTypeEnum' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasLockPeriodTypeEnumBuilder

      public boolean hasLockPeriodTypeEnumBuilder()
      Checks whether the 'lockPeriodTypeEnum' field has an active Builder instance
      Returns:
      True if the 'lockPeriodTypeEnum' field has an active Builder instance
    • clearLockPeriodTypeEnum

      public ShareProductDataV1.Builder clearLockPeriodTypeEnum()
      Clears the value of the 'lockPeriodTypeEnum' field.
      Returns:
      This builder.
    • getMinimumActivePeriod

      public Integer getMinimumActivePeriod()
      Gets the value of the 'minimumActivePeriod' field.
      Returns:
      The value.
    • setMinimumActivePeriod

      public ShareProductDataV1.Builder setMinimumActivePeriod(Integer value)
      Sets the value of the 'minimumActivePeriod' field.
      Parameters:
      value - The value of 'minimumActivePeriod'.
      Returns:
      This builder.
    • hasMinimumActivePeriod

      public boolean hasMinimumActivePeriod()
      Checks whether the 'minimumActivePeriod' field has been set.
      Returns:
      True if the 'minimumActivePeriod' field has been set, false otherwise.
    • clearMinimumActivePeriod

      public ShareProductDataV1.Builder clearMinimumActivePeriod()
      Clears the value of the 'minimumActivePeriod' field.
      Returns:
      This builder.
    • getMinimumActivePeriodForDividendsTypeEnum

      public EnumOptionDataV1 getMinimumActivePeriodForDividendsTypeEnum()
      Gets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.
      Returns:
      The value.
    • setMinimumActivePeriodForDividendsTypeEnum

      public ShareProductDataV1.Builder setMinimumActivePeriodForDividendsTypeEnum(EnumOptionDataV1 value)
      Sets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.
      Parameters:
      value - The value of 'minimumActivePeriodForDividendsTypeEnum'.
      Returns:
      This builder.
    • hasMinimumActivePeriodForDividendsTypeEnum

      public boolean hasMinimumActivePeriodForDividendsTypeEnum()
      Checks whether the 'minimumActivePeriodForDividendsTypeEnum' field has been set.
      Returns:
      True if the 'minimumActivePeriodForDividendsTypeEnum' field has been set, false otherwise.
    • getMinimumActivePeriodForDividendsTypeEnumBuilder

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

      public ShareProductDataV1.Builder setMinimumActivePeriodForDividendsTypeEnumBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'minimumActivePeriodForDividendsTypeEnum' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasMinimumActivePeriodForDividendsTypeEnumBuilder

      public boolean hasMinimumActivePeriodForDividendsTypeEnumBuilder()
      Checks whether the 'minimumActivePeriodForDividendsTypeEnum' field has an active Builder instance
      Returns:
      True if the 'minimumActivePeriodForDividendsTypeEnum' field has an active Builder instance
    • clearMinimumActivePeriodForDividendsTypeEnum

      public ShareProductDataV1.Builder clearMinimumActivePeriodForDividendsTypeEnum()
      Clears the value of the 'minimumActivePeriodForDividendsTypeEnum' field.
      Returns:
      This builder.
    • build

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