Class ShareAccountDataV1.Builder

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

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

    • getId

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

      public ShareAccountDataV1.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 ShareAccountDataV1.Builder clearId()
      Clears the value of the 'id' field.
      Returns:
      This builder.
    • getAccountNo

      public String getAccountNo()
      Gets the value of the 'accountNo' field.
      Returns:
      The value.
    • setAccountNo

      public ShareAccountDataV1.Builder setAccountNo(String value)
      Sets the value of the 'accountNo' field.
      Parameters:
      value - The value of 'accountNo'.
      Returns:
      This builder.
    • hasAccountNo

      public boolean hasAccountNo()
      Checks whether the 'accountNo' field has been set.
      Returns:
      True if the 'accountNo' field has been set, false otherwise.
    • clearAccountNo

      public ShareAccountDataV1.Builder clearAccountNo()
      Clears the value of the 'accountNo' field.
      Returns:
      This builder.
    • getExternalId

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

      public ShareAccountDataV1.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 ShareAccountDataV1.Builder clearExternalId()
      Clears the value of the 'externalId' field.
      Returns:
      This builder.
    • getSavingsAccountNumber

      public String getSavingsAccountNumber()
      Gets the value of the 'savingsAccountNumber' field.
      Returns:
      The value.
    • setSavingsAccountNumber

      public ShareAccountDataV1.Builder setSavingsAccountNumber(String value)
      Sets the value of the 'savingsAccountNumber' field.
      Parameters:
      value - The value of 'savingsAccountNumber'.
      Returns:
      This builder.
    • hasSavingsAccountNumber

      public boolean hasSavingsAccountNumber()
      Checks whether the 'savingsAccountNumber' field has been set.
      Returns:
      True if the 'savingsAccountNumber' field has been set, false otherwise.
    • clearSavingsAccountNumber

      public ShareAccountDataV1.Builder clearSavingsAccountNumber()
      Clears the value of the 'savingsAccountNumber' field.
      Returns:
      This builder.
    • getClientId

      public Long getClientId()
      Gets the value of the 'clientId' field.
      Returns:
      The value.
    • setClientId

      public ShareAccountDataV1.Builder setClientId(Long value)
      Sets the value of the 'clientId' field.
      Parameters:
      value - The value of 'clientId'.
      Returns:
      This builder.
    • hasClientId

      public boolean hasClientId()
      Checks whether the 'clientId' field has been set.
      Returns:
      True if the 'clientId' field has been set, false otherwise.
    • clearClientId

      public ShareAccountDataV1.Builder clearClientId()
      Clears the value of the 'clientId' field.
      Returns:
      This builder.
    • getClientName

      public String getClientName()
      Gets the value of the 'clientName' field.
      Returns:
      The value.
    • setClientName

      public ShareAccountDataV1.Builder setClientName(String value)
      Sets the value of the 'clientName' field.
      Parameters:
      value - The value of 'clientName'.
      Returns:
      This builder.
    • hasClientName

      public boolean hasClientName()
      Checks whether the 'clientName' field has been set.
      Returns:
      True if the 'clientName' field has been set, false otherwise.
    • clearClientName

      public ShareAccountDataV1.Builder clearClientName()
      Clears the value of the 'clientName' field.
      Returns:
      This builder.
    • getDefaultShares

      public Long getDefaultShares()
      Gets the value of the 'defaultShares' field.
      Returns:
      The value.
    • setDefaultShares

      public ShareAccountDataV1.Builder setDefaultShares(Long value)
      Sets the value of the 'defaultShares' field.
      Parameters:
      value - The value of 'defaultShares'.
      Returns:
      This builder.
    • hasDefaultShares

      public boolean hasDefaultShares()
      Checks whether the 'defaultShares' field has been set.
      Returns:
      True if the 'defaultShares' field has been set, false otherwise.
    • clearDefaultShares

      public ShareAccountDataV1.Builder clearDefaultShares()
      Clears the value of the 'defaultShares' field.
      Returns:
      This builder.
    • getProductId

      public Long getProductId()
      Gets the value of the 'productId' field.
      Returns:
      The value.
    • setProductId

      public ShareAccountDataV1.Builder setProductId(Long value)
      Sets the value of the 'productId' field.
      Parameters:
      value - The value of 'productId'.
      Returns:
      This builder.
    • hasProductId

      public boolean hasProductId()
      Checks whether the 'productId' field has been set.
      Returns:
      True if the 'productId' field has been set, false otherwise.
    • clearProductId

      public ShareAccountDataV1.Builder clearProductId()
      Clears the value of the 'productId' field.
      Returns:
      This builder.
    • getProductName

      public String getProductName()
      Gets the value of the 'productName' field.
      Returns:
      The value.
    • setProductName

      public ShareAccountDataV1.Builder setProductName(String value)
      Sets the value of the 'productName' field.
      Parameters:
      value - The value of 'productName'.
      Returns:
      This builder.
    • hasProductName

      public boolean hasProductName()
      Checks whether the 'productName' field has been set.
      Returns:
      True if the 'productName' field has been set, false otherwise.
    • clearProductName

      public ShareAccountDataV1.Builder clearProductName()
      Clears the value of the 'productName' field.
      Returns:
      This builder.
    • getStatus

      public ShareAccountStatusEnumDataV1 getStatus()
      Gets the value of the 'status' field.
      Returns:
      The value.
    • setStatus

      Sets the value of the 'status' field.
      Parameters:
      value - The value of 'status'.
      Returns:
      This builder.
    • hasStatus

      public boolean hasStatus()
      Checks whether the 'status' field has been set.
      Returns:
      True if the 'status' field has been set, false otherwise.
    • getStatusBuilder

      public ShareAccountStatusEnumDataV1.Builder getStatusBuilder()
      Gets the Builder instance for the 'status' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setStatusBuilder

      Sets the Builder instance for the 'status' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasStatusBuilder

      public boolean hasStatusBuilder()
      Checks whether the 'status' field has an active Builder instance
      Returns:
      True if the 'status' field has an active Builder instance
    • clearStatus

      public ShareAccountDataV1.Builder clearStatus()
      Clears the value of the 'status' field.
      Returns:
      This builder.
    • getTimeline

      Gets the value of the 'timeline' field.
      Returns:
      The value.
    • setTimeline

      Sets the value of the 'timeline' field.
      Parameters:
      value - The value of 'timeline'.
      Returns:
      This builder.
    • hasTimeline

      public boolean hasTimeline()
      Checks whether the 'timeline' field has been set.
      Returns:
      True if the 'timeline' field has been set, false otherwise.
    • getTimelineBuilder

      public ShareAccountApplicationTimelineDataV1.Builder getTimelineBuilder()
      Gets the Builder instance for the 'timeline' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setTimelineBuilder

      Sets the Builder instance for the 'timeline' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasTimelineBuilder

      public boolean hasTimelineBuilder()
      Checks whether the 'timeline' field has an active Builder instance
      Returns:
      True if the 'timeline' field has an active Builder instance
    • clearTimeline

      public ShareAccountDataV1.Builder clearTimeline()
      Clears the value of the 'timeline' field.
      Returns:
      This builder.
    • getCurrency

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

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

      public ShareAccountSummaryDataV1 getSummary()
      Gets the value of the 'summary' field.
      Returns:
      The value.
    • setSummary

      Sets the value of the 'summary' field.
      Parameters:
      value - The value of 'summary'.
      Returns:
      This builder.
    • hasSummary

      public boolean hasSummary()
      Checks whether the 'summary' field has been set.
      Returns:
      True if the 'summary' field has been set, false otherwise.
    • getSummaryBuilder

      public ShareAccountSummaryDataV1.Builder getSummaryBuilder()
      Gets the Builder instance for the 'summary' field and creates one if it doesn't exist yet.
      Returns:
      This builder.
    • setSummaryBuilder

      Sets the Builder instance for the 'summary' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasSummaryBuilder

      public boolean hasSummaryBuilder()
      Checks whether the 'summary' field has an active Builder instance
      Returns:
      True if the 'summary' field has an active Builder instance
    • clearSummary

      public ShareAccountDataV1.Builder clearSummary()
      Clears the value of the 'summary' field.
      Returns:
      This builder.
    • getPurchasedShares

      public List<ShareAccountTransactionDataV1> getPurchasedShares()
      Gets the value of the 'purchasedShares' field.
      Returns:
      The value.
    • setPurchasedShares

      Sets the value of the 'purchasedShares' field.
      Parameters:
      value - The value of 'purchasedShares'.
      Returns:
      This builder.
    • hasPurchasedShares

      public boolean hasPurchasedShares()
      Checks whether the 'purchasedShares' field has been set.
      Returns:
      True if the 'purchasedShares' field has been set, false otherwise.
    • clearPurchasedShares

      public ShareAccountDataV1.Builder clearPurchasedShares()
      Clears the value of the 'purchasedShares' field.
      Returns:
      This builder.
    • getSavingsAccountId

      public Long getSavingsAccountId()
      Gets the value of the 'savingsAccountId' field.
      Returns:
      The value.
    • setSavingsAccountId

      public ShareAccountDataV1.Builder setSavingsAccountId(Long value)
      Sets the value of the 'savingsAccountId' field.
      Parameters:
      value - The value of 'savingsAccountId'.
      Returns:
      This builder.
    • hasSavingsAccountId

      public boolean hasSavingsAccountId()
      Checks whether the 'savingsAccountId' field has been set.
      Returns:
      True if the 'savingsAccountId' field has been set, false otherwise.
    • clearSavingsAccountId

      public ShareAccountDataV1.Builder clearSavingsAccountId()
      Clears the value of the 'savingsAccountId' field.
      Returns:
      This builder.
    • getCurrentMarketPrice

      public BigDecimal getCurrentMarketPrice()
      Gets the value of the 'currentMarketPrice' field.
      Returns:
      The value.
    • setCurrentMarketPrice

      public ShareAccountDataV1.Builder setCurrentMarketPrice(BigDecimal value)
      Sets the value of the 'currentMarketPrice' field.
      Parameters:
      value - The value of 'currentMarketPrice'.
      Returns:
      This builder.
    • hasCurrentMarketPrice

      public boolean hasCurrentMarketPrice()
      Checks whether the 'currentMarketPrice' field has been set.
      Returns:
      True if the 'currentMarketPrice' field has been set, false otherwise.
    • clearCurrentMarketPrice

      public ShareAccountDataV1.Builder clearCurrentMarketPrice()
      Clears the value of the 'currentMarketPrice' field.
      Returns:
      This builder.
    • getLockinPeriod

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

      public ShareAccountDataV1.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 ShareAccountDataV1.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 ShareAccountDataV1.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 ShareAccountDataV1.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 ShareAccountDataV1.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 ShareAccountDataV1.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 ShareAccountDataV1.Builder clearMinimumActivePeriod()
      Clears the value of the 'minimumActivePeriod' field.
      Returns:
      This builder.
    • getMinimumActivePeriodTypeEnum

      public EnumOptionDataV1 getMinimumActivePeriodTypeEnum()
      Gets the value of the 'minimumActivePeriodTypeEnum' field.
      Returns:
      The value.
    • setMinimumActivePeriodTypeEnum

      public ShareAccountDataV1.Builder setMinimumActivePeriodTypeEnum(EnumOptionDataV1 value)
      Sets the value of the 'minimumActivePeriodTypeEnum' field.
      Parameters:
      value - The value of 'minimumActivePeriodTypeEnum'.
      Returns:
      This builder.
    • hasMinimumActivePeriodTypeEnum

      public boolean hasMinimumActivePeriodTypeEnum()
      Checks whether the 'minimumActivePeriodTypeEnum' field has been set.
      Returns:
      True if the 'minimumActivePeriodTypeEnum' field has been set, false otherwise.
    • getMinimumActivePeriodTypeEnumBuilder

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

      public ShareAccountDataV1.Builder setMinimumActivePeriodTypeEnumBuilder(EnumOptionDataV1.Builder value)
      Sets the Builder instance for the 'minimumActivePeriodTypeEnum' field
      Parameters:
      value - The builder instance that must be set.
      Returns:
      This builder.
    • hasMinimumActivePeriodTypeEnumBuilder

      public boolean hasMinimumActivePeriodTypeEnumBuilder()
      Checks whether the 'minimumActivePeriodTypeEnum' field has an active Builder instance
      Returns:
      True if the 'minimumActivePeriodTypeEnum' field has an active Builder instance
    • clearMinimumActivePeriodTypeEnum

      public ShareAccountDataV1.Builder clearMinimumActivePeriodTypeEnum()
      Clears the value of the 'minimumActivePeriodTypeEnum' field.
      Returns:
      This builder.
    • getAllowDividendCalculationForInactiveClients

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

      public ShareAccountDataV1.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 ShareAccountDataV1.Builder clearAllowDividendCalculationForInactiveClients()
      Clears the value of the 'allowDividendCalculationForInactiveClients' field.
      Returns:
      This builder.
    • build

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