Class ShareAccountTransactionDataV1.Builder

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

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

    • getId

      public Long 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.
    • getAccountId

      public Long getAccountId()
      Gets the value of the 'accountId' field.
      Returns:
      The value.
    • setAccountId

      public ShareAccountTransactionDataV1.Builder setAccountId(Long value)
      Sets the value of the 'accountId' field.
      Parameters:
      value - The value of 'accountId'.
      Returns:
      This builder.
    • hasAccountId

      public boolean hasAccountId()
      Checks whether the 'accountId' field has been set.
      Returns:
      True if the 'accountId' field has been set, false otherwise.
    • clearAccountId

      public ShareAccountTransactionDataV1.Builder clearAccountId()
      Clears the value of the 'accountId' field.
      Returns:
      This builder.
    • getPurchasedDate

      public String getPurchasedDate()
      Gets the value of the 'purchasedDate' field.
      Returns:
      The value.
    • setPurchasedDate

      public ShareAccountTransactionDataV1.Builder setPurchasedDate(String value)
      Sets the value of the 'purchasedDate' field.
      Parameters:
      value - The value of 'purchasedDate'.
      Returns:
      This builder.
    • hasPurchasedDate

      public boolean hasPurchasedDate()
      Checks whether the 'purchasedDate' field has been set.
      Returns:
      True if the 'purchasedDate' field has been set, false otherwise.
    • clearPurchasedDate

      public ShareAccountTransactionDataV1.Builder clearPurchasedDate()
      Clears the value of the 'purchasedDate' field.
      Returns:
      This builder.
    • getNumberOfShares

      public Long getNumberOfShares()
      Gets the value of the 'numberOfShares' field.
      Returns:
      The value.
    • setNumberOfShares

      public ShareAccountTransactionDataV1.Builder setNumberOfShares(Long value)
      Sets the value of the 'numberOfShares' field.
      Parameters:
      value - The value of 'numberOfShares'.
      Returns:
      This builder.
    • hasNumberOfShares

      public boolean hasNumberOfShares()
      Checks whether the 'numberOfShares' field has been set.
      Returns:
      True if the 'numberOfShares' field has been set, false otherwise.
    • clearNumberOfShares

      public ShareAccountTransactionDataV1.Builder clearNumberOfShares()
      Clears the value of the 'numberOfShares' field.
      Returns:
      This builder.
    • getPurchasedPrice

      public BigDecimal getPurchasedPrice()
      Gets the value of the 'purchasedPrice' field.
      Returns:
      The value.
    • setPurchasedPrice

      public ShareAccountTransactionDataV1.Builder setPurchasedPrice(BigDecimal value)
      Sets the value of the 'purchasedPrice' field.
      Parameters:
      value - The value of 'purchasedPrice'.
      Returns:
      This builder.
    • hasPurchasedPrice

      public boolean hasPurchasedPrice()
      Checks whether the 'purchasedPrice' field has been set.
      Returns:
      True if the 'purchasedPrice' field has been set, false otherwise.
    • clearPurchasedPrice

      public ShareAccountTransactionDataV1.Builder clearPurchasedPrice()
      Clears the value of the 'purchasedPrice' field.
      Returns:
      This builder.
    • getStatus

      public EnumOptionDataV1 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 EnumOptionDataV1.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

      Clears the value of the 'status' field.
      Returns:
      This builder.
    • getType

      public EnumOptionDataV1 getType()
      Gets the value of the 'type' field.
      Returns:
      The value.
    • setType

      Sets the value of the 'type' field.
      Parameters:
      value - The value of 'type'.
      Returns:
      This builder.
    • hasType

      public boolean hasType()
      Checks whether the 'type' field has been set.
      Returns:
      True if the 'type' field has been set, false otherwise.
    • getTypeBuilder

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

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

      public boolean hasTypeBuilder()
      Checks whether the 'type' field has an active Builder instance
      Returns:
      True if the 'type' field has an active Builder instance
    • clearType

      Clears the value of the 'type' field.
      Returns:
      This builder.
    • getAmount

      public BigDecimal 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.
    • getChargeAmount

      public BigDecimal getChargeAmount()
      Gets the value of the 'chargeAmount' field.
      Returns:
      The value.
    • setChargeAmount

      public ShareAccountTransactionDataV1.Builder setChargeAmount(BigDecimal value)
      Sets the value of the 'chargeAmount' field.
      Parameters:
      value - The value of 'chargeAmount'.
      Returns:
      This builder.
    • hasChargeAmount

      public boolean hasChargeAmount()
      Checks whether the 'chargeAmount' field has been set.
      Returns:
      True if the 'chargeAmount' field has been set, false otherwise.
    • clearChargeAmount

      public ShareAccountTransactionDataV1.Builder clearChargeAmount()
      Clears the value of the 'chargeAmount' field.
      Returns:
      This builder.
    • getAmountPaid

      public BigDecimal getAmountPaid()
      Gets the value of the 'amountPaid' field.
      Returns:
      The value.
    • setAmountPaid

      public ShareAccountTransactionDataV1.Builder setAmountPaid(BigDecimal value)
      Sets the value of the 'amountPaid' field.
      Parameters:
      value - The value of 'amountPaid'.
      Returns:
      This builder.
    • hasAmountPaid

      public boolean hasAmountPaid()
      Checks whether the 'amountPaid' field has been set.
      Returns:
      True if the 'amountPaid' field has been set, false otherwise.
    • clearAmountPaid

      public ShareAccountTransactionDataV1.Builder clearAmountPaid()
      Clears the value of the 'amountPaid' field.
      Returns:
      This builder.
    • build

      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<ShareAccountTransactionDataV1>