public static class UserAccount.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<UserAccount> implements org.apache.avro.data.RecordBuilder<UserAccount>
| Modifier and Type | Method and Description |
|---|---|
UserAccount |
build() |
UserAccount.Builder |
clearBalance()
Clears the value of the 'balance' field.
|
UserAccount.Builder |
clearUsername()
Clears the value of the 'username' field.
|
BigDecimal |
getBalance()
Gets the value of the 'balance' field.
|
String |
getUsername()
Gets the value of the 'username' field.
|
boolean |
hasBalance()
Checks whether the 'balance' field has been set.
|
boolean |
hasUsername()
Checks whether the 'username' field has been set.
|
UserAccount.Builder |
setBalance(BigDecimal value)
Sets the value of the 'balance' field.
|
UserAccount.Builder |
setUsername(String value)
Sets the value of the 'username' field.
|
public String getUsername()
public UserAccount.Builder setUsername(String value)
value - The value of 'username'.public boolean hasUsername()
public UserAccount.Builder clearUsername()
public BigDecimal getBalance()
public UserAccount.Builder setBalance(BigDecimal value)
value - The value of 'balance'.public boolean hasBalance()
public UserAccount.Builder clearBalance()
public UserAccount build()
build in interface org.apache.avro.data.RecordBuilder<UserAccount>Copyright © 2018. All rights reserved.