Class Token.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class Token.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for Token instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
stateRef
public TokenAmount
amount
public TokenAmount.Builder
amountBuilder
public String
ownerHash
public String
tag
-
Method Summary
Modifier and Type Method Description String
getStateRef()
Gets the value of the 'stateRef' field. Token.Builder
setStateRef(String value)
Sets the value of the 'stateRef' field. TokenAmount
getAmount()
Gets the value of the 'amount' field. Token.Builder
setAmount(TokenAmount value)
Sets the value of the 'amount' field. TokenAmount.Builder
getAmountBuilder()
Gets the Builder instance for the 'amount' field and creates one if it doesn't exist yet. Token.Builder
setAmountBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'amount' field The amount of the token String
getOwnerHash()
Gets the value of the 'ownerHash' field. Token.Builder
setOwnerHash(String value)
Sets the value of the 'ownerHash' field. String
getTag()
Gets the value of the 'tag' field. Token.Builder
setTag(String value)
Sets the value of the 'tag' field. boolean
hasStateRef()
Checks whether the 'stateRef' field has been set. Token.Builder
clearStateRef()
Clears the value of the 'stateRef' field. boolean
hasAmount()
Checks whether the 'amount' field has been set. boolean
hasAmountBuilder()
Checks whether the 'amount' field has an active Builder instance The amount of the token Token.Builder
clearAmount()
Clears the value of the 'amount' field. boolean
hasOwnerHash()
Checks whether the 'ownerHash' field has been set. Token.Builder
clearOwnerHash()
Clears the value of the 'ownerHash' field. boolean
hasTag()
Checks whether the 'tag' field has been set. Token.Builder
clearTag()
Clears the value of the 'tag' field. Token
build()
-
-
Method Detail
-
getStateRef
String getStateRef()
Gets the value of the 'stateRef' field. The unique ID of the token state
-
setStateRef
Token.Builder setStateRef(String value)
Sets the value of the 'stateRef' field. The unique ID of the token state
- Parameters:
value
- The value of 'stateRef'.
-
getAmount
TokenAmount getAmount()
Gets the value of the 'amount' field. The amount of the token
-
setAmount
Token.Builder setAmount(TokenAmount value)
Sets the value of the 'amount' field. The amount of the token
- Parameters:
value
- The value of 'amount'.
-
getAmountBuilder
TokenAmount.Builder getAmountBuilder()
Gets the Builder instance for the 'amount' field and creates one if it doesn't exist yet. The amount of the token
-
setAmountBuilder
Token.Builder setAmountBuilder(TokenAmount.Builder value)
Sets the Builder instance for the 'amount' field The amount of the token
- Parameters:
value
- The builder instance that must be set.
-
getOwnerHash
String getOwnerHash()
Gets the value of the 'ownerHash' field. Optional owner of the token
-
setOwnerHash
Token.Builder setOwnerHash(String value)
Sets the value of the 'ownerHash' field. Optional owner of the token
- Parameters:
value
- The value of 'ownerHash'.
-
setTag
Token.Builder setTag(String value)
Sets the value of the 'tag' field. Optional user defined tag of the token
- Parameters:
value
- The value of 'tag'.
-
hasStateRef
boolean hasStateRef()
Checks whether the 'stateRef' field has been set. The unique ID of the token state
-
clearStateRef
Token.Builder clearStateRef()
Clears the value of the 'stateRef' field. The unique ID of the token state
-
hasAmount
boolean hasAmount()
Checks whether the 'amount' field has been set. The amount of the token
-
hasAmountBuilder
boolean hasAmountBuilder()
Checks whether the 'amount' field has an active Builder instance The amount of the token
-
clearAmount
Token.Builder clearAmount()
Clears the value of the 'amount' field. The amount of the token
-
hasOwnerHash
boolean hasOwnerHash()
Checks whether the 'ownerHash' field has been set. Optional owner of the token
-
clearOwnerHash
Token.Builder clearOwnerHash()
Clears the value of the 'ownerHash' field. Optional owner of the token
-
hasTag
boolean hasTag()
Checks whether the 'tag' field has been set. Optional user defined tag of the token
-
clearTag
Token.Builder clearTag()
Clears the value of the 'tag' field. Optional user defined tag of the token
-
-
-
-