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

software.amazon.awssdk.services.managedblockchain.ManagedBlockchainClient 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.managedblockchain;

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.exception.AwsServiceException;
import software.amazon.awssdk.core.SdkClient;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.managedblockchain.model.AccessDeniedException;
import software.amazon.awssdk.services.managedblockchain.model.CreateMemberRequest;
import software.amazon.awssdk.services.managedblockchain.model.CreateMemberResponse;
import software.amazon.awssdk.services.managedblockchain.model.CreateNetworkRequest;
import software.amazon.awssdk.services.managedblockchain.model.CreateNetworkResponse;
import software.amazon.awssdk.services.managedblockchain.model.CreateNodeRequest;
import software.amazon.awssdk.services.managedblockchain.model.CreateNodeResponse;
import software.amazon.awssdk.services.managedblockchain.model.CreateProposalRequest;
import software.amazon.awssdk.services.managedblockchain.model.CreateProposalResponse;
import software.amazon.awssdk.services.managedblockchain.model.DeleteMemberRequest;
import software.amazon.awssdk.services.managedblockchain.model.DeleteMemberResponse;
import software.amazon.awssdk.services.managedblockchain.model.DeleteNodeRequest;
import software.amazon.awssdk.services.managedblockchain.model.DeleteNodeResponse;
import software.amazon.awssdk.services.managedblockchain.model.GetMemberRequest;
import software.amazon.awssdk.services.managedblockchain.model.GetMemberResponse;
import software.amazon.awssdk.services.managedblockchain.model.GetNetworkRequest;
import software.amazon.awssdk.services.managedblockchain.model.GetNetworkResponse;
import software.amazon.awssdk.services.managedblockchain.model.GetNodeRequest;
import software.amazon.awssdk.services.managedblockchain.model.GetNodeResponse;
import software.amazon.awssdk.services.managedblockchain.model.GetProposalRequest;
import software.amazon.awssdk.services.managedblockchain.model.GetProposalResponse;
import software.amazon.awssdk.services.managedblockchain.model.IllegalActionException;
import software.amazon.awssdk.services.managedblockchain.model.InternalServiceErrorException;
import software.amazon.awssdk.services.managedblockchain.model.InvalidRequestException;
import software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse;
import software.amazon.awssdk.services.managedblockchain.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.managedblockchain.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.managedblockchain.model.ManagedBlockchainException;
import software.amazon.awssdk.services.managedblockchain.model.RejectInvitationRequest;
import software.amazon.awssdk.services.managedblockchain.model.RejectInvitationResponse;
import software.amazon.awssdk.services.managedblockchain.model.ResourceAlreadyExistsException;
import software.amazon.awssdk.services.managedblockchain.model.ResourceLimitExceededException;
import software.amazon.awssdk.services.managedblockchain.model.ResourceNotFoundException;
import software.amazon.awssdk.services.managedblockchain.model.ResourceNotReadyException;
import software.amazon.awssdk.services.managedblockchain.model.TagResourceRequest;
import software.amazon.awssdk.services.managedblockchain.model.TagResourceResponse;
import software.amazon.awssdk.services.managedblockchain.model.ThrottlingException;
import software.amazon.awssdk.services.managedblockchain.model.TooManyTagsException;
import software.amazon.awssdk.services.managedblockchain.model.UntagResourceRequest;
import software.amazon.awssdk.services.managedblockchain.model.UntagResourceResponse;
import software.amazon.awssdk.services.managedblockchain.model.UpdateMemberRequest;
import software.amazon.awssdk.services.managedblockchain.model.UpdateMemberResponse;
import software.amazon.awssdk.services.managedblockchain.model.UpdateNodeRequest;
import software.amazon.awssdk.services.managedblockchain.model.UpdateNodeResponse;
import software.amazon.awssdk.services.managedblockchain.model.VoteOnProposalRequest;
import software.amazon.awssdk.services.managedblockchain.model.VoteOnProposalResponse;
import software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsIterable;
import software.amazon.awssdk.services.managedblockchain.paginators.ListMembersIterable;
import software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksIterable;
import software.amazon.awssdk.services.managedblockchain.paginators.ListNodesIterable;
import software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesIterable;
import software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsIterable;

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

*

* Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source * frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run * transactions and share data without the need for a trusted, central authority. *

*

* Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental * differences between the frameworks, some API actions or data types may only apply in the context of one framework and * not the other. For example, actions related to Hyperledger Fabric network members such as CreateMember * and DeleteMember do not apply to Ethereum. *

*

* The description for each action indicates the framework or frameworks to which it applies. Data types and properties * that apply only in the context of a particular framework are similarly indicated. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface ManagedBlockchainClient extends SdkClient { String SERVICE_NAME = "managedblockchain"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "managedblockchain"; /** * Create a {@link ManagedBlockchainClient} 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 ManagedBlockchainClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link ManagedBlockchainClient}. */ static ManagedBlockchainClientBuilder builder() { return new DefaultManagedBlockchainClientBuilder(); } /** *

* Creates a member within a Managed Blockchain network. *

*

* Applies only to Hyperledger Fabric. *

* * @param createMemberRequest * @return Result of the CreateMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateMember * @see AWS API Documentation */ default CreateMemberResponse createMember(CreateMemberRequest createMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceAlreadyExistsException, ResourceNotReadyException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Creates a member within a Managed Blockchain network. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param createMemberRequest * A {@link Consumer} that will call methods on {@link CreateMemberInput.Builder} to create a request. * @return Result of the CreateMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateMember * @see AWS API Documentation */ default CreateMemberResponse createMember(Consumer createMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceAlreadyExistsException, ResourceNotReadyException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { return createMember(CreateMemberRequest.builder().applyMutation(createMemberRequest).build()); } /** *

* Creates a new blockchain network using Amazon Managed Blockchain. *

*

* Applies only to Hyperledger Fabric. *

* * @param createNetworkRequest * @return Result of the CreateNetwork operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateNetwork * @see AWS API Documentation */ default CreateNetworkResponse createNetwork(CreateNetworkRequest createNetworkRequest) throws InvalidRequestException, AccessDeniedException, ResourceAlreadyExistsException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Creates a new blockchain network using Amazon Managed Blockchain. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param createNetworkRequest * A {@link Consumer} that will call methods on {@link CreateNetworkInput.Builder} to create a request. * @return Result of the CreateNetwork operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateNetwork * @see AWS API Documentation */ default CreateNetworkResponse createNetwork(Consumer createNetworkRequest) throws InvalidRequestException, AccessDeniedException, ResourceAlreadyExistsException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { return createNetwork(CreateNetworkRequest.builder().applyMutation(createNetworkRequest).build()); } /** *

* Creates a node on the specified blockchain network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param createNodeRequest * @return Result of the CreateNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateNode * @see AWS * API Documentation */ default CreateNodeResponse createNode(CreateNodeRequest createNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceAlreadyExistsException, ResourceNotReadyException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Creates a node on the specified blockchain network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param createNodeRequest * A {@link Consumer} that will call methods on {@link CreateNodeInput.Builder} to create a request. * @return Result of the CreateNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceAlreadyExistsException * A resource request is issued for a resource that already exists. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateNode * @see AWS * API Documentation */ default CreateNodeResponse createNode(Consumer createNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceAlreadyExistsException, ResourceNotReadyException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { return createNode(CreateNodeRequest.builder().applyMutation(createNodeRequest).build()); } /** *

* Creates a proposal for a change to the network that other members of the network can vote on, for example, a * proposal to add a new member to the network. Any member can create a proposal. *

*

* Applies only to Hyperledger Fabric. *

* * @param createProposalRequest * @return Result of the CreateProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateProposal * @see AWS API Documentation */ default CreateProposalResponse createProposal(CreateProposalRequest createProposalRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Creates a proposal for a change to the network that other members of the network can vote on, for example, a * proposal to add a new member to the network. Any member can create a proposal. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param createProposalRequest * A {@link Consumer} that will call methods on {@link CreateProposalInput.Builder} to create a request. * @return Result of the CreateProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws TooManyTagsException * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.CreateProposal * @see AWS API Documentation */ default CreateProposalResponse createProposal(Consumer createProposalRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, TooManyTagsException, AwsServiceException, SdkClientException, ManagedBlockchainException { return createProposal(CreateProposalRequest.builder().applyMutation(createProposalRequest).build()); } /** *

* Deletes a member. Deleting a member removes the member and all associated resources from the network. * DeleteMember can only be called for a specified MemberId if the principal performing * the action is associated with the AWS account that owns the member. In all other cases, the * DeleteMember action is carried out as the result of an approved proposal to remove a member. If * MemberId is the last member in a network specified by the last AWS account, the network is deleted * also. *

*

* Applies only to Hyperledger Fabric. *

* * @param deleteMemberRequest * @return Result of the DeleteMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.DeleteMember * @see AWS API Documentation */ default DeleteMemberResponse deleteMember(DeleteMemberRequest deleteMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Deletes a member. Deleting a member removes the member and all associated resources from the network. * DeleteMember can only be called for a specified MemberId if the principal performing * the action is associated with the AWS account that owns the member. In all other cases, the * DeleteMember action is carried out as the result of an approved proposal to remove a member. If * MemberId is the last member in a network specified by the last AWS account, the network is deleted * also. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param deleteMemberRequest * A {@link Consumer} that will call methods on {@link DeleteMemberInput.Builder} to create a request. * @return Result of the DeleteMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.DeleteMember * @see AWS API Documentation */ default DeleteMemberResponse deleteMember(Consumer deleteMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return deleteMember(DeleteMemberRequest.builder().applyMutation(deleteMemberRequest).build()); } /** *

* Deletes a node that your AWS account owns. All data on the node is lost and cannot be recovered. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param deleteNodeRequest * @return Result of the DeleteNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.DeleteNode * @see AWS * API Documentation */ default DeleteNodeResponse deleteNode(DeleteNodeRequest deleteNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Deletes a node that your AWS account owns. All data on the node is lost and cannot be recovered. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param deleteNodeRequest * A {@link Consumer} that will call methods on {@link DeleteNodeInput.Builder} to create a request. * @return Result of the DeleteNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.DeleteNode * @see AWS * API Documentation */ default DeleteNodeResponse deleteNode(Consumer deleteNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return deleteNode(DeleteNodeRequest.builder().applyMutation(deleteNodeRequest).build()); } /** *

* Returns detailed information about a member. *

*

* Applies only to Hyperledger Fabric. *

* * @param getMemberRequest * @return Result of the GetMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetMember * @see AWS * API Documentation */ default GetMemberResponse getMember(GetMemberRequest getMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns detailed information about a member. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param getMemberRequest * A {@link Consumer} that will call methods on {@link GetMemberInput.Builder} to create a request. * @return Result of the GetMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetMember * @see AWS * API Documentation */ default GetMemberResponse getMember(Consumer getMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return getMember(GetMemberRequest.builder().applyMutation(getMemberRequest).build()); } /** *

* Returns detailed information about a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param getNetworkRequest * @return Result of the GetNetwork operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetNetwork * @see AWS * API Documentation */ default GetNetworkResponse getNetwork(GetNetworkRequest getNetworkRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns detailed information about a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param getNetworkRequest * A {@link Consumer} that will call methods on {@link GetNetworkInput.Builder} to create a request. * @return Result of the GetNetwork operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetNetwork * @see AWS * API Documentation */ default GetNetworkResponse getNetwork(Consumer getNetworkRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return getNetwork(GetNetworkRequest.builder().applyMutation(getNetworkRequest).build()); } /** *

* Returns detailed information about a node. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param getNodeRequest * @return Result of the GetNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetNode * @see AWS API * Documentation */ default GetNodeResponse getNode(GetNodeRequest getNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns detailed information about a node. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param getNodeRequest * A {@link Consumer} that will call methods on {@link GetNodeInput.Builder} to create a request. * @return Result of the GetNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetNode * @see AWS API * Documentation */ default GetNodeResponse getNode(Consumer getNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return getNode(GetNodeRequest.builder().applyMutation(getNodeRequest).build()); } /** *

* Returns detailed information about a proposal. *

*

* Applies only to Hyperledger Fabric. *

* * @param getProposalRequest * @return Result of the GetProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetProposal * @see AWS * API Documentation */ default GetProposalResponse getProposal(GetProposalRequest getProposalRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns detailed information about a proposal. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param getProposalRequest * A {@link Consumer} that will call methods on {@link GetProposalInput.Builder} to create a request. * @return Result of the GetProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.GetProposal * @see AWS * API Documentation */ default GetProposalResponse getProposal(Consumer getProposalRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return getProposal(GetProposalRequest.builder().applyMutation(getProposalRequest).build()); } /** *

* Returns a list of all invitations for the current AWS account. *

*

* Applies only to Hyperledger Fabric. *

* * @param listInvitationsRequest * @return Result of the ListInvitations operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListInvitations * @see AWS API Documentation */ default ListInvitationsResponse listInvitations(ListInvitationsRequest listInvitationsRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of all invitations for the current AWS account. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param listInvitationsRequest * A {@link Consumer} that will call methods on {@link ListInvitationsInput.Builder} to create a request. * @return Result of the ListInvitations operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListInvitations * @see AWS API Documentation */ default ListInvitationsResponse listInvitations(Consumer listInvitationsRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listInvitations(ListInvitationsRequest.builder().applyMutation(listInvitationsRequest).build()); } /** *

* Returns a list of all invitations for the current AWS account. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)} * 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.managedblockchain.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsIterable responses = client
     *             .listInvitationsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(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 #listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)} * operation. *

* * @param listInvitationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListInvitations * @see AWS API Documentation */ default ListInvitationsIterable listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of all invitations for the current AWS account. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)} * 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.managedblockchain.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsIterable responses = client
     *             .listInvitationsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListInvitationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(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 #listInvitations(software.amazon.awssdk.services.managedblockchain.model.ListInvitationsRequest)} * operation. *

*

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

* * @param listInvitationsRequest * A {@link Consumer} that will call methods on {@link ListInvitationsInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws ResourceLimitExceededException * The maximum number of resources of that type already exist. Ensure the resources requested are within the * boundaries of the service edition and your account limits. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListInvitations * @see AWS API Documentation */ default ListInvitationsIterable listInvitationsPaginator(Consumer listInvitationsRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, ResourceLimitExceededException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listInvitationsPaginator(ListInvitationsRequest.builder().applyMutation(listInvitationsRequest).build()); } /** *

* Returns a list of the members in a network and properties of their configurations. *

*

* Applies only to Hyperledger Fabric. *

* * @param listMembersRequest * @return Result of the ListMembers operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListMembers * @see AWS * API Documentation */ default ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of the members in a network and properties of their configurations. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param listMembersRequest * A {@link Consumer} that will call methods on {@link ListMembersInput.Builder} to create a request. * @return Result of the ListMembers operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListMembers * @see AWS * API Documentation */ default ListMembersResponse listMembers(Consumer listMembersRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listMembers(ListMembersRequest.builder().applyMutation(listMembersRequest).build()); } /** *

* Returns a list of the members in a network and properties of their configurations. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)} 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.managedblockchain.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListMembersIterable responses = client
     *             .listMembersPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListMembersIterable responses = client.listMembersPaginator(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 #listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)} operation. *

* * @param listMembersRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListMembers * @see AWS * API Documentation */ default ListMembersIterable listMembersPaginator(ListMembersRequest listMembersRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of the members in a network and properties of their configurations. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)} 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.managedblockchain.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListMembersIterable responses = client
     *             .listMembersPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListMembersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListMembersIterable responses = client.listMembersPaginator(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 #listMembers(software.amazon.awssdk.services.managedblockchain.model.ListMembersRequest)} operation. *

*

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

* * @param listMembersRequest * A {@link Consumer} that will call methods on {@link ListMembersInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListMembers * @see AWS * API Documentation */ default ListMembersIterable listMembersPaginator(Consumer listMembersRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listMembersPaginator(ListMembersRequest.builder().applyMutation(listMembersRequest).build()); } /** *

* Returns information about the networks in which the current AWS account participates. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param listNetworksRequest * @return Result of the ListNetworks operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNetworks * @see AWS API Documentation */ default ListNetworksResponse listNetworks(ListNetworksRequest listNetworksRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns information about the networks in which the current AWS account participates. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param listNetworksRequest * A {@link Consumer} that will call methods on {@link ListNetworksInput.Builder} to create a request. * @return Result of the ListNetworks operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNetworks * @see AWS API Documentation */ default ListNetworksResponse listNetworks(Consumer listNetworksRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listNetworks(ListNetworksRequest.builder().applyMutation(listNetworksRequest).build()); } /** *

* Returns information about the networks in which the current AWS account participates. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

* This is a variant of * {@link #listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)} 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.managedblockchain.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksIterable responses = client
     *             .listNetworksPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksIterable responses = client.listNetworksPaginator(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 #listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)} operation. *

* * @param listNetworksRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNetworks * @see AWS API Documentation */ default ListNetworksIterable listNetworksPaginator(ListNetworksRequest listNetworksRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns information about the networks in which the current AWS account participates. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

* This is a variant of * {@link #listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)} 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.managedblockchain.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksIterable responses = client
     *             .listNetworksPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListNetworksResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListNetworksIterable responses = client.listNetworksPaginator(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 #listNetworks(software.amazon.awssdk.services.managedblockchain.model.ListNetworksRequest)} operation. *

*

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

* * @param listNetworksRequest * A {@link Consumer} that will call methods on {@link ListNetworksInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNetworks * @see AWS API Documentation */ default ListNetworksIterable listNetworksPaginator(Consumer listNetworksRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listNetworksPaginator(ListNetworksRequest.builder().applyMutation(listNetworksRequest).build()); } /** *

* Returns information about the nodes within a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

* * @param listNodesRequest * @return Result of the ListNodes operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNodes * @see AWS * API Documentation */ default ListNodesResponse listNodes(ListNodesRequest listNodesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns information about the nodes within a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

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

* * @param listNodesRequest * A {@link Consumer} that will call methods on {@link ListNodesInput.Builder} to create a request. * @return Result of the ListNodes operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNodes * @see AWS * API Documentation */ default ListNodesResponse listNodes(Consumer listNodesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listNodes(ListNodesRequest.builder().applyMutation(listNodesRequest).build()); } /** *

* Returns information about the nodes within a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

* This is a variant of {@link #listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)} * 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.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(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 #listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)} operation. *

* * @param listNodesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNodes * @see AWS * API Documentation */ default ListNodesIterable listNodesPaginator(ListNodesRequest listNodesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns information about the nodes within a network. *

*

* Applies to Hyperledger Fabric and Ethereum. *

*
*

* This is a variant of {@link #listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)} * 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.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListNodesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListNodesIterable responses = client.listNodesPaginator(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 #listNodes(software.amazon.awssdk.services.managedblockchain.model.ListNodesRequest)} operation. *

*

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

* * @param listNodesRequest * A {@link Consumer} that will call methods on {@link ListNodesInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListNodes * @see AWS * API Documentation */ default ListNodesIterable listNodesPaginator(Consumer listNodesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listNodesPaginator(ListNodesRequest.builder().applyMutation(listNodesRequest).build()); } /** *

* Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of * the member that cast the vote. *

*

* Applies only to Hyperledger Fabric. *

* * @param listProposalVotesRequest * @return Result of the ListProposalVotes operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposalVotes * @see AWS API Documentation */ default ListProposalVotesResponse listProposalVotes(ListProposalVotesRequest listProposalVotesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of * the member that cast the vote. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param listProposalVotesRequest * A {@link Consumer} that will call methods on {@link ListProposalVotesInput.Builder} to create a request. * @return Result of the ListProposalVotes operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposalVotes * @see AWS API Documentation */ default ListProposalVotesResponse listProposalVotes(Consumer listProposalVotesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listProposalVotes(ListProposalVotesRequest.builder().applyMutation(listProposalVotesRequest).build()); } /** *

* Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of * the member that cast the vote. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)} * 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.managedblockchain.paginators.ListProposalVotesIterable responses = client.listProposalVotesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesIterable responses = client
     *             .listProposalVotesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesIterable responses = client.listProposalVotesPaginator(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 #listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)} * operation. *

* * @param listProposalVotesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposalVotes * @see AWS API Documentation */ default ListProposalVotesIterable listProposalVotesPaginator(ListProposalVotesRequest listProposalVotesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of * the member that cast the vote. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)} * 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.managedblockchain.paginators.ListProposalVotesIterable responses = client.listProposalVotesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesIterable responses = client
     *             .listProposalVotesPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListProposalVotesIterable responses = client.listProposalVotesPaginator(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 #listProposalVotes(software.amazon.awssdk.services.managedblockchain.model.ListProposalVotesRequest)} * operation. *

*

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

* * @param listProposalVotesRequest * A {@link Consumer} that will call methods on {@link ListProposalVotesInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposalVotes * @see AWS API Documentation */ default ListProposalVotesIterable listProposalVotesPaginator( Consumer listProposalVotesRequest) throws InvalidRequestException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listProposalVotesPaginator(ListProposalVotesRequest.builder().applyMutation(listProposalVotesRequest).build()); } /** *

* Returns a list of proposals for the network. *

*

* Applies only to Hyperledger Fabric. *

* * @param listProposalsRequest * @return Result of the ListProposals operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposals * @see AWS API Documentation */ default ListProposalsResponse listProposals(ListProposalsRequest listProposalsRequest) throws InvalidRequestException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of proposals for the network. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param listProposalsRequest * A {@link Consumer} that will call methods on {@link ListProposalsInput.Builder} to create a request. * @return Result of the ListProposals operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposals * @see AWS API Documentation */ default ListProposalsResponse listProposals(Consumer listProposalsRequest) throws InvalidRequestException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listProposals(ListProposalsRequest.builder().applyMutation(listProposalsRequest).build()); } /** *

* Returns a list of proposals for the network. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)} 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.managedblockchain.paginators.ListProposalsIterable responses = client.listProposalsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsIterable responses = client
     *             .listProposalsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsIterable responses = client.listProposalsPaginator(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 #listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)} * operation. *

* * @param listProposalsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposals * @see AWS API Documentation */ default ListProposalsIterable listProposalsPaginator(ListProposalsRequest listProposalsRequest) throws InvalidRequestException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of proposals for the network. *

*

* Applies only to Hyperledger Fabric. *

*
*

* This is a variant of * {@link #listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)} 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.managedblockchain.paginators.ListProposalsIterable responses = client.listProposalsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsIterable responses = client
     *             .listProposalsPaginator(request);
     *     for (software.amazon.awssdk.services.managedblockchain.model.ListProposalsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.managedblockchain.paginators.ListProposalsIterable responses = client.listProposalsPaginator(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 #listProposals(software.amazon.awssdk.services.managedblockchain.model.ListProposalsRequest)} * operation. *

*

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

* * @param listProposalsRequest * A {@link Consumer} that will call methods on {@link ListProposalsInput.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListProposals * @see AWS API Documentation */ default ListProposalsIterable listProposalsPaginator(Consumer listProposalsRequest) throws InvalidRequestException, ResourceNotFoundException, AccessDeniedException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listProposalsPaginator(ListProposalsRequest.builder().applyMutation(listProposalsRequest).build()); } /** *

* Returns a list of tags for the specified resource. Each tag consists of a key and optional value. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Returns a list of tags for the specified resource. Each tag consists of a key and optional value. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*
*

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

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on {@link ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.ListTagsForResource * @see AWS API Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has * received an invitation to create a member and join a network. *

*

* Applies only to Hyperledger Fabric. *

* * @param rejectInvitationRequest * @return Result of the RejectInvitation operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws IllegalActionException * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.RejectInvitation * @see AWS API Documentation */ default RejectInvitationResponse rejectInvitation(RejectInvitationRequest rejectInvitationRequest) throws InvalidRequestException, IllegalActionException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has * received an invitation to create a member and join a network. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param rejectInvitationRequest * A {@link Consumer} that will call methods on {@link RejectInvitationInput.Builder} to create a request. * @return Result of the RejectInvitation operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws IllegalActionException * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.RejectInvitation * @see AWS API Documentation */ default RejectInvitationResponse rejectInvitation(Consumer rejectInvitationRequest) throws InvalidRequestException, IllegalActionException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return rejectInvitation(RejectInvitationRequest.builder().applyMutation(rejectInvitationRequest).build()); } /** *

* Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of * a key and optional value. *

*

* When you specify a tag key that already exists, the tag value is overwritten with the new value. Use * UntagResource to remove tag keys. *

*

* A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and * returns an error. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws TooManyTagsException * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.TagResource * @see AWS * API Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, TooManyTagsException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Adds or overwrites the specified tags for the specified Amazon Managed Blockchain resource. Each tag consists of * a key and optional value. *

*

* When you specify a tag key that already exists, the tag value is overwritten with the new value. Use * UntagResource to remove tag keys. *

*

* A resource can have up to 50 tags. If you try to create more than 50 tags for a resource, your request fails and * returns an error. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*
*

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

* * @param tagResourceRequest * A {@link Consumer} that will call methods on {@link TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws TooManyTagsException * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.TagResource * @see AWS * API Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, TooManyTagsException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Removes the specified tags from the Amazon Managed Blockchain resource. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UntagResource * @see AWS API Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Removes the specified tags from the Amazon Managed Blockchain resource. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*
*

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

* * @param untagResourceRequest * A {@link Consumer} that will call methods on {@link UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ResourceNotReadyException * The requested resource exists but is not in a status that can complete the operation. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UntagResource * @see AWS API Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws InternalServiceErrorException, InvalidRequestException, ResourceNotFoundException, ResourceNotReadyException, AwsServiceException, SdkClientException, ManagedBlockchainException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates a member configuration with new parameters. *

*

* Applies only to Hyperledger Fabric. *

* * @param updateMemberRequest * @return Result of the UpdateMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UpdateMember * @see AWS API Documentation */ default UpdateMemberResponse updateMember(UpdateMemberRequest updateMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Updates a member configuration with new parameters. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param updateMemberRequest * A {@link Consumer} that will call methods on {@link UpdateMemberInput.Builder} to create a request. * @return Result of the UpdateMember operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UpdateMember * @see AWS API Documentation */ default UpdateMemberResponse updateMember(Consumer updateMemberRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return updateMember(UpdateMemberRequest.builder().applyMutation(updateMemberRequest).build()); } /** *

* Updates a node configuration with new parameters. *

*

* Applies only to Hyperledger Fabric. *

* * @param updateNodeRequest * @return Result of the UpdateNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UpdateNode * @see AWS * API Documentation */ default UpdateNodeResponse updateNode(UpdateNodeRequest updateNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Updates a node configuration with new parameters. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param updateNodeRequest * A {@link Consumer} that will call methods on {@link UpdateNodeInput.Builder} to create a request. * @return Result of the UpdateNode operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.UpdateNode * @see AWS * API Documentation */ default UpdateNodeResponse updateNode(Consumer updateNodeRequest) throws InvalidRequestException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return updateNode(UpdateNodeRequest.builder().applyMutation(updateNodeRequest).build()); } /** *

* Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by * VoterMemberId, must be in the same AWS account as the principal that calls the action. *

*

* Applies only to Hyperledger Fabric. *

* * @param voteOnProposalRequest * @return Result of the VoteOnProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws IllegalActionException * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.VoteOnProposal * @see AWS API Documentation */ default VoteOnProposalResponse voteOnProposal(VoteOnProposalRequest voteOnProposalRequest) throws InvalidRequestException, IllegalActionException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { throw new UnsupportedOperationException(); } /** *

* Casts a vote for a specified ProposalId on behalf of a member. The member to vote as, specified by * VoterMemberId, must be in the same AWS account as the principal that calls the action. *

*

* Applies only to Hyperledger Fabric. *

*
*

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

* * @param voteOnProposalRequest * A {@link Consumer} that will call methods on {@link VoteOnProposalInput.Builder} to create a request. * @return Result of the VoteOnProposal operation returned by the service. * @throws InvalidRequestException * The action or operation requested is invalid. Verify that the action is typed correctly. * @throws IllegalActionException * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ResourceNotFoundException * A requested resource does not exist. It may have been deleted or referenced inaccurately. * @throws ThrottlingException * The request or operation could not be performed because a service is throttling requests. The most common * source of throttling errors is launching EC2 instances such that your service limit for EC2 instances is * exceeded. Request a limit increase or delete unused resources if possible. * @throws InternalServiceErrorException * The request processing has failed because of an unknown error, exception or failure. * @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 ManagedBlockchainException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample ManagedBlockchainClient.VoteOnProposal * @see AWS API Documentation */ default VoteOnProposalResponse voteOnProposal(Consumer voteOnProposalRequest) throws InvalidRequestException, IllegalActionException, AccessDeniedException, ResourceNotFoundException, ThrottlingException, InternalServiceErrorException, AwsServiceException, SdkClientException, ManagedBlockchainException { return voteOnProposal(VoteOnProposalRequest.builder().applyMutation(voteOnProposalRequest).build()); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy