Class AccountTransferDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<AccountTransferDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<AccountTransferDataV1>
org.apache.fineract.avro.savings.v1.AccountTransferDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<AccountTransferDataV1>
- Enclosing class:
AccountTransferDataV1
public static class AccountTransferDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<AccountTransferDataV1>
implements org.apache.avro.data.RecordBuilder<AccountTransferDataV1>
RecordBuilder for AccountTransferDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'currency' field.Clears the value of the 'fromAccount' field.Clears the value of the 'fromAccountType' field.Clears the value of the 'fromClient' field.Clears the value of the 'fromOffice' field.clearId()Clears the value of the 'id' field.Clears the value of the 'reversed' field.Clears the value of the 'toAccount' field.Clears the value of the 'toAccountType' field.Clears the value of the 'toClient' field.Clears the value of the 'toOffice' field.Clears the value of the 'transferAmount' field.Clears the value of the 'transferDate' field.Clears the value of the 'transferDescription' 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 'fromAccount' field.Gets the Builder instance for the 'fromAccount' field and creates one if it doesn't exist yet.Gets the value of the 'fromAccountType' field.Gets the Builder instance for the 'fromAccountType' field and creates one if it doesn't exist yet.Gets the value of the 'fromClient' field.Gets the Builder instance for the 'fromClient' field and creates one if it doesn't exist yet.Gets the value of the 'fromOffice' field.Gets the Builder instance for the 'fromOffice' field and creates one if it doesn't exist yet.getId()Gets the value of the 'id' field.Gets the value of the 'reversed' field.Gets the value of the 'toAccount' field.Gets the Builder instance for the 'toAccount' field and creates one if it doesn't exist yet.Gets the value of the 'toAccountType' field.Gets the Builder instance for the 'toAccountType' field and creates one if it doesn't exist yet.Gets the value of the 'toClient' field.Gets the Builder instance for the 'toClient' field and creates one if it doesn't exist yet.Gets the value of the 'toOffice' field.Gets the Builder instance for the 'toOffice' field and creates one if it doesn't exist yet.Gets the value of the 'transferAmount' field.Gets the value of the 'transferDate' field.Gets the value of the 'transferDescription' field.booleanChecks whether the 'currency' field has been set.booleanChecks whether the 'currency' field has an active Builder instancebooleanChecks whether the 'fromAccount' field has been set.booleanChecks whether the 'fromAccount' field has an active Builder instancebooleanChecks whether the 'fromAccountType' field has been set.booleanChecks whether the 'fromAccountType' field has an active Builder instancebooleanChecks whether the 'fromClient' field has been set.booleanChecks whether the 'fromClient' field has an active Builder instancebooleanChecks whether the 'fromOffice' field has been set.booleanChecks whether the 'fromOffice' field has an active Builder instancebooleanhasId()Checks whether the 'id' field has been set.booleanChecks whether the 'reversed' field has been set.booleanChecks whether the 'toAccount' field has been set.booleanChecks whether the 'toAccount' field has an active Builder instancebooleanChecks whether the 'toAccountType' field has been set.booleanChecks whether the 'toAccountType' field has an active Builder instancebooleanChecks whether the 'toClient' field has been set.booleanChecks whether the 'toClient' field has an active Builder instancebooleanChecks whether the 'toOffice' field has been set.booleanChecks whether the 'toOffice' field has an active Builder instancebooleanChecks whether the 'transferAmount' field has been set.booleanChecks whether the 'transferDate' field has been set.booleanChecks whether the 'transferDescription' field has been set.setCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.Sets the Builder instance for the 'currency' fieldSets the value of the 'fromAccount' field.Sets the Builder instance for the 'fromAccount' fieldSets the value of the 'fromAccountType' field.Sets the Builder instance for the 'fromAccountType' fieldsetFromClient(ClientDataV1 value) Sets the value of the 'fromClient' field.Sets the Builder instance for the 'fromClient' fieldsetFromOffice(OfficeDataV1 value) Sets the value of the 'fromOffice' field.Sets the Builder instance for the 'fromOffice' fieldSets the value of the 'id' field.setReversed(Boolean value) Sets the value of the 'reversed' field.Sets the value of the 'toAccount' field.Sets the Builder instance for the 'toAccount' fieldsetToAccountType(EnumOptionDataV1 value) Sets the value of the 'toAccountType' field.Sets the Builder instance for the 'toAccountType' fieldsetToClient(ClientDataV1 value) Sets the value of the 'toClient' field.Sets the Builder instance for the 'toClient' fieldsetToOffice(OfficeDataV1 value) Sets the value of the 'toOffice' field.Sets the Builder instance for the 'toOffice' fieldsetTransferAmount(BigDecimal value) Sets the value of the 'transferAmount' field.setTransferDate(String value) Sets the value of the 'transferDate' field.setTransferDescription(String value) Sets the value of the 'transferDescription' 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.
-
getReversed
Gets the value of the 'reversed' field.- Returns:
- The value.
-
setReversed
Sets the value of the 'reversed' field.- Parameters:
value- The value of 'reversed'.- Returns:
- This builder.
-
hasReversed
public boolean hasReversed()Checks whether the 'reversed' field has been set.- Returns:
- True if the 'reversed' field has been set, false otherwise.
-
clearReversed
Clears the value of the 'reversed' 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.
-
getTransferAmount
Gets the value of the 'transferAmount' field.- Returns:
- The value.
-
setTransferAmount
Sets the value of the 'transferAmount' field.- Parameters:
value- The value of 'transferAmount'.- Returns:
- This builder.
-
hasTransferAmount
public boolean hasTransferAmount()Checks whether the 'transferAmount' field has been set.- Returns:
- True if the 'transferAmount' field has been set, false otherwise.
-
clearTransferAmount
Clears the value of the 'transferAmount' field.- Returns:
- This builder.
-
getTransferDate
Gets the value of the 'transferDate' field.- Returns:
- The value.
-
setTransferDate
Sets the value of the 'transferDate' field.- Parameters:
value- The value of 'transferDate'.- Returns:
- This builder.
-
hasTransferDate
public boolean hasTransferDate()Checks whether the 'transferDate' field has been set.- Returns:
- True if the 'transferDate' field has been set, false otherwise.
-
clearTransferDate
Clears the value of the 'transferDate' field.- Returns:
- This builder.
-
getTransferDescription
Gets the value of the 'transferDescription' field.- Returns:
- The value.
-
setTransferDescription
Sets the value of the 'transferDescription' field.- Parameters:
value- The value of 'transferDescription'.- Returns:
- This builder.
-
hasTransferDescription
public boolean hasTransferDescription()Checks whether the 'transferDescription' field has been set.- Returns:
- True if the 'transferDescription' field has been set, false otherwise.
-
clearTransferDescription
Clears the value of the 'transferDescription' field.- Returns:
- This builder.
-
getFromOffice
Gets the value of the 'fromOffice' field.- Returns:
- The value.
-
setFromOffice
Sets the value of the 'fromOffice' field.- Parameters:
value- The value of 'fromOffice'.- Returns:
- This builder.
-
hasFromOffice
public boolean hasFromOffice()Checks whether the 'fromOffice' field has been set.- Returns:
- True if the 'fromOffice' field has been set, false otherwise.
-
getFromOfficeBuilder
Gets the Builder instance for the 'fromOffice' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setFromOfficeBuilder
Sets the Builder instance for the 'fromOffice' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasFromOfficeBuilder
public boolean hasFromOfficeBuilder()Checks whether the 'fromOffice' field has an active Builder instance- Returns:
- True if the 'fromOffice' field has an active Builder instance
-
clearFromOffice
Clears the value of the 'fromOffice' field.- Returns:
- This builder.
-
getFromClient
Gets the value of the 'fromClient' field.- Returns:
- The value.
-
setFromClient
Sets the value of the 'fromClient' field.- Parameters:
value- The value of 'fromClient'.- Returns:
- This builder.
-
hasFromClient
public boolean hasFromClient()Checks whether the 'fromClient' field has been set.- Returns:
- True if the 'fromClient' field has been set, false otherwise.
-
getFromClientBuilder
Gets the Builder instance for the 'fromClient' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setFromClientBuilder
Sets the Builder instance for the 'fromClient' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasFromClientBuilder
public boolean hasFromClientBuilder()Checks whether the 'fromClient' field has an active Builder instance- Returns:
- True if the 'fromClient' field has an active Builder instance
-
clearFromClient
Clears the value of the 'fromClient' field.- Returns:
- This builder.
-
getFromAccountType
Gets the value of the 'fromAccountType' field.- Returns:
- The value.
-
setFromAccountType
Sets the value of the 'fromAccountType' field.- Parameters:
value- The value of 'fromAccountType'.- Returns:
- This builder.
-
hasFromAccountType
public boolean hasFromAccountType()Checks whether the 'fromAccountType' field has been set.- Returns:
- True if the 'fromAccountType' field has been set, false otherwise.
-
getFromAccountTypeBuilder
Gets the Builder instance for the 'fromAccountType' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setFromAccountTypeBuilder
Sets the Builder instance for the 'fromAccountType' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasFromAccountTypeBuilder
public boolean hasFromAccountTypeBuilder()Checks whether the 'fromAccountType' field has an active Builder instance- Returns:
- True if the 'fromAccountType' field has an active Builder instance
-
clearFromAccountType
Clears the value of the 'fromAccountType' field.- Returns:
- This builder.
-
getFromAccount
Gets the value of the 'fromAccount' field.- Returns:
- The value.
-
setFromAccount
Sets the value of the 'fromAccount' field.- Parameters:
value- The value of 'fromAccount'.- Returns:
- This builder.
-
hasFromAccount
public boolean hasFromAccount()Checks whether the 'fromAccount' field has been set.- Returns:
- True if the 'fromAccount' field has been set, false otherwise.
-
getFromAccountBuilder
Gets the Builder instance for the 'fromAccount' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setFromAccountBuilder
Sets the Builder instance for the 'fromAccount' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasFromAccountBuilder
public boolean hasFromAccountBuilder()Checks whether the 'fromAccount' field has an active Builder instance- Returns:
- True if the 'fromAccount' field has an active Builder instance
-
clearFromAccount
Clears the value of the 'fromAccount' field.- Returns:
- This builder.
-
getToOffice
Gets the value of the 'toOffice' field.- Returns:
- The value.
-
setToOffice
Sets the value of the 'toOffice' field.- Parameters:
value- The value of 'toOffice'.- Returns:
- This builder.
-
hasToOffice
public boolean hasToOffice()Checks whether the 'toOffice' field has been set.- Returns:
- True if the 'toOffice' field has been set, false otherwise.
-
getToOfficeBuilder
Gets the Builder instance for the 'toOffice' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setToOfficeBuilder
Sets the Builder instance for the 'toOffice' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasToOfficeBuilder
public boolean hasToOfficeBuilder()Checks whether the 'toOffice' field has an active Builder instance- Returns:
- True if the 'toOffice' field has an active Builder instance
-
clearToOffice
Clears the value of the 'toOffice' field.- Returns:
- This builder.
-
getToClient
Gets the value of the 'toClient' field.- Returns:
- The value.
-
setToClient
Sets the value of the 'toClient' field.- Parameters:
value- The value of 'toClient'.- Returns:
- This builder.
-
hasToClient
public boolean hasToClient()Checks whether the 'toClient' field has been set.- Returns:
- True if the 'toClient' field has been set, false otherwise.
-
getToClientBuilder
Gets the Builder instance for the 'toClient' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setToClientBuilder
Sets the Builder instance for the 'toClient' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasToClientBuilder
public boolean hasToClientBuilder()Checks whether the 'toClient' field has an active Builder instance- Returns:
- True if the 'toClient' field has an active Builder instance
-
clearToClient
Clears the value of the 'toClient' field.- Returns:
- This builder.
-
getToAccountType
Gets the value of the 'toAccountType' field.- Returns:
- The value.
-
setToAccountType
Sets the value of the 'toAccountType' field.- Parameters:
value- The value of 'toAccountType'.- Returns:
- This builder.
-
hasToAccountType
public boolean hasToAccountType()Checks whether the 'toAccountType' field has been set.- Returns:
- True if the 'toAccountType' field has been set, false otherwise.
-
getToAccountTypeBuilder
Gets the Builder instance for the 'toAccountType' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setToAccountTypeBuilder
Sets the Builder instance for the 'toAccountType' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasToAccountTypeBuilder
public boolean hasToAccountTypeBuilder()Checks whether the 'toAccountType' field has an active Builder instance- Returns:
- True if the 'toAccountType' field has an active Builder instance
-
clearToAccountType
Clears the value of the 'toAccountType' field.- Returns:
- This builder.
-
getToAccount
Gets the value of the 'toAccount' field.- Returns:
- The value.
-
setToAccount
Sets the value of the 'toAccount' field.- Parameters:
value- The value of 'toAccount'.- Returns:
- This builder.
-
hasToAccount
public boolean hasToAccount()Checks whether the 'toAccount' field has been set.- Returns:
- True if the 'toAccount' field has been set, false otherwise.
-
getToAccountBuilder
Gets the Builder instance for the 'toAccount' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setToAccountBuilder
Sets the Builder instance for the 'toAccount' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasToAccountBuilder
public boolean hasToAccountBuilder()Checks whether the 'toAccount' field has an active Builder instance- Returns:
- True if the 'toAccount' field has an active Builder instance
-
clearToAccount
Clears the value of the 'toAccount' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<AccountTransferDataV1>
-