Interface TokenBalance.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TokenBalance.Builder,,TokenBalance> SdkBuilder<TokenBalance.Builder,,TokenBalance> SdkPojo
- Enclosing class:
TokenBalance
-
Method Summary
Modifier and TypeMethodDescriptiondefault TokenBalance.BuilderatBlockchainInstant(Consumer<BlockchainInstant.Builder> atBlockchainInstant) The time for when the TokenBalance is requested or the current time if a time is not provided in the request.atBlockchainInstant(BlockchainInstant atBlockchainInstant) The time for when the TokenBalance is requested or the current time if a time is not provided in the request.The container of the token balance.default TokenBalance.BuilderlastUpdatedTime(Consumer<BlockchainInstant.Builder> lastUpdatedTime) TheTimestampof the last transaction at which the balance for the token in the wallet was updated.lastUpdatedTime(BlockchainInstant lastUpdatedTime) TheTimestampof the last transaction at which the balance for the token in the wallet was updated.default TokenBalance.BuilderownerIdentifier(Consumer<OwnerIdentifier.Builder> ownerIdentifier) The container for the identifier of the owner.ownerIdentifier(OwnerIdentifier ownerIdentifier) The container for the identifier of the owner.default TokenBalance.BuildertokenIdentifier(Consumer<TokenIdentifier.Builder> tokenIdentifier) The identifier for the token, including the unique token ID and its blockchain network.tokenIdentifier(TokenIdentifier tokenIdentifier) The identifier for the token, including the unique token ID and its blockchain network.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, sdkFields
-
Method Details
-
ownerIdentifier
The container for the identifier of the owner.
- Parameters:
ownerIdentifier- The container for the identifier of the owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerIdentifier
The container for the identifier of the owner.
This is a convenience method that creates an instance of theOwnerIdentifier.Builderavoiding the need to create one manually viaOwnerIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toownerIdentifier(OwnerIdentifier).- Parameters:
ownerIdentifier- a consumer that will call methods onOwnerIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokenIdentifier
The identifier for the token, including the unique token ID and its blockchain network.
- Parameters:
tokenIdentifier- The identifier for the token, including the unique token ID and its blockchain network.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenIdentifier
The identifier for the token, including the unique token ID and its blockchain network.
This is a convenience method that creates an instance of theTokenIdentifier.Builderavoiding the need to create one manually viaTokenIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenIdentifier(TokenIdentifier).- Parameters:
tokenIdentifier- a consumer that will call methods onTokenIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
balance
The container of the token balance.
- Parameters:
balance- The container of the token balance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
atBlockchainInstant
default TokenBalance.Builder atBlockchainInstant(Consumer<BlockchainInstant.Builder> atBlockchainInstant) The time for when the TokenBalance is requested or the current time if a time is not provided in the request.
This is a convenience method that creates an instance of theThis time will only be recorded up to the second.
BlockchainInstant.Builderavoiding the need to create one manually viaBlockchainInstant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toatBlockchainInstant(BlockchainInstant).- Parameters:
atBlockchainInstant- a consumer that will call methods onBlockchainInstant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lastUpdatedTime
The
Timestampof the last transaction at which the balance for the token in the wallet was updated.- Parameters:
lastUpdatedTime- TheTimestampof the last transaction at which the balance for the token in the wallet was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
The
This is a convenience method that creates an instance of theTimestampof the last transaction at which the balance for the token in the wallet was updated.BlockchainInstant.Builderavoiding the need to create one manually viaBlockchainInstant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolastUpdatedTime(BlockchainInstant).- Parameters:
lastUpdatedTime- a consumer that will call methods onBlockchainInstant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-