@Generated(value="software.amazon.awssdk:codegen") public final class TokenIdentifier extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TokenIdentifier.Builder,TokenIdentifier>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TokenIdentifier.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TokenIdentifier.Builder |
builder() |
String |
contractAddress()
This is the token's contract address.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
QueryNetwork |
network()
The blockchain network of the token.
|
String |
networkAsString()
The blockchain network of the token.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TokenIdentifier.Builder> |
serializableBuilderClass() |
TokenIdentifier.Builder |
toBuilder() |
String |
tokenId()
The unique identifier of the token.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final QueryNetwork network()
The blockchain network of the token.
If the service returns an enum value that is not available in the current SDK version, network will
return QueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
networkAsString().
QueryNetworkpublic final String networkAsString()
The blockchain network of the token.
If the service returns an enum value that is not available in the current SDK version, network will
return QueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
networkAsString().
QueryNetworkpublic final String contractAddress()
This is the token's contract address.
public final String tokenId()
The unique identifier of the token.
You must specify this container with btc for the native BTC token, and eth for the
native ETH token. For all other token types you must specify the tokenId in the 64 character
hexadecimal tokenid format.
You must specify this container with btc for the native BTC token, and eth for
the native ETH token. For all other token types you must specify the tokenId in the 64
character hexadecimal tokenid format.
public TokenIdentifier.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TokenIdentifier.Builder,TokenIdentifier>public static TokenIdentifier.Builder builder()
public static Class<? extends TokenIdentifier.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.