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 Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'allowDividendCalculationForInactiveClients' field.Clears the value of the 'charges' field.Clears the value of the 'currency' field.Clears the value of the 'description' field.Clears the value of the 'externalId' field.clearId()Clears the value of the 'id' field.Clears the value of the 'lockinPeriod' field.Clears the value of the 'lockPeriodTypeEnum' field.Clears the value of the 'marketPrice' field.Clears the value of the 'maximumShares' field.Clears the value of the 'minimumActivePeriod' field.Clears the value of the 'minimumActivePeriodForDividendsTypeEnum' field.Clears the value of the 'minimumShares' field.Clears the value of the 'name' field.Clears the value of the 'nominalShares' field.Clears the value of the 'shareCapital' field.Clears the value of the 'shortName' field.Clears the value of the 'totalShares' field.Clears the value of the 'totalSharesIssued' field.Clears the value of the 'unitPrice' field.Gets the value of the 'allowDividendCalculationForInactiveClients' field.Gets the value of the 'charges' field.Gets the value of the 'currency' field.Gets the Builder instance for the 'currency' field and creates one if it doesn't exist yet.Gets the value of the 'description' field.Gets the value of the 'externalId' field.getId()Gets the value of the 'id' field.Gets the value of the 'lockinPeriod' field.Gets the value of the 'lockPeriodTypeEnum' field.Gets the Builder instance for the 'lockPeriodTypeEnum' field and creates one if it doesn't exist yet.Gets the value of the 'marketPrice' field.Gets the value of the 'maximumShares' field.Gets the value of the 'minimumActivePeriod' field.Gets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.Gets the Builder instance for the 'minimumActivePeriodForDividendsTypeEnum' field and creates one if it doesn't exist yet.Gets the value of the 'minimumShares' field.getName()Gets the value of the 'name' field.Gets the value of the 'nominalShares' field.Gets the value of the 'shareCapital' field.Gets the value of the 'shortName' field.Gets the value of the 'totalShares' field.Gets the value of the 'totalSharesIssued' field.Gets the value of the 'unitPrice' field.booleanChecks whether the 'allowDividendCalculationForInactiveClients' field has been set.booleanChecks whether the 'charges' field has been set.booleanChecks whether the 'currency' field has been set.booleanChecks whether the 'currency' field has an active Builder instancebooleanChecks whether the 'description' field has been set.booleanChecks whether the 'externalId' field has been set.booleanhasId()Checks whether the 'id' field has been set.booleanChecks whether the 'lockinPeriod' field has been set.booleanChecks whether the 'lockPeriodTypeEnum' field has been set.booleanChecks whether the 'lockPeriodTypeEnum' field has an active Builder instancebooleanChecks whether the 'marketPrice' field has been set.booleanChecks whether the 'maximumShares' field has been set.booleanChecks whether the 'minimumActivePeriod' field has been set.booleanChecks whether the 'minimumActivePeriodForDividendsTypeEnum' field has been set.booleanChecks whether the 'minimumActivePeriodForDividendsTypeEnum' field has an active Builder instancebooleanChecks whether the 'minimumShares' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'nominalShares' field has been set.booleanChecks whether the 'shareCapital' field has been set.booleanChecks whether the 'shortName' field has been set.booleanChecks whether the 'totalShares' field has been set.booleanChecks whether the 'totalSharesIssued' field has been set.booleanChecks whether the 'unitPrice' field has been set.Sets the value of the 'allowDividendCalculationForInactiveClients' field.setCharges(List<ChargeDataV1> value) Sets the value of the 'charges' field.setCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.Sets the Builder instance for the 'currency' fieldsetDescription(String value) Sets the value of the 'description' field.setExternalId(String value) Sets the value of the 'externalId' field.Sets the value of the 'id' field.setLockinPeriod(Integer value) Sets the value of the 'lockinPeriod' field.Sets the value of the 'lockPeriodTypeEnum' field.Sets the Builder instance for the 'lockPeriodTypeEnum' fieldSets the value of the 'marketPrice' field.setMaximumShares(Long value) Sets the value of the 'maximumShares' field.setMinimumActivePeriod(Integer value) Sets the value of the 'minimumActivePeriod' field.Sets the value of the 'minimumActivePeriodForDividendsTypeEnum' field.Sets the Builder instance for the 'minimumActivePeriodForDividendsTypeEnum' fieldsetMinimumShares(Long value) Sets the value of the 'minimumShares' field.Sets the value of the 'name' field.setNominalShares(Long value) Sets the value of the 'nominalShares' field.setShareCapital(BigDecimal value) Sets the value of the 'shareCapital' field.setShortName(String value) Sets the value of the 'shortName' field.setTotalShares(Long value) Sets the value of the 'totalShares' field.setTotalSharesIssued(Long value) Sets the value of the 'totalSharesIssued' field.setUnitPrice(BigDecimal value) Sets the value of the 'unitPrice' field.Methods 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.
-
getName
Gets the value of the 'name' field.- Returns:
- The value.
-
setName
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
Clears the value of the 'name' field.- Returns:
- This builder.
-
getShortName
Gets the value of the 'shortName' field.- Returns:
- The value.
-
setShortName
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
Clears the value of the 'shortName' field.- Returns:
- This builder.
-
getDescription
Gets the value of the 'description' field.- Returns:
- The value.
-
setDescription
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
Clears the value of the 'description' field.- Returns:
- This builder.
-
getExternalId
Gets the value of the 'externalId' field.- Returns:
- The value.
-
setExternalId
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
Clears the value of the 'externalId' field.- Returns:
- This builder.
-
getCurrency
Gets the value of the 'currency' field.- Returns:
- The value.
-
setCurrency
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
Gets the Builder instance for the 'currency' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setCurrencyBuilder
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
Clears the value of the 'currency' field.- Returns:
- This builder.
-
getUnitPrice
Gets the value of the 'unitPrice' field.- Returns:
- The value.
-
setUnitPrice
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
Clears the value of the 'unitPrice' field.- Returns:
- This builder.
-
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
Clears the value of the 'marketPrice' field.- Returns:
- This builder.
-
getCharges
Gets the value of the 'charges' field.- Returns:
- The value.
-
setCharges
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
Clears the value of the 'charges' field.- Returns:
- This builder.
-
getAllowDividendCalculationForInactiveClients
Gets the value of the 'allowDividendCalculationForInactiveClients' field.- Returns:
- The value.
-
setAllowDividendCalculationForInactiveClients
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
Clears the value of the 'allowDividendCalculationForInactiveClients' field.- Returns:
- This builder.
-
getLockinPeriod
Gets the value of the 'lockinPeriod' field.- Returns:
- The value.
-
setLockinPeriod
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
Clears the value of the 'lockinPeriod' field.- Returns:
- This builder.
-
getLockPeriodTypeEnum
Gets the value of the 'lockPeriodTypeEnum' field.- Returns:
- The value.
-
setLockPeriodTypeEnum
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
Gets the Builder instance for the 'lockPeriodTypeEnum' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setLockPeriodTypeEnumBuilder
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
Clears the value of the 'lockPeriodTypeEnum' field.- Returns:
- This builder.
-
getMinimumActivePeriod
Gets the value of the 'minimumActivePeriod' field.- Returns:
- The value.
-
setMinimumActivePeriod
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
Clears the value of the 'minimumActivePeriod' field.- Returns:
- This builder.
-
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
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
Clears the value of the 'minimumActivePeriodForDividendsTypeEnum' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<ShareProductDataV1>
-