Class TokenBalanceQueryResult.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class TokenBalanceQueryResult.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for TokenBalanceQueryResult instances.
-
-
Field Summary
Fields Modifier and Type Field Description public TokenPoolCacheKey
poolKey
public TokenPoolCacheKey.Builder
poolKeyBuilder
public TokenAmount
availableBalance
public TokenAmount.Builder
availableBalanceBuilder
public TokenAmount
totalBalance
public TokenAmount.Builder
totalBalanceBuilder
-
Method Summary
Modifier and Type Method Description TokenPoolCacheKey
getPoolKey()
Gets the value of the 'poolKey' field. TokenBalanceQueryResult.Builder
setPoolKey(TokenPoolCacheKey value)
Sets the value of the 'poolKey' field. TokenPoolCacheKey.Builder
getPoolKeyBuilder()
Gets the Builder instance for the 'poolKey' field and creates one if it doesn't exist yet. TokenBalanceQueryResult.Builder
setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field Key of the pool of the tokens that was used to calculate the balance TokenAmount
getAvailableBalance()
Gets the value of the 'availableBalance' field. TokenBalanceQueryResult.Builder
setAvailableBalance(TokenAmount value)
Sets the value of the 'availableBalance' field. TokenAmount.Builder
getAvailableBalanceBuilder()
Gets the Builder instance for the 'availableBalance' field and creates one if it doesn't exist yet. TokenBalanceQueryResult.Builder
setAvailableBalanceBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'availableBalance' field The balance of tokens that have not been spent nor claimed TokenAmount
getTotalBalance()
Gets the value of the 'totalBalance' field. TokenBalanceQueryResult.Builder
setTotalBalance(TokenAmount value)
Sets the value of the 'totalBalance' field. TokenAmount.Builder
getTotalBalanceBuilder()
Gets the Builder instance for the 'totalBalance' field and creates one if it doesn't exist yet. TokenBalanceQueryResult.Builder
setTotalBalanceBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'totalBalance' field The available balance plus the balance of claimed tokens boolean
hasPoolKey()
Checks whether the 'poolKey' field has been set. boolean
hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance Key of the pool of the tokens that was used to calculate the balance TokenBalanceQueryResult.Builder
clearPoolKey()
Clears the value of the 'poolKey' field. boolean
hasAvailableBalance()
Checks whether the 'availableBalance' field has been set. boolean
hasAvailableBalanceBuilder()
Checks whether the 'availableBalance' field has an active Builder instance The balance of tokens that have not been spent nor claimed TokenBalanceQueryResult.Builder
clearAvailableBalance()
Clears the value of the 'availableBalance' field. boolean
hasTotalBalance()
Checks whether the 'totalBalance' field has been set. boolean
hasTotalBalanceBuilder()
Checks whether the 'totalBalance' field has an active Builder instance The available balance plus the balance of claimed tokens TokenBalanceQueryResult.Builder
clearTotalBalance()
Clears the value of the 'totalBalance' field. TokenBalanceQueryResult
build()
-
-
Method Detail
-
getPoolKey
TokenPoolCacheKey getPoolKey()
Gets the value of the 'poolKey' field. Key of the pool of the tokens that was used to calculate the balance
-
setPoolKey
TokenBalanceQueryResult.Builder setPoolKey(TokenPoolCacheKey value)
Sets the value of the 'poolKey' field. Key of the pool of the tokens that was used to calculate the balance
- Parameters:
value
- The value of 'poolKey'.
-
getPoolKeyBuilder
TokenPoolCacheKey.Builder getPoolKeyBuilder()
Gets the Builder instance for the 'poolKey' field and creates one if it doesn't exist yet. Key of the pool of the tokens that was used to calculate the balance
-
setPoolKeyBuilder
TokenBalanceQueryResult.Builder setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field Key of the pool of the tokens that was used to calculate the balance
- Parameters:
value
- The builder instance that must be set.
-
getAvailableBalance
TokenAmount getAvailableBalance()
Gets the value of the 'availableBalance' field. The balance of tokens that have not been spent nor claimed
-
setAvailableBalance
TokenBalanceQueryResult.Builder setAvailableBalance(TokenAmount value)
Sets the value of the 'availableBalance' field. The balance of tokens that have not been spent nor claimed
- Parameters:
value
- The value of 'availableBalance'.
-
getAvailableBalanceBuilder
TokenAmount.Builder getAvailableBalanceBuilder()
Gets the Builder instance for the 'availableBalance' field and creates one if it doesn't exist yet. The balance of tokens that have not been spent nor claimed
-
setAvailableBalanceBuilder
TokenBalanceQueryResult.Builder setAvailableBalanceBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'availableBalance' field The balance of tokens that have not been spent nor claimed
- Parameters:
value
- The builder instance that must be set.
-
getTotalBalance
TokenAmount getTotalBalance()
Gets the value of the 'totalBalance' field. The available balance plus the balance of claimed tokens
-
setTotalBalance
TokenBalanceQueryResult.Builder setTotalBalance(TokenAmount value)
Sets the value of the 'totalBalance' field. The available balance plus the balance of claimed tokens
- Parameters:
value
- The value of 'totalBalance'.
-
getTotalBalanceBuilder
TokenAmount.Builder getTotalBalanceBuilder()
Gets the Builder instance for the 'totalBalance' field and creates one if it doesn't exist yet. The available balance plus the balance of claimed tokens
-
setTotalBalanceBuilder
TokenBalanceQueryResult.Builder setTotalBalanceBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'totalBalance' field The available balance plus the balance of claimed tokens
- Parameters:
value
- The builder instance that must be set.
-
hasPoolKey
boolean hasPoolKey()
Checks whether the 'poolKey' field has been set. Key of the pool of the tokens that was used to calculate the balance
-
hasPoolKeyBuilder
boolean hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance Key of the pool of the tokens that was used to calculate the balance
-
clearPoolKey
TokenBalanceQueryResult.Builder clearPoolKey()
Clears the value of the 'poolKey' field. Key of the pool of the tokens that was used to calculate the balance
-
hasAvailableBalance
boolean hasAvailableBalance()
Checks whether the 'availableBalance' field has been set. The balance of tokens that have not been spent nor claimed
-
hasAvailableBalanceBuilder
boolean hasAvailableBalanceBuilder()
Checks whether the 'availableBalance' field has an active Builder instance The balance of tokens that have not been spent nor claimed
-
clearAvailableBalance
TokenBalanceQueryResult.Builder clearAvailableBalance()
Clears the value of the 'availableBalance' field. The balance of tokens that have not been spent nor claimed
-
hasTotalBalance
boolean hasTotalBalance()
Checks whether the 'totalBalance' field has been set. The available balance plus the balance of claimed tokens
-
hasTotalBalanceBuilder
boolean hasTotalBalanceBuilder()
Checks whether the 'totalBalance' field has an active Builder instance The available balance plus the balance of claimed tokens
-
clearTotalBalance
TokenBalanceQueryResult.Builder clearTotalBalance()
Clears the value of the 'totalBalance' field. The available balance plus the balance of claimed tokens
-
build
TokenBalanceQueryResult build()
-
-
-
-