Class TokenTransfer.Builder
-
- All Implemented Interfaces:
public final class TokenTransfer.BuilderA builder for TokenTransfer.
-
-
Method Summary
Modifier and Type Method Description final TokenTransfer.Builderid(String id)ID of the token transfer. final TokenTransfer.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final TokenTransfer.BuilderchainId(TokenTransfer.ChainId chainId)CAIP-2 chain ID of the blockchain that the transfer is made on. final TokenTransfer.BuilderchainId(JsonField<TokenTransfer.ChainId> chainId)Sets Builder.chainId to an arbitrary JSON value. final TokenTransfer.BuildercreatedDt(OffsetDateTime createdDt)Datetime at which the transfer was created. final TokenTransfer.BuildercreatedDt(JsonField<OffsetDateTime> createdDt)Sets Builder.createdDt to an arbitrary JSON value. final TokenTransfer.Builderquantity(Double quantity)Quantity of the token being transferred. final TokenTransfer.Builderquantity(JsonField<Double> quantity)Sets Builder.quantity to an arbitrary JSON value. final TokenTransfer.BuilderrecipientAccountId(String recipientAccountId)ID of the account to which the tokens are transferred. final TokenTransfer.BuilderrecipientAccountId(JsonField<String> recipientAccountId)Sets Builder.recipientAccountId to an arbitrary JSON value. final TokenTransfer.BuildersenderAccountId(String senderAccountId)ID of the account from which the tokens are transferred. final TokenTransfer.BuildersenderAccountId(JsonField<String> senderAccountId)Sets Builder.senderAccountId to an arbitrary JSON value. final TokenTransfer.Builderstatus(TokenTransfer.Status status)Status of the token transfer. final TokenTransfer.Builderstatus(JsonField<TokenTransfer.Status> status)Sets Builder.status to an arbitrary JSON value. final TokenTransfer.BuildertokenAddress(String tokenAddress)Address of the token being transferred. final TokenTransfer.BuildertokenAddress(JsonField<String> tokenAddress)Sets Builder.tokenAddress to an arbitrary JSON value. final TokenTransfer.BuilderupdatedDt(OffsetDateTime updatedDt)Datetime at which the transfer was last updated. final TokenTransfer.BuilderupdatedDt(JsonField<OffsetDateTime> updatedDt)Sets Builder.updatedDt to an arbitrary JSON value. final TokenTransfer.BuildertransactionHash(String transactionHash)Transaction hash of the transfer on the blockchain, if applicable. final TokenTransfer.BuildertransactionHash(Optional<String> transactionHash)Alias for calling Builder.transactionHash with transactionHash.orElse(null).final TokenTransfer.BuildertransactionHash(JsonField<String> transactionHash)Sets Builder.transactionHash to an arbitrary JSON value. final TokenTransfer.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TokenTransfer.BuilderputAdditionalProperty(String key, JsonValue value)final TokenTransfer.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TokenTransfer.BuilderremoveAdditionalProperty(String key)final TokenTransfer.BuilderremoveAllAdditionalProperties(Set<String> keys)final TokenTransferbuild()Returns an immutable instance of TokenTransfer. -
-
Method Detail
-
id
final TokenTransfer.Builder id(String id)
ID of the token transfer.
-
id
final TokenTransfer.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
chainId
final TokenTransfer.Builder chainId(TokenTransfer.ChainId chainId)
CAIP-2 chain ID of the blockchain that the transfer is made on.
-
chainId
final TokenTransfer.Builder chainId(JsonField<TokenTransfer.ChainId> chainId)
Sets Builder.chainId to an arbitrary JSON value.
You should usually call Builder.chainId with a well-typed ChainId value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdDt
final TokenTransfer.Builder createdDt(OffsetDateTime createdDt)
Datetime at which the transfer was created. ISO 8601 timestamp.
-
createdDt
final TokenTransfer.Builder createdDt(JsonField<OffsetDateTime> createdDt)
Sets Builder.createdDt to an arbitrary JSON value.
You should usually call Builder.createdDt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
quantity
final TokenTransfer.Builder quantity(Double quantity)
Quantity of the token being transferred.
-
quantity
final TokenTransfer.Builder quantity(JsonField<Double> quantity)
Sets Builder.quantity to an arbitrary JSON value.
You should usually call Builder.quantity with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipientAccountId
final TokenTransfer.Builder recipientAccountId(String recipientAccountId)
ID of the account to which the tokens are transferred.
-
recipientAccountId
final TokenTransfer.Builder recipientAccountId(JsonField<String> recipientAccountId)
Sets Builder.recipientAccountId to an arbitrary JSON value.
You should usually call Builder.recipientAccountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
senderAccountId
final TokenTransfer.Builder senderAccountId(String senderAccountId)
ID of the account from which the tokens are transferred.
-
senderAccountId
final TokenTransfer.Builder senderAccountId(JsonField<String> senderAccountId)
Sets Builder.senderAccountId to an arbitrary JSON value.
You should usually call Builder.senderAccountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final TokenTransfer.Builder status(TokenTransfer.Status status)
Status of the token transfer.
-
status
final TokenTransfer.Builder status(JsonField<TokenTransfer.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tokenAddress
final TokenTransfer.Builder tokenAddress(String tokenAddress)
Address of the token being transferred.
-
tokenAddress
final TokenTransfer.Builder tokenAddress(JsonField<String> tokenAddress)
Sets Builder.tokenAddress to an arbitrary JSON value.
You should usually call Builder.tokenAddress with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
updatedDt
final TokenTransfer.Builder updatedDt(OffsetDateTime updatedDt)
Datetime at which the transfer was last updated. ISO 8601 timestamp.
-
updatedDt
final TokenTransfer.Builder updatedDt(JsonField<OffsetDateTime> updatedDt)
Sets Builder.updatedDt to an arbitrary JSON value.
You should usually call Builder.updatedDt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
transactionHash
final TokenTransfer.Builder transactionHash(String transactionHash)
Transaction hash of the transfer on the blockchain, if applicable. This is only present if the transfer has been executed on-chain.
-
transactionHash
final TokenTransfer.Builder transactionHash(Optional<String> transactionHash)
Alias for calling Builder.transactionHash with
transactionHash.orElse(null).
-
transactionHash
final TokenTransfer.Builder transactionHash(JsonField<String> transactionHash)
Sets Builder.transactionHash to an arbitrary JSON value.
You should usually call Builder.transactionHash with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TokenTransfer.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TokenTransfer.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TokenTransfer.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TokenTransfer.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TokenTransfer.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TokenTransfer build()
Returns an immutable instance of TokenTransfer.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .chainId() .createdDt() .quantity() .recipientAccountId() .senderAccountId() .status() .tokenAddress() .updatedDt()
-
-
-
-