Interface TokenBalance.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TokenBalance.Builder,,TokenBalance> SdkBuilder<TokenBalance.Builder,,TokenBalance> SdkPojo
- Enclosing class:
TokenBalance
@Mutable
@NotThreadSafe
public static interface TokenBalance.Builder
extends SdkPojo, CopyableBuilder<TokenBalance.Builder,TokenBalance>
-
Method Summary
Modifier and TypeMethodDescriptionRaw balance in the smallest denomination (e.g., USDC base units where 1 USDC = 1000000).The specific blockchain chain.chain(BlockchainChainId chain) The specific blockchain chain.Number of decimal places for the token (e.g., 6 for USDC).The blockchain network family (ETHEREUM or SOLANA).network(CryptoWalletNetwork network) The blockchain network family (ETHEREUM or SOLANA).The supported token for this balance.token(InstrumentBalanceToken token) The supported token for this balance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
amount
Raw balance in the smallest denomination (e.g., USDC base units where 1 USDC = 1000000).
- Parameters:
amount- Raw balance in the smallest denomination (e.g., USDC base units where 1 USDC = 1000000).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
decimals
Number of decimal places for the token (e.g., 6 for USDC).
- Parameters:
decimals- Number of decimal places for the token (e.g., 6 for USDC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
token
The supported token for this balance.
- Parameters:
token- The supported token for this balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
token
The supported token for this balance.
- Parameters:
token- The supported token for this balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
network
The blockchain network family (ETHEREUM or SOLANA).
- Parameters:
network- The blockchain network family (ETHEREUM or SOLANA).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
network
The blockchain network family (ETHEREUM or SOLANA).
- Parameters:
network- The blockchain network family (ETHEREUM or SOLANA).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
chain
The specific blockchain chain.
- Parameters:
chain- The specific blockchain chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
chain
The specific blockchain chain.
- Parameters:
chain- The specific blockchain chain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-