@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,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) |
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.
tokenId - The unique identifier of the token.public String getTokenId()
The unique identifier of the token.
public TokenIdentifier withTokenId(String tokenId)
The unique identifier of the token.
tokenId - The unique identifier of the token.public String toString()
toString in class ObjectObject.toString()public TokenIdentifier clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.