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 Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'accountId' field.Clears the value of the 'amount' field.Clears the value of the 'amountPaid' field.Clears the value of the 'chargeAmount' field.clearId()Clears the value of the 'id' field.Clears the value of the 'numberOfShares' field.Clears the value of the 'purchasedDate' field.Clears the value of the 'purchasedPrice' field.Clears the value of the 'status' field.Clears the value of the 'type' field.Gets the value of the 'accountId' field.Gets the value of the 'amount' field.Gets the value of the 'amountPaid' field.Gets the value of the 'chargeAmount' field.getId()Gets the value of the 'id' field.Gets the value of the 'numberOfShares' field.Gets the value of the 'purchasedDate' field.Gets the value of the 'purchasedPrice' field.Gets the value of the 'status' field.Gets the Builder instance for the 'status' field and creates one if it doesn't exist yet.getType()Gets the value of the 'type' field.Gets the Builder instance for the 'type' field and creates one if it doesn't exist yet.booleanChecks whether the 'accountId' field has been set.booleanChecks whether the 'amount' field has been set.booleanChecks whether the 'amountPaid' field has been set.booleanChecks whether the 'chargeAmount' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanChecks whether the 'numberOfShares' field has been set.booleanChecks whether the 'purchasedDate' field has been set.booleanChecks whether the 'purchasedPrice' field has been set.booleanChecks whether the 'status' field has been set.booleanChecks whether the 'status' field has an active Builder instancebooleanhasType()Checks whether the 'type' field has been set.booleanChecks whether the 'type' field has an active Builder instancesetAccountId(Long value) Sets the value of the 'accountId' field.setAmount(BigDecimal value) Sets the value of the 'amount' field.setAmountPaid(BigDecimal value) Sets the value of the 'amountPaid' field.setChargeAmount(BigDecimal value) Sets the value of the 'chargeAmount' field.Sets the value of the 'id' field.setNumberOfShares(Long value) Sets the value of the 'numberOfShares' field.setPurchasedDate(String value) Sets the value of the 'purchasedDate' field.setPurchasedPrice(BigDecimal value) Sets the value of the 'purchasedPrice' field.setStatus(EnumOptionDataV1 value) Sets the value of the 'status' field.Sets the Builder instance for the 'status' fieldsetType(EnumOptionDataV1 value) Sets the value of the 'type' field.Sets the Builder instance for the 'type' fieldMethods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
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
Gets the value of the 'accountId' field.- Returns:
- The value.
-
setAccountId
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
Clears the value of the 'accountId' field.- Returns:
- This builder.
-
getPurchasedDate
Gets the value of the 'purchasedDate' field.- Returns:
- The value.
-
setPurchasedDate
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
Clears the value of the 'purchasedDate' field.- Returns:
- This builder.
-
getPurchasedPrice
Gets the value of the 'purchasedPrice' field.- Returns:
- The value.
-
setPurchasedPrice
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
Clears the value of the 'purchasedPrice' field.- Returns:
- This builder.
-
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
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
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
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
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
Gets the value of the 'chargeAmount' field.- Returns:
- The value.
-
setChargeAmount
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
Clears the value of the 'chargeAmount' field.- Returns:
- This builder.
-
getAmountPaid
Gets the value of the 'amountPaid' field.- Returns:
- The value.
-
setAmountPaid
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
Clears the value of the 'amountPaid' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ShareAccountTransactionDataV1>
-