Class TokenBalance
- java.lang.Object
-
- software.amazon.awssdk.services.managedblockchainquery.model.TokenBalance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TokenBalance.Builder,TokenBalance>
@Generated("software.amazon.awssdk:codegen") public final class TokenBalance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TokenBalance.Builder,TokenBalance>
The balance of the token.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTokenBalance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockchainInstantatBlockchainInstant()The time for when the TokenBalance is requested or the current time if a time is not provided in the request.Stringbalance()The container of the token balance.static TokenBalance.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BlockchainInstantlastUpdatedTime()TheTimestampof the last transaction at which the balance for the token in the wallet was updated.OwnerIdentifierownerIdentifier()The container for the identifier of the owner.List<SdkField<?>>sdkFields()static Class<? extends TokenBalance.Builder>serializableBuilderClass()TokenBalance.BuildertoBuilder()TokenIdentifiertokenIdentifier()The identifier for the token, including the unique token ID and its blockchain network.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
-
ownerIdentifier
public final OwnerIdentifier ownerIdentifier()
The container for the identifier of the owner.
- Returns:
- The container for the identifier of the owner.
-
tokenIdentifier
public final TokenIdentifier tokenIdentifier()
The identifier for the token, including the unique token ID and its blockchain network.
- Returns:
- The identifier for the token, including the unique token ID and its blockchain network.
-
balance
public final String balance()
The container of the token balance.
- Returns:
- The container of the token balance.
-
atBlockchainInstant
public final BlockchainInstant atBlockchainInstant()
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This time will only be recorded up to the second.
- Returns:
- The time for when the TokenBalance is requested or the current time if a time is not provided in the
request.
This time will only be recorded up to the second.
-
lastUpdatedTime
public final BlockchainInstant lastUpdatedTime()
The
Timestampof the last transaction at which the balance for the token in the wallet was updated.- Returns:
- The
Timestampof the last transaction at which the balance for the token in the wallet was updated.
-
toBuilder
public TokenBalance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TokenBalance.Builder,TokenBalance>
-
builder
public static TokenBalance.Builder builder()
-
serializableBuilderClass
public static Class<? extends TokenBalance.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.
-
-