Class TokenIdentifier
- java.lang.Object
-
- software.amazon.awssdk.services.managedblockchainquery.model.TokenIdentifier
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TokenIdentifier.Builder,TokenIdentifier>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTokenIdentifier.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenIdentifier.Builderbuilder()StringcontractAddress()This is the token's contract address.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()QueryNetworknetwork()The blockchain network of the token.StringnetworkAsString()The blockchain network of the token.List<SdkField<?>>sdkFields()static Class<? extends TokenIdentifier.Builder>serializableBuilderClass()TokenIdentifier.BuildertoBuilder()StringtokenId()The unique identifier of the token.StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
network
public 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,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network of the token.
- See Also:
QueryNetwork
-
networkAsString
public 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,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network of the token.
- See Also:
QueryNetwork
-
contractAddress
public final String contractAddress()
This is the token's contract address.
- Returns:
- This is the token's contract address.
-
tokenId
public final String tokenId()
The unique identifier of the token.
You must specify this container with
btcfor the native BTC token, andethfor the native ETH token. For all other token types you must specify thetokenIdin the 64 character hexadecimaltokenidformat.- Returns:
- The unique identifier of the token.
You must specify this container with
btcfor the native BTC token, andethfor the native ETH token. For all other token types you must specify thetokenIdin the 64 character hexadecimaltokenidformat.
-
toBuilder
public TokenIdentifier.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TokenIdentifier.Builder,TokenIdentifier>
-
builder
public static TokenIdentifier.Builder builder()
-
serializableBuilderClass
public static Class<? extends TokenIdentifier.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-