Interface ListTokenBalancesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListTokenBalancesRequest.Builder,ListTokenBalancesRequest>,ManagedBlockchainQueryRequest.Builder,SdkBuilder<ListTokenBalancesRequest.Builder,ListTokenBalancesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListTokenBalancesRequest
public static interface ListTokenBalancesRequest.Builder extends ManagedBlockchainQueryRequest.Builder, SdkPojo, CopyableBuilder<ListTokenBalancesRequest.Builder,ListTokenBalancesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ListTokenBalancesRequest.BuildermaxResults(Integer maxResults)The maximum number of token balances to return.ListTokenBalancesRequest.BuildernextToken(String nextToken)The pagination token that indicates the next set of results to retrieve.ListTokenBalancesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListTokenBalancesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default ListTokenBalancesRequest.BuilderownerFilter(Consumer<OwnerFilter.Builder> ownerFilter)The contract or wallet address on the blockchain network by which to filter the request.ListTokenBalancesRequest.BuilderownerFilter(OwnerFilter ownerFilter)The contract or wallet address on the blockchain network by which to filter the request.default ListTokenBalancesRequest.BuildertokenFilter(Consumer<TokenFilter.Builder> tokenFilter)The contract address or a token identifier on the blockchain network by which to filter the request.ListTokenBalancesRequest.BuildertokenFilter(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, sdkFields
-
-
-
-
Method Detail
-
ownerFilter
ListTokenBalancesRequest.Builder ownerFilter(OwnerFilter ownerFilter)
The contract or wallet address on the blockchain network by which to filter the request. You must specify the
addressproperty of theownerFilterwhen 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 theaddressproperty of theownerFilterwhen listing balances of tokens owned by the address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerFilter
default ListTokenBalancesRequest.Builder ownerFilter(Consumer<OwnerFilter.Builder> 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 theaddressproperty of theownerFilterwhen listing balances of tokens owned by the address.OwnerFilter.Builderavoiding the need to create one manually viaOwnerFilter.builder().When the
Consumercompletes,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:
ownerFilter(OwnerFilter)
-
tokenFilter
ListTokenBalancesRequest.Builder tokenFilter(TokenFilter tokenFilter)
The contract address or a token identifier on the blockchain network by which to filter the request. You must specify the
contractAddressproperty 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 thecontractAddressproperty 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
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. You must specify the
contractAddressproperty of this container when listing tokens minted by a contract. This is a convenience method that creates an instance of theYou must always specify the network property of this container when using this operation.
TokenFilter.Builderavoiding the need to create one manually viaTokenFilter.builder().When the
Consumercompletes,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:
tokenFilter(TokenFilter)
-
nextToken
ListTokenBalancesRequest.Builder nextToken(String 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
ListTokenBalancesRequest.Builder maxResults(Integer maxResults)
The maximum number of token balances to return.
Default:
100Even if additional results can be retrieved, the request can return less results than
maxResultsor an empty array of results.To retrieve the next set of results, make another request with the returned
nextTokenvalue. The value ofnextTokenisnullwhen there are no more results to return- Parameters:
maxResults- The maximum number of token balances to return.Default:
100Even if additional results can be retrieved, the request can return less results than
maxResultsor an empty array of results.To retrieve the next set of results, make another request with the returned
nextTokenvalue. The value ofnextTokenisnullwhen 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListTokenBalancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-