@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TokenBalance extends Object implements Serializable, Cloneable, StructuredPojo
The balance of the token.
Constructor and Description |
---|
TokenBalance() |
Modifier and Type | Method and Description |
---|---|
TokenBalance |
clone() |
boolean |
equals(Object obj) |
BlockchainInstant |
getAtBlockchainInstant()
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
|
String |
getBalance()
The container of the token balance.
|
BlockchainInstant |
getLastUpdatedTime()
The
timestamp of the last transaction at which the balance for the token in the wallet was updated. |
OwnerIdentifier |
getOwnerIdentifier()
The container for the identifier of the owner.
|
TokenIdentifier |
getTokenIdentifier()
The identifier for the token, including the unique token ID and its blockchain network.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAtBlockchainInstant(BlockchainInstant atBlockchainInstant)
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
|
void |
setBalance(String balance)
The container of the token balance.
|
void |
setLastUpdatedTime(BlockchainInstant lastUpdatedTime)
The
timestamp of the last transaction at which the balance for the token in the wallet was updated. |
void |
setOwnerIdentifier(OwnerIdentifier ownerIdentifier)
The container for the identifier of the owner.
|
void |
setTokenIdentifier(TokenIdentifier tokenIdentifier)
The identifier for the token, including the unique token ID and its blockchain network.
|
String |
toString()
Returns a string representation of this object.
|
TokenBalance |
withAtBlockchainInstant(BlockchainInstant atBlockchainInstant)
The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
|
TokenBalance |
withBalance(String balance)
The container of the token balance.
|
TokenBalance |
withLastUpdatedTime(BlockchainInstant lastUpdatedTime)
The
timestamp of the last transaction at which the balance for the token in the wallet was updated. |
TokenBalance |
withOwnerIdentifier(OwnerIdentifier ownerIdentifier)
The container for the identifier of the owner.
|
TokenBalance |
withTokenIdentifier(TokenIdentifier tokenIdentifier)
The identifier for the token, including the unique token ID and its blockchain network.
|
public void setOwnerIdentifier(OwnerIdentifier ownerIdentifier)
The container for the identifier of the owner.
ownerIdentifier
- The container for the identifier of the owner.public OwnerIdentifier getOwnerIdentifier()
The container for the identifier of the owner.
public TokenBalance withOwnerIdentifier(OwnerIdentifier ownerIdentifier)
The container for the identifier of the owner.
ownerIdentifier
- The container for the identifier of the owner.public void setTokenIdentifier(TokenIdentifier tokenIdentifier)
The identifier for the token, including the unique token ID and its blockchain network.
tokenIdentifier
- The identifier for the token, including the unique token ID and its blockchain network.public TokenIdentifier getTokenIdentifier()
The identifier for the token, including the unique token ID and its blockchain network.
public TokenBalance withTokenIdentifier(TokenIdentifier tokenIdentifier)
The identifier for the token, including the unique token ID and its blockchain network.
tokenIdentifier
- The identifier for the token, including the unique token ID and its blockchain network.public void setBalance(String balance)
The container of the token balance.
balance
- The container of the token balance.public String getBalance()
The container of the token balance.
public TokenBalance withBalance(String balance)
The container of the token balance.
balance
- The container of the token balance.public void setAtBlockchainInstant(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.
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.
public BlockchainInstant getAtBlockchainInstant()
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.
This time will only be recorded up to the second.
public TokenBalance withAtBlockchainInstant(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.
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.
public void setLastUpdatedTime(BlockchainInstant lastUpdatedTime)
The timestamp
of the last transaction at which the balance for the token in the wallet was updated.
lastUpdatedTime
- The timestamp
of the last transaction at which the balance for the token in the wallet was
updated.public BlockchainInstant getLastUpdatedTime()
The timestamp
of the last transaction at which the balance for the token in the wallet was updated.
timestamp
of the last transaction at which the balance for the token in the wallet was
updated.public TokenBalance withLastUpdatedTime(BlockchainInstant lastUpdatedTime)
The timestamp
of the last transaction at which the balance for the token in the wallet was updated.
lastUpdatedTime
- The timestamp
of the last transaction at which the balance for the token in the wallet was
updated.public String toString()
toString
in class Object
Object.toString()
public TokenBalance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.