All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.managedblockchainquery.ManagedBlockchainQueryClient Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.managedblockchainquery;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.managedblockchainquery.model.AccessDeniedException;
import software.amazon.awssdk.services.managedblockchainquery.model.BatchGetTokenBalanceRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.BatchGetTokenBalanceResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.GetAssetContractRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.GetAssetContractResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.GetTokenBalanceRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.GetTokenBalanceResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.GetTransactionRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.GetTransactionResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.InternalServerException;
import software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest;
import software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse;
import software.amazon.awssdk.services.managedblockchainquery.model.ManagedBlockchainQueryException;
import software.amazon.awssdk.services.managedblockchainquery.model.ResourceNotFoundException;
import software.amazon.awssdk.services.managedblockchainquery.model.ServiceQuotaExceededException;
import software.amazon.awssdk.services.managedblockchainquery.model.ThrottlingException;
import software.amazon.awssdk.services.managedblockchainquery.model.ValidationException;
import software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable;
import software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable;
import software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable;
import software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable;
import software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable;

/**
 * Service client for accessing Amazon Managed Blockchain Query. This can be created using the static {@link #builder()}
 * method.
 *
 * 

* Amazon Managed Blockchain (AMB) Query provides you with convenient access to multi-blockchain network data, which * makes it easier for you to extract contextual data related to blockchain activity. You can use AMB Query to read data * from public blockchain networks, such as Bitcoin Mainnet and Ethereum Mainnet. You can also get information such as * the current and historical balances of addresses, or you can get a list of blockchain transactions for a given time * period. Additionally, you can get details of a given transaction, such as transaction events, which you can further * analyze or use in business logic for your applications. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ManagedBlockchainQueryClient extends AwsClient { String SERVICE_NAME = "managedblockchain-query"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "managedblockchain-query"; /** *

* Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every * token in the request. *

* *

* Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param batchGetTokenBalanceRequest * @return Result of the BatchGetTokenBalance operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.BatchGetTokenBalance * @see AWS API Documentation */ default BatchGetTokenBalanceResponse batchGetTokenBalance(BatchGetTokenBalanceRequest batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every * token in the request. *

* *

* Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*

*

* This is a convenience which creates an instance of the {@link BatchGetTokenBalanceRequest.Builder} avoiding the * need to create one manually via {@link BatchGetTokenBalanceRequest#builder()} *

* * @param batchGetTokenBalanceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.BatchGetTokenBalanceRequest.Builder} * to create a request. * @return Result of the BatchGetTokenBalance operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.BatchGetTokenBalance * @see AWS API Documentation */ default BatchGetTokenBalanceResponse batchGetTokenBalance( Consumer batchGetTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return batchGetTokenBalance(BatchGetTokenBalanceRequest.builder().applyMutation(batchGetTokenBalanceRequest).build()); } /** *

* Gets the information about a specific contract deployed on the blockchain. *

* *
    *
  • *

    * The Bitcoin blockchain networks do not support this operation. *

    *
  • *
  • *

    * Metadata is currently only available for some ERC-20 contracts. Metadata will be available for * additional contracts in the future. *

    *
  • *
*
* * @param getAssetContractRequest * @return Result of the GetAssetContract operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetAssetContract * @see AWS API Documentation */ default GetAssetContractResponse getAssetContract(GetAssetContractRequest getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Gets the information about a specific contract deployed on the blockchain. *

* *
    *
  • *

    * The Bitcoin blockchain networks do not support this operation. *

    *
  • *
  • *

    * Metadata is currently only available for some ERC-20 contracts. Metadata will be available for * additional contracts in the future. *

    *
  • *
*

*

* This is a convenience which creates an instance of the {@link GetAssetContractRequest.Builder} avoiding the need * to create one manually via {@link GetAssetContractRequest#builder()} *

* * @param getAssetContractRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.GetAssetContractRequest.Builder} to * create a request. * @return Result of the GetAssetContract operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetAssetContract * @see AWS API Documentation */ default GetAssetContractResponse getAssetContract(Consumer getAssetContractRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return getAssetContract(GetAssetContractRequest.builder().applyMutation(getAssetContractRequest).build()); } /** *

* Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the * blockchain. *

* *

* Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*
* * @param getTokenBalanceRequest * @return Result of the GetTokenBalance operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetTokenBalance * @see AWS API Documentation */ default GetTokenBalanceResponse getTokenBalance(GetTokenBalanceRequest getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the * blockchain. *

* *

* Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported. *

*

*

* This is a convenience which creates an instance of the {@link GetTokenBalanceRequest.Builder} avoiding the need * to create one manually via {@link GetTokenBalanceRequest#builder()} *

* * @param getTokenBalanceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.GetTokenBalanceRequest.Builder} to * create a request. * @return Result of the GetTokenBalance operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetTokenBalance * @see AWS API Documentation */ default GetTokenBalanceResponse getTokenBalance(Consumer getTokenBalanceRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return getTokenBalance(GetTokenBalanceRequest.builder().applyMutation(getTokenBalanceRequest).build()); } /** *

* Gets the details of a transaction. *

* *

* This action will return transaction details for all transactions that are confirmed on the blockchain, * even if they have not reached finality. *

*
* * @param getTransactionRequest * @return Result of the GetTransaction operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetTransaction * @see AWS API Documentation */ default GetTransactionResponse getTransaction(GetTransactionRequest getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Gets the details of a transaction. *

* *

* This action will return transaction details for all transactions that are confirmed on the blockchain, * even if they have not reached finality. *

*

*

* This is a convenience which creates an instance of the {@link GetTransactionRequest.Builder} avoiding the need to * create one manually via {@link GetTransactionRequest#builder()} *

* * @param getTransactionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.GetTransactionRequest.Builder} to * create a request. * @return Result of the GetTransaction operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws ResourceNotFoundException * The resource was not found. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.GetTransaction * @see AWS API Documentation */ default GetTransactionResponse getTransaction(Consumer getTransactionRequest) throws ThrottlingException, ValidationException, ResourceNotFoundException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return getTransaction(GetTransactionRequest.builder().applyMutation(getTransactionRequest).build()); } /** *

* Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet * address). *

*

* The Bitcoin blockchain networks do not support this operation. *

* * @param listAssetContractsRequest * @return Result of the ListAssetContracts operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListAssetContracts * @see AWS API Documentation */ default ListAssetContractsResponse listAssetContracts(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Lists all the contracts for a given contract type deployed by an address (either a contract address or a wallet * address). *

*

* The Bitcoin blockchain networks do not support this operation. *

*
*

* This is a convenience which creates an instance of the {@link ListAssetContractsRequest.Builder} avoiding the * need to create one manually via {@link ListAssetContractsRequest#builder()} *

* * @param listAssetContractsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest.Builder} to * create a request. * @return Result of the ListAssetContracts operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListAssetContracts * @see AWS API Documentation */ default ListAssetContractsResponse listAssetContracts(Consumer listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listAssetContracts(ListAssetContractsRequest.builder().applyMutation(listAssetContractsRequest).build()); } /** *

* This is a variant of * {@link #listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client
     *             .listAssetContractsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)} * operation. *

* * @param listAssetContractsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListAssetContracts * @see AWS API Documentation */ default ListAssetContractsIterable listAssetContractsPaginator(ListAssetContractsRequest listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return new ListAssetContractsIterable(this, listAssetContractsRequest); } /** *

* This is a variant of * {@link #listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client
     *             .listAssetContractsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListAssetContractsIterable responses = client.listAssetContractsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listAssetContracts(software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListAssetContractsRequest.Builder} avoiding the * need to create one manually via {@link ListAssetContractsRequest#builder()} *

* * @param listAssetContractsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListAssetContractsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListAssetContracts * @see AWS API Documentation */ default ListAssetContractsIterable listAssetContractsPaginator( Consumer listAssetContractsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listAssetContractsPaginator(ListAssetContractsRequest.builder().applyMutation(listAssetContractsRequest).build()); } /** *

* Lists all the transaction events for an address on the blockchain. *

* *

* This operation is only supported on the Bitcoin networks. *

*
* * @param listFilteredTransactionEventsRequest * @return Result of the ListFilteredTransactionEvents operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListFilteredTransactionEvents * @see AWS API Documentation */ default ListFilteredTransactionEventsResponse listFilteredTransactionEvents( ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Lists all the transaction events for an address on the blockchain. *

* *

* This operation is only supported on the Bitcoin networks. *

*

*

* This is a convenience which creates an instance of the {@link ListFilteredTransactionEventsRequest.Builder} * avoiding the need to create one manually via {@link ListFilteredTransactionEventsRequest#builder()} *

* * @param listFilteredTransactionEventsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest.Builder} * to create a request. * @return Result of the ListFilteredTransactionEvents operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListFilteredTransactionEvents * @see AWS API Documentation */ default ListFilteredTransactionEventsResponse listFilteredTransactionEvents( Consumer listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listFilteredTransactionEvents(ListFilteredTransactionEventsRequest.builder() .applyMutation(listFilteredTransactionEventsRequest).build()); } /** *

* This is a variant of * {@link #listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client
     *             .listFilteredTransactionEventsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)} * operation. *

* * @param listFilteredTransactionEventsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListFilteredTransactionEvents * @see AWS API Documentation */ default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator( ListFilteredTransactionEventsRequest listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return new ListFilteredTransactionEventsIterable(this, listFilteredTransactionEventsRequest); } /** *

* This is a variant of * {@link #listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client
     *             .listFilteredTransactionEventsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListFilteredTransactionEventsIterable responses = client.listFilteredTransactionEventsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listFilteredTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListFilteredTransactionEventsRequest.Builder} * avoiding the need to create one manually via {@link ListFilteredTransactionEventsRequest#builder()} *

* * @param listFilteredTransactionEventsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListFilteredTransactionEventsRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListFilteredTransactionEvents * @see AWS API Documentation */ default ListFilteredTransactionEventsIterable listFilteredTransactionEventsPaginator( Consumer listFilteredTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listFilteredTransactionEventsPaginator(ListFilteredTransactionEventsRequest.builder() .applyMutation(listFilteredTransactionEventsRequest).build()); } /** *

* This action returns the following for a given blockchain network: *

*
    *
  • *

    * Lists all token balances owned by an address (either a contract address or a wallet address). *

    *
  • *
  • *

    * Lists all token balances for all tokens created by a contract. *

    *
  • *
  • *

    * Lists all token balances for a given token. *

    *
  • *
* *

* You must always specify the network property of the tokenFilter when using this operation. *

*
* * @param listTokenBalancesRequest * @return Result of the ListTokenBalances operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTokenBalances * @see AWS API Documentation */ default ListTokenBalancesResponse listTokenBalances(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* This action returns the following for a given blockchain network: *

*
    *
  • *

    * Lists all token balances owned by an address (either a contract address or a wallet address). *

    *
  • *
  • *

    * Lists all token balances for all tokens created by a contract. *

    *
  • *
  • *

    * Lists all token balances for a given token. *

    *
  • *
* *

* You must always specify the network property of the tokenFilter when using this operation. *

*

*

* This is a convenience which creates an instance of the {@link ListTokenBalancesRequest.Builder} avoiding the need * to create one manually via {@link ListTokenBalancesRequest#builder()} *

* * @param listTokenBalancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest.Builder} to * create a request. * @return Result of the ListTokenBalances operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTokenBalances * @see AWS API Documentation */ default ListTokenBalancesResponse listTokenBalances(Consumer listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTokenBalances(ListTokenBalancesRequest.builder().applyMutation(listTokenBalancesRequest).build()); } /** *

* This is a variant of * {@link #listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client
     *             .listTokenBalancesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)} * operation. *

* * @param listTokenBalancesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTokenBalances * @see AWS API Documentation */ default ListTokenBalancesIterable listTokenBalancesPaginator(ListTokenBalancesRequest listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return new ListTokenBalancesIterable(this, listTokenBalancesRequest); } /** *

* This is a variant of * {@link #listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client
     *             .listTokenBalancesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTokenBalancesIterable responses = client.listTokenBalancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTokenBalances(software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListTokenBalancesRequest.Builder} avoiding the need * to create one manually via {@link ListTokenBalancesRequest#builder()} *

* * @param listTokenBalancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTokenBalancesRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTokenBalances * @see AWS API Documentation */ default ListTokenBalancesIterable listTokenBalancesPaginator( Consumer listTokenBalancesRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTokenBalancesPaginator(ListTokenBalancesRequest.builder().applyMutation(listTokenBalancesRequest).build()); } /** *

* Lists all the transaction events for a transaction *

* *

* This action will return transaction details for all transactions that are confirmed on the blockchain, * even if they have not reached finality. *

*
* * @param listTransactionEventsRequest * @return Result of the ListTransactionEvents operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactionEvents * @see AWS API Documentation */ default ListTransactionEventsResponse listTransactionEvents(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Lists all the transaction events for a transaction *

* *

* This action will return transaction details for all transactions that are confirmed on the blockchain, * even if they have not reached finality. *

*

*

* This is a convenience which creates an instance of the {@link ListTransactionEventsRequest.Builder} avoiding the * need to create one manually via {@link ListTransactionEventsRequest#builder()} *

* * @param listTransactionEventsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest.Builder} * to create a request. * @return Result of the ListTransactionEvents operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactionEvents * @see AWS API Documentation */ default ListTransactionEventsResponse listTransactionEvents( Consumer listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTransactionEvents(ListTransactionEventsRequest.builder().applyMutation(listTransactionEventsRequest).build()); } /** *

* This is a variant of * {@link #listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client
     *             .listTransactionEventsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)} * operation. *

* * @param listTransactionEventsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactionEvents * @see AWS API Documentation */ default ListTransactionEventsIterable listTransactionEventsPaginator(ListTransactionEventsRequest listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return new ListTransactionEventsIterable(this, listTransactionEventsRequest); } /** *

* This is a variant of * {@link #listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client
     *             .listTransactionEventsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionEventsIterable responses = client.listTransactionEventsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTransactionEvents(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListTransactionEventsRequest.Builder} avoiding the * need to create one manually via {@link ListTransactionEventsRequest#builder()} *

* * @param listTransactionEventsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionEventsRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactionEvents * @see AWS API Documentation */ default ListTransactionEventsIterable listTransactionEventsPaginator( Consumer listTransactionEventsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTransactionEventsPaginator(ListTransactionEventsRequest.builder().applyMutation(listTransactionEventsRequest) .build()); } /** *

* Lists all the transaction events for a transaction. *

* * @param listTransactionsRequest * @return Result of the ListTransactions operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactions * @see AWS API Documentation */ default ListTransactionsResponse listTransactions(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { throw new UnsupportedOperationException(); } /** *

* Lists all the transaction events for a transaction. *

*
*

* This is a convenience which creates an instance of the {@link ListTransactionsRequest.Builder} avoiding the need * to create one manually via {@link ListTransactionsRequest#builder()} *

* * @param listTransactionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest.Builder} to * create a request. * @return Result of the ListTransactions operation returned by the service. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactions * @see AWS API Documentation */ default ListTransactionsResponse listTransactions(Consumer listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTransactions(ListTransactionsRequest.builder().applyMutation(listTransactionsRequest).build()); } /** *

* This is a variant of * {@link #listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client
     *             .listTransactionsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)} * operation. *

* * @param listTransactionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactions * @see AWS API Documentation */ default ListTransactionsIterable listTransactionsPaginator(ListTransactionsRequest listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return new ListTransactionsIterable(this, listTransactionsRequest); } /** *

* This is a variant of * {@link #listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client
     *             .listTransactionsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchainquery.paginators.ListTransactionsIterable responses = client.listTransactionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of maxResults won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #listTransactions(software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListTransactionsRequest.Builder} avoiding the need * to create one manually via {@link ListTransactionsRequest#builder()} *

* * @param listTransactionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.managedblockchainquery.model.ListTransactionsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ThrottlingException * The request or operation couldn't be performed because a service is throttling requests. The most common * source of throttling errors is when you create resources that exceed your service limit for this resource * type. Request a limit increase or delete unused resources, if possible. * @throws ValidationException * The resource passed is invalid. * @throws AccessDeniedException * The Amazon Web Services account doesn’t have access to this resource. * @throws InternalServerException * The request processing has failed because of an internal error in the service. * @throws ServiceQuotaExceededException * The service quota has been exceeded for this resource. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws ManagedBlockchainQueryException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainQueryClient.ListTransactions * @see AWS API Documentation */ default ListTransactionsIterable listTransactionsPaginator(Consumer listTransactionsRequest) throws ThrottlingException, ValidationException, AccessDeniedException, InternalServerException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ManagedBlockchainQueryException { return listTransactionsPaginator(ListTransactionsRequest.builder().applyMutation(listTransactionsRequest).build()); } /** * Create a {@link ManagedBlockchainQueryClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static ManagedBlockchainQueryClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link ManagedBlockchainQueryClient}. */ static ManagedBlockchainQueryClientBuilder builder() { return new DefaultManagedBlockchainQueryClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default ManagedBlockchainQueryServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy