@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TokenIdentifier extends Object implements Serializable, Cloneable, StructuredPojo
The container for the identifier for the token including the unique token ID and its blockchain network.
Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.
| Constructor and Description |
|---|
TokenIdentifier() |
| Modifier and Type | Method and Description |
|---|---|
TokenIdentifier |
clone() |
boolean |
equals(Object obj) |
String |
getContractAddress()
This is the token's contract address.
|
String |
getNetwork()
The blockchain network of the token.
|
String |
getTokenId()
The unique identifier of the token.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setContractAddress(String contractAddress)
This is the token's contract address.
|
void |
setNetwork(String network)
The blockchain network of the token.
|
void |
setTokenId(String tokenId)
The unique identifier of the token.
|
String |
toString()
Returns a string representation of this object.
|
TokenIdentifier |
withContractAddress(String contractAddress)
This is the token's contract address.
|
TokenIdentifier |
withNetwork(QueryNetwork network)
The blockchain network of the token.
|
TokenIdentifier |
withNetwork(String network)
The blockchain network of the token.
|
TokenIdentifier |
withTokenId(String tokenId)
The unique identifier of the token.
|
public void setNetwork(String network)
The blockchain network of the token.
network - The blockchain network of the token.QueryNetworkpublic String getNetwork()
The blockchain network of the token.
QueryNetworkpublic TokenIdentifier withNetwork(String network)
The blockchain network of the token.
network - The blockchain network of the token.QueryNetworkpublic TokenIdentifier withNetwork(QueryNetwork network)
The blockchain network of the token.
network - The blockchain network of the token.QueryNetworkpublic void setContractAddress(String contractAddress)
This is the token's contract address.
contractAddress - This is the token's contract address.public String getContractAddress()
This is the token's contract address.
public TokenIdentifier withContractAddress(String contractAddress)
This is the token's contract address.
contractAddress - This is the token's contract address.public void setTokenId(String tokenId)
The unique identifier of the token.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for Bitcoin,
eth for Ether, etc. For all other token types you must specify the tokenId in the 64 character
hexadecimal tokenid format.
tokenId - The unique identifier of the token.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for
Bitcoin, eth for Ether, etc. For all other token types you must specify the tokenId in the 64
character hexadecimal tokenid format.
public String getTokenId()
The unique identifier of the token.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for Bitcoin,
eth for Ether, etc. For all other token types you must specify the tokenId in the 64 character
hexadecimal tokenid format.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for
Bitcoin, eth for Ether, etc. For all other token types you must specify the tokenId in the
64 character hexadecimal tokenid format.
public TokenIdentifier withTokenId(String tokenId)
The unique identifier of the token.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for Bitcoin,
eth for Ether, etc. For all other token types you must specify the tokenId in the 64 character
hexadecimal tokenid format.
tokenId - The unique identifier of the token.
For native tokens, use the 3 character abbreviation that best matches your token. For example, btc for
Bitcoin, eth for Ether, etc. For all other token types you must specify the tokenId in the 64
character hexadecimal tokenid format.
public String toString()
toString in class ObjectObject.toString()public TokenIdentifier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.