Interface ListTokenBalancesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListTokenBalancesRequest.Builder,
,ListTokenBalancesRequest> ManagedBlockchainQueryRequest.Builder
,SdkBuilder<ListTokenBalancesRequest.Builder,
,ListTokenBalancesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListTokenBalancesRequest
-
Method Summary
Modifier and TypeMethodDescriptionmaxResults
(Integer maxResults) The maximum number of token balances to return.The pagination token that indicates the next set of results to retrieve.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default ListTokenBalancesRequest.Builder
ownerFilter
(Consumer<OwnerFilter.Builder> ownerFilter) The contract or wallet address on the blockchain network by which to filter the request.ownerFilter
(OwnerFilter ownerFilter) The contract or wallet address on the blockchain network by which to filter the request.default ListTokenBalancesRequest.Builder
tokenFilter
(Consumer<TokenFilter.Builder> tokenFilter) The contract address or a token identifier on the blockchain network by which to filter the request.tokenFilter
(TokenFilter tokenFilter) The contract address or a token identifier on the blockchain network by which to filter the request.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.managedblockchainquery.model.ManagedBlockchainQueryRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ownerFilter
The contract or wallet address on the blockchain network by which to filter the request. You must specify the
address
property of theownerFilter
when listing balances of tokens owned by the address.- Parameters:
ownerFilter
- The contract or wallet address on the blockchain network by which to filter the request. You must specify theaddress
property of theownerFilter
when listing balances of tokens owned by the address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerFilter
The contract or wallet address on the blockchain network by which to filter the request. You must specify the
This is a convenience method that creates an instance of theaddress
property of theownerFilter
when listing balances of tokens owned by the address.OwnerFilter.Builder
avoiding the need to create one manually viaOwnerFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toownerFilter(OwnerFilter)
.- Parameters:
ownerFilter
- a consumer that will call methods onOwnerFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokenFilter
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the
contractAddress
property of this container when listing tokens minted by a contract.You must always specify the network property of this container when using this operation.
- Parameters:
tokenFilter
- The contract address or a token identifier on the blockchain network by which to filter the request. You must specify thecontractAddress
property of this container when listing tokens minted by a contract.You must always specify the network property of this container when using this operation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenFilter
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the
contractAddress
property of this container when listing tokens minted by a contract.You must always specify the network property of this container when using this operation.
TokenFilter.Builder
avoiding the need to create one manually viaTokenFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totokenFilter(TokenFilter)
.- Parameters:
tokenFilter
- a consumer that will call methods onTokenFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token that indicates the next set of results to retrieve.
- Parameters:
nextToken
- The pagination token that indicates the next set of results to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of token balances to return.
Default:
100
Even if additional results can be retrieved, the request can return less results than
maxResults
or an empty array of results.To retrieve the next set of results, make another request with the returned
nextToken
value. The value ofnextToken
isnull
when there are no more results to return- Parameters:
maxResults
- The maximum number of token balances to return.Default:
100
Even if additional results can be retrieved, the request can return less results than
maxResults
or an empty array of results.To retrieve the next set of results, make another request with the returned
nextToken
value. The value ofnextToken
isnull
when there are no more results to return- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListTokenBalancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListTokenBalancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-