Class TokenLedgerChange.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class TokenLedgerChange.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for TokenLedgerChange instances.
-
-
Field Summary
Fields Modifier and Type Field Description public TokenPoolCacheKey
poolKey
public TokenPoolCacheKey.Builder
poolKeyBuilder
public List<Token>
consumedTokens
public List<Token>
producedTokens
-
Method Summary
Modifier and Type Method Description TokenPoolCacheKey
getPoolKey()
Gets the value of the 'poolKey' field. TokenLedgerChange.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. TokenLedgerChange.Builder
setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field Token cache pool the change is for List<Token>
getConsumedTokens()
Gets the value of the 'consumedTokens' field. TokenLedgerChange.Builder
setConsumedTokens(List<Token> value)
Sets the value of the 'consumedTokens' field. List<Token>
getProducedTokens()
Gets the value of the 'producedTokens' field. TokenLedgerChange.Builder
setProducedTokens(List<Token> value)
Sets the value of the 'producedTokens' field. boolean
hasPoolKey()
Checks whether the 'poolKey' field has been set. boolean
hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance Token cache pool the change is for TokenLedgerChange.Builder
clearPoolKey()
Clears the value of the 'poolKey' field. boolean
hasConsumedTokens()
Checks whether the 'consumedTokens' field has been set. TokenLedgerChange.Builder
clearConsumedTokens()
Clears the value of the 'consumedTokens' field. boolean
hasProducedTokens()
Checks whether the 'producedTokens' field has been set. TokenLedgerChange.Builder
clearProducedTokens()
Clears the value of the 'producedTokens' field. TokenLedgerChange
build()
-
-
Method Detail
-
getPoolKey
TokenPoolCacheKey getPoolKey()
Gets the value of the 'poolKey' field. Token cache pool the change is for
-
setPoolKey
TokenLedgerChange.Builder setPoolKey(TokenPoolCacheKey value)
Sets the value of the 'poolKey' field. Token cache pool the change is for
- 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. Token cache pool the change is for
-
setPoolKeyBuilder
TokenLedgerChange.Builder setPoolKeyBuilder(TokenPoolCacheKey.Builder value)
Sets the Builder instance for the 'poolKey' field Token cache pool the change is for
- Parameters:
value
- The builder instance that must be set.
-
getConsumedTokens
List<Token> getConsumedTokens()
Gets the value of the 'consumedTokens' field. List of tokens consumed by the transaction
-
setConsumedTokens
TokenLedgerChange.Builder setConsumedTokens(List<Token> value)
Sets the value of the 'consumedTokens' field. List of tokens consumed by the transaction
- Parameters:
value
- The value of 'consumedTokens'.
-
getProducedTokens
List<Token> getProducedTokens()
Gets the value of the 'producedTokens' field. List of tokens produced by the transaction
-
setProducedTokens
TokenLedgerChange.Builder setProducedTokens(List<Token> value)
Sets the value of the 'producedTokens' field. List of tokens produced by the transaction
- Parameters:
value
- The value of 'producedTokens'.
-
hasPoolKey
boolean hasPoolKey()
Checks whether the 'poolKey' field has been set. Token cache pool the change is for
-
hasPoolKeyBuilder
boolean hasPoolKeyBuilder()
Checks whether the 'poolKey' field has an active Builder instance Token cache pool the change is for
-
clearPoolKey
TokenLedgerChange.Builder clearPoolKey()
Clears the value of the 'poolKey' field. Token cache pool the change is for
-
hasConsumedTokens
boolean hasConsumedTokens()
Checks whether the 'consumedTokens' field has been set. List of tokens consumed by the transaction
-
clearConsumedTokens
TokenLedgerChange.Builder clearConsumedTokens()
Clears the value of the 'consumedTokens' field. List of tokens consumed by the transaction
-
hasProducedTokens
boolean hasProducedTokens()
Checks whether the 'producedTokens' field has been set. List of tokens produced by the transaction
-
clearProducedTokens
TokenLedgerChange.Builder clearProducedTokens()
Clears the value of the 'producedTokens' field. List of tokens produced by the transaction
-
build
TokenLedgerChange build()
-
-
-
-