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

software.amazon.awssdk.services.kafka.KafkaClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Kafka module holds the client classes that are used for communicating with Kafka.

There is a newer version: 2.29.15
Show newest version
/*
 * 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.kafka;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.kafka.model.BadRequestException;
import software.amazon.awssdk.services.kafka.model.BatchAssociateScramSecretRequest;
import software.amazon.awssdk.services.kafka.model.BatchAssociateScramSecretResponse;
import software.amazon.awssdk.services.kafka.model.BatchDisassociateScramSecretRequest;
import software.amazon.awssdk.services.kafka.model.BatchDisassociateScramSecretResponse;
import software.amazon.awssdk.services.kafka.model.ConflictException;
import software.amazon.awssdk.services.kafka.model.CreateClusterRequest;
import software.amazon.awssdk.services.kafka.model.CreateClusterResponse;
import software.amazon.awssdk.services.kafka.model.CreateClusterV2Request;
import software.amazon.awssdk.services.kafka.model.CreateClusterV2Response;
import software.amazon.awssdk.services.kafka.model.CreateConfigurationRequest;
import software.amazon.awssdk.services.kafka.model.CreateConfigurationResponse;
import software.amazon.awssdk.services.kafka.model.CreateReplicatorRequest;
import software.amazon.awssdk.services.kafka.model.CreateReplicatorResponse;
import software.amazon.awssdk.services.kafka.model.CreateVpcConnectionRequest;
import software.amazon.awssdk.services.kafka.model.CreateVpcConnectionResponse;
import software.amazon.awssdk.services.kafka.model.DeleteClusterPolicyRequest;
import software.amazon.awssdk.services.kafka.model.DeleteClusterPolicyResponse;
import software.amazon.awssdk.services.kafka.model.DeleteClusterRequest;
import software.amazon.awssdk.services.kafka.model.DeleteClusterResponse;
import software.amazon.awssdk.services.kafka.model.DeleteConfigurationRequest;
import software.amazon.awssdk.services.kafka.model.DeleteConfigurationResponse;
import software.amazon.awssdk.services.kafka.model.DeleteReplicatorRequest;
import software.amazon.awssdk.services.kafka.model.DeleteReplicatorResponse;
import software.amazon.awssdk.services.kafka.model.DeleteVpcConnectionRequest;
import software.amazon.awssdk.services.kafka.model.DeleteVpcConnectionResponse;
import software.amazon.awssdk.services.kafka.model.DescribeClusterOperationRequest;
import software.amazon.awssdk.services.kafka.model.DescribeClusterOperationResponse;
import software.amazon.awssdk.services.kafka.model.DescribeClusterOperationV2Request;
import software.amazon.awssdk.services.kafka.model.DescribeClusterOperationV2Response;
import software.amazon.awssdk.services.kafka.model.DescribeClusterRequest;
import software.amazon.awssdk.services.kafka.model.DescribeClusterResponse;
import software.amazon.awssdk.services.kafka.model.DescribeClusterV2Request;
import software.amazon.awssdk.services.kafka.model.DescribeClusterV2Response;
import software.amazon.awssdk.services.kafka.model.DescribeConfigurationRequest;
import software.amazon.awssdk.services.kafka.model.DescribeConfigurationResponse;
import software.amazon.awssdk.services.kafka.model.DescribeConfigurationRevisionRequest;
import software.amazon.awssdk.services.kafka.model.DescribeConfigurationRevisionResponse;
import software.amazon.awssdk.services.kafka.model.DescribeReplicatorRequest;
import software.amazon.awssdk.services.kafka.model.DescribeReplicatorResponse;
import software.amazon.awssdk.services.kafka.model.DescribeVpcConnectionRequest;
import software.amazon.awssdk.services.kafka.model.DescribeVpcConnectionResponse;
import software.amazon.awssdk.services.kafka.model.ForbiddenException;
import software.amazon.awssdk.services.kafka.model.GetBootstrapBrokersRequest;
import software.amazon.awssdk.services.kafka.model.GetBootstrapBrokersResponse;
import software.amazon.awssdk.services.kafka.model.GetClusterPolicyRequest;
import software.amazon.awssdk.services.kafka.model.GetClusterPolicyResponse;
import software.amazon.awssdk.services.kafka.model.GetCompatibleKafkaVersionsRequest;
import software.amazon.awssdk.services.kafka.model.GetCompatibleKafkaVersionsResponse;
import software.amazon.awssdk.services.kafka.model.InternalServerErrorException;
import software.amazon.awssdk.services.kafka.model.KafkaException;
import software.amazon.awssdk.services.kafka.model.ListClientVpcConnectionsRequest;
import software.amazon.awssdk.services.kafka.model.ListClientVpcConnectionsResponse;
import software.amazon.awssdk.services.kafka.model.ListClusterOperationsRequest;
import software.amazon.awssdk.services.kafka.model.ListClusterOperationsResponse;
import software.amazon.awssdk.services.kafka.model.ListClusterOperationsV2Request;
import software.amazon.awssdk.services.kafka.model.ListClusterOperationsV2Response;
import software.amazon.awssdk.services.kafka.model.ListClustersRequest;
import software.amazon.awssdk.services.kafka.model.ListClustersResponse;
import software.amazon.awssdk.services.kafka.model.ListClustersV2Request;
import software.amazon.awssdk.services.kafka.model.ListClustersV2Response;
import software.amazon.awssdk.services.kafka.model.ListConfigurationRevisionsRequest;
import software.amazon.awssdk.services.kafka.model.ListConfigurationRevisionsResponse;
import software.amazon.awssdk.services.kafka.model.ListConfigurationsRequest;
import software.amazon.awssdk.services.kafka.model.ListConfigurationsResponse;
import software.amazon.awssdk.services.kafka.model.ListKafkaVersionsRequest;
import software.amazon.awssdk.services.kafka.model.ListKafkaVersionsResponse;
import software.amazon.awssdk.services.kafka.model.ListNodesRequest;
import software.amazon.awssdk.services.kafka.model.ListNodesResponse;
import software.amazon.awssdk.services.kafka.model.ListReplicatorsRequest;
import software.amazon.awssdk.services.kafka.model.ListReplicatorsResponse;
import software.amazon.awssdk.services.kafka.model.ListScramSecretsRequest;
import software.amazon.awssdk.services.kafka.model.ListScramSecretsResponse;
import software.amazon.awssdk.services.kafka.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.kafka.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.kafka.model.ListVpcConnectionsRequest;
import software.amazon.awssdk.services.kafka.model.ListVpcConnectionsResponse;
import software.amazon.awssdk.services.kafka.model.NotFoundException;
import software.amazon.awssdk.services.kafka.model.PutClusterPolicyRequest;
import software.amazon.awssdk.services.kafka.model.PutClusterPolicyResponse;
import software.amazon.awssdk.services.kafka.model.RebootBrokerRequest;
import software.amazon.awssdk.services.kafka.model.RebootBrokerResponse;
import software.amazon.awssdk.services.kafka.model.RejectClientVpcConnectionRequest;
import software.amazon.awssdk.services.kafka.model.RejectClientVpcConnectionResponse;
import software.amazon.awssdk.services.kafka.model.ServiceUnavailableException;
import software.amazon.awssdk.services.kafka.model.TagResourceRequest;
import software.amazon.awssdk.services.kafka.model.TagResourceResponse;
import software.amazon.awssdk.services.kafka.model.TooManyRequestsException;
import software.amazon.awssdk.services.kafka.model.UnauthorizedException;
import software.amazon.awssdk.services.kafka.model.UntagResourceRequest;
import software.amazon.awssdk.services.kafka.model.UntagResourceResponse;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerCountRequest;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerCountResponse;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerStorageRequest;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerStorageResponse;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerTypeRequest;
import software.amazon.awssdk.services.kafka.model.UpdateBrokerTypeResponse;
import software.amazon.awssdk.services.kafka.model.UpdateClusterConfigurationRequest;
import software.amazon.awssdk.services.kafka.model.UpdateClusterConfigurationResponse;
import software.amazon.awssdk.services.kafka.model.UpdateClusterKafkaVersionRequest;
import software.amazon.awssdk.services.kafka.model.UpdateClusterKafkaVersionResponse;
import software.amazon.awssdk.services.kafka.model.UpdateConfigurationRequest;
import software.amazon.awssdk.services.kafka.model.UpdateConfigurationResponse;
import software.amazon.awssdk.services.kafka.model.UpdateConnectivityRequest;
import software.amazon.awssdk.services.kafka.model.UpdateConnectivityResponse;
import software.amazon.awssdk.services.kafka.model.UpdateMonitoringRequest;
import software.amazon.awssdk.services.kafka.model.UpdateMonitoringResponse;
import software.amazon.awssdk.services.kafka.model.UpdateReplicationInfoRequest;
import software.amazon.awssdk.services.kafka.model.UpdateReplicationInfoResponse;
import software.amazon.awssdk.services.kafka.model.UpdateSecurityRequest;
import software.amazon.awssdk.services.kafka.model.UpdateSecurityResponse;
import software.amazon.awssdk.services.kafka.model.UpdateStorageRequest;
import software.amazon.awssdk.services.kafka.model.UpdateStorageResponse;
import software.amazon.awssdk.services.kafka.paginators.ListClientVpcConnectionsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListClusterOperationsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListClusterOperationsV2Iterable;
import software.amazon.awssdk.services.kafka.paginators.ListClustersIterable;
import software.amazon.awssdk.services.kafka.paginators.ListClustersV2Iterable;
import software.amazon.awssdk.services.kafka.paginators.ListConfigurationRevisionsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListConfigurationsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListKafkaVersionsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListNodesIterable;
import software.amazon.awssdk.services.kafka.paginators.ListReplicatorsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListScramSecretsIterable;
import software.amazon.awssdk.services.kafka.paginators.ListVpcConnectionsIterable;

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

* The operations for managing an Amazon MSK cluster. *

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

* Associates one or more Scram Secrets with an Amazon MSK cluster. *

* * * @param batchAssociateScramSecretRequest *

* Associates sasl scram secrets to cluster. *

* @return Result of the BatchAssociateScramSecret operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.BatchAssociateScramSecret * @see AWS API Documentation */ default BatchAssociateScramSecretResponse batchAssociateScramSecret( BatchAssociateScramSecretRequest batchAssociateScramSecretRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Associates one or more Scram Secrets with an Amazon MSK cluster. *

*
*

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

* * @param batchAssociateScramSecretRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.BatchAssociateScramSecretRequest.Builder} to create a * request. *

* Associates sasl scram secrets to cluster. *

* @return Result of the BatchAssociateScramSecret operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.BatchAssociateScramSecret * @see AWS API Documentation */ default BatchAssociateScramSecretResponse batchAssociateScramSecret( Consumer batchAssociateScramSecretRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return batchAssociateScramSecret(BatchAssociateScramSecretRequest.builder() .applyMutation(batchAssociateScramSecretRequest).build()); } /** * *

* Disassociates one or more Scram Secrets from an Amazon MSK cluster. *

* * * @param batchDisassociateScramSecretRequest *

* Disassociates sasl scram secrets to cluster. *

* @return Result of the BatchDisassociateScramSecret operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.BatchDisassociateScramSecret * @see AWS API Documentation */ default BatchDisassociateScramSecretResponse batchDisassociateScramSecret( BatchDisassociateScramSecretRequest batchDisassociateScramSecretRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Disassociates one or more Scram Secrets from an Amazon MSK cluster. *

*
*

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

* * @param batchDisassociateScramSecretRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.BatchDisassociateScramSecretRequest.Builder} to create * a request. *

* Disassociates sasl scram secrets to cluster. *

* @return Result of the BatchDisassociateScramSecret operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.BatchDisassociateScramSecret * @see AWS API Documentation */ default BatchDisassociateScramSecretResponse batchDisassociateScramSecret( Consumer batchDisassociateScramSecretRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return batchDisassociateScramSecret(BatchDisassociateScramSecretRequest.builder() .applyMutation(batchDisassociateScramSecretRequest).build()); } /** * *

* Creates a new MSK cluster. *

* * * @param createClusterRequest * @return Result of the CreateCluster operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateCluster * @see AWS API * Documentation */ default CreateClusterResponse createCluster(CreateClusterRequest createClusterRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Creates a new MSK cluster. *

*
*

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

* * @param createClusterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.CreateClusterRequest.Builder} to create a request. * @return Result of the CreateCluster operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateCluster * @see AWS API * Documentation */ default CreateClusterResponse createCluster(Consumer createClusterRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { return createCluster(CreateClusterRequest.builder().applyMutation(createClusterRequest).build()); } /** * *

* Creates a new MSK cluster. *

* * * @param createClusterV2Request * @return Result of the CreateClusterV2 operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateClusterV2 * @see AWS API * Documentation */ default CreateClusterV2Response createClusterV2(CreateClusterV2Request createClusterV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Creates a new MSK cluster. *

*
*

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

* * @param createClusterV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.CreateClusterV2Request.Builder} to create a request. * @return Result of the CreateClusterV2 operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateClusterV2 * @see AWS API * Documentation */ default CreateClusterV2Response createClusterV2(Consumer createClusterV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { return createClusterV2(CreateClusterV2Request.builder().applyMutation(createClusterV2Request).build()); } /** * *

* Creates a new MSK configuration. *

* * * @param createConfigurationRequest * @return Result of the CreateConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateConfiguration * @see AWS API * Documentation */ default CreateConfigurationResponse createConfiguration(CreateConfigurationRequest createConfigurationRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Creates a new MSK configuration. *

*
*

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

* * @param createConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.CreateConfigurationRequest.Builder} to create a * request. * @return Result of the CreateConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateConfiguration * @see AWS API * Documentation */ default CreateConfigurationResponse createConfiguration( Consumer createConfigurationRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { return createConfiguration(CreateConfigurationRequest.builder().applyMutation(createConfigurationRequest).build()); } /** *

* Creates the replicator. *

* * @param createReplicatorRequest * Creates a replicator using the specified configuration. * @return Result of the CreateReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @throws ConflictException * HTTP Status Code 409: Conflict. This replicator name already exists. Retry your request with another * name. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateReplicator * @see AWS API * Documentation */ default CreateReplicatorResponse createReplicator(CreateReplicatorRequest createReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** *

* Creates the replicator. *

*
*

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

* * @param createReplicatorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.CreateReplicatorRequest.Builder} to create a request. * Creates a replicator using the specified configuration. * @return Result of the CreateReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @throws ConflictException * HTTP Status Code 409: Conflict. This replicator name already exists. Retry your request with another * name. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateReplicator * @see AWS API * Documentation */ default CreateReplicatorResponse createReplicator(Consumer createReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, ConflictException, AwsServiceException, SdkClientException, KafkaException { return createReplicator(CreateReplicatorRequest.builder().applyMutation(createReplicatorRequest).build()); } /** * *

* Creates a new MSK VPC connection. *

* * * @param createVpcConnectionRequest * @return Result of the CreateVpcConnection operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateVpcConnection * @see AWS API * Documentation */ default CreateVpcConnectionResponse createVpcConnection(CreateVpcConnectionRequest createVpcConnectionRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Creates a new MSK VPC connection. *

*
*

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

* * @param createVpcConnectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.CreateVpcConnectionRequest.Builder} to create a * request. * @return Result of the CreateVpcConnection operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.CreateVpcConnection * @see AWS API * Documentation */ default CreateVpcConnectionResponse createVpcConnection( Consumer createVpcConnectionRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return createVpcConnection(CreateVpcConnectionRequest.builder().applyMutation(createVpcConnectionRequest).build()); } /** * *

* Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request. *

* * * @param deleteClusterRequest * @return Result of the DeleteCluster operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteCluster * @see AWS API * Documentation */ default DeleteClusterResponse deleteCluster(DeleteClusterRequest deleteClusterRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Deletes the MSK cluster specified by the Amazon Resource Name (ARN) in the request. *

*
*

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

* * @param deleteClusterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DeleteClusterRequest.Builder} to create a request. * @return Result of the DeleteCluster operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteCluster * @see AWS API * Documentation */ default DeleteClusterResponse deleteCluster(Consumer deleteClusterRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return deleteCluster(DeleteClusterRequest.builder().applyMutation(deleteClusterRequest).build()); } /** * *

* Deletes the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request. *

* * * @param deleteClusterPolicyRequest * @return Result of the DeleteClusterPolicy operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteClusterPolicy * @see AWS API * Documentation */ default DeleteClusterPolicyResponse deleteClusterPolicy(DeleteClusterPolicyRequest deleteClusterPolicyRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Deletes the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request. *

*
*

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

* * @param deleteClusterPolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DeleteClusterPolicyRequest.Builder} to create a * request. * @return Result of the DeleteClusterPolicy operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteClusterPolicy * @see AWS API * Documentation */ default DeleteClusterPolicyResponse deleteClusterPolicy( Consumer deleteClusterPolicyRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return deleteClusterPolicy(DeleteClusterPolicyRequest.builder().applyMutation(deleteClusterPolicyRequest).build()); } /** * *

* Deletes an MSK Configuration. *

* * * @param deleteConfigurationRequest * @return Result of the DeleteConfiguration operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteConfiguration * @see AWS API * Documentation */ default DeleteConfigurationResponse deleteConfiguration(DeleteConfigurationRequest deleteConfigurationRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Deletes an MSK Configuration. *

*
*

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

* * @param deleteConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DeleteConfigurationRequest.Builder} to create a * request. * @return Result of the DeleteConfiguration operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteConfiguration * @see AWS API * Documentation */ default DeleteConfigurationResponse deleteConfiguration( Consumer deleteConfigurationRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return deleteConfiguration(DeleteConfigurationRequest.builder().applyMutation(deleteConfigurationRequest).build()); } /** *

* Deletes a replicator. *

* * @param deleteReplicatorRequest * @return Result of the DeleteReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteReplicator * @see AWS API * Documentation */ default DeleteReplicatorResponse deleteReplicator(DeleteReplicatorRequest deleteReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** *

* Deletes a replicator. *

*
*

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

* * @param deleteReplicatorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DeleteReplicatorRequest.Builder} to create a request. * @return Result of the DeleteReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteReplicator * @see AWS API * Documentation */ default DeleteReplicatorResponse deleteReplicator(Consumer deleteReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return deleteReplicator(DeleteReplicatorRequest.builder().applyMutation(deleteReplicatorRequest).build()); } /** * *

* Deletes a MSK VPC connection. *

* * * @param deleteVpcConnectionRequest * @return Result of the DeleteVpcConnection operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteVpcConnection * @see AWS API * Documentation */ default DeleteVpcConnectionResponse deleteVpcConnection(DeleteVpcConnectionRequest deleteVpcConnectionRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Deletes a MSK VPC connection. *

*
*

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

* * @param deleteVpcConnectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DeleteVpcConnectionRequest.Builder} to create a * request. * @return Result of the DeleteVpcConnection operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DeleteVpcConnection * @see AWS API * Documentation */ default DeleteVpcConnectionResponse deleteVpcConnection( Consumer deleteVpcConnectionRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return deleteVpcConnection(DeleteVpcConnectionRequest.builder().applyMutation(deleteVpcConnectionRequest).build()); } /** * *

* Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request. *

* * * @param describeClusterRequest * @return Result of the DescribeCluster operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeCluster * @see AWS API * Documentation */ default DescribeClusterResponse describeCluster(DescribeClusterRequest describeClusterRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request. *

*
*

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

* * @param describeClusterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeClusterRequest.Builder} to create a request. * @return Result of the DescribeCluster operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeCluster * @see AWS API * Documentation */ default DescribeClusterResponse describeCluster(Consumer describeClusterRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return describeCluster(DescribeClusterRequest.builder().applyMutation(describeClusterRequest).build()); } /** * *

* Returns a description of the cluster operation specified by the ARN. *

* * * @param describeClusterOperationRequest * @return Result of the DescribeClusterOperation operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterOperation * @see AWS API Documentation */ default DescribeClusterOperationResponse describeClusterOperation( DescribeClusterOperationRequest describeClusterOperationRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of the cluster operation specified by the ARN. *

*
*

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

* * @param describeClusterOperationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeClusterOperationRequest.Builder} to create a * request. * @return Result of the DescribeClusterOperation operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterOperation * @see AWS API Documentation */ default DescribeClusterOperationResponse describeClusterOperation( Consumer describeClusterOperationRequest) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return describeClusterOperation(DescribeClusterOperationRequest.builder().applyMutation(describeClusterOperationRequest) .build()); } /** * *

* Returns a description of the cluster operation specified by the ARN. *

* * * @param describeClusterOperationV2Request * @return Result of the DescribeClusterOperationV2 operation returned by the service. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterOperationV2 * @see AWS API Documentation */ default DescribeClusterOperationV2Response describeClusterOperationV2( DescribeClusterOperationV2Request describeClusterOperationV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of the cluster operation specified by the ARN. *

*
*

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

* * @param describeClusterOperationV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeClusterOperationV2Request.Builder} to create a * request. * @return Result of the DescribeClusterOperationV2 operation returned by the service. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterOperationV2 * @see AWS API Documentation */ default DescribeClusterOperationV2Response describeClusterOperationV2( Consumer describeClusterOperationV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return describeClusterOperationV2(DescribeClusterOperationV2Request.builder() .applyMutation(describeClusterOperationV2Request).build()); } /** * *

* Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request. *

* * * @param describeClusterV2Request * @return Result of the DescribeClusterV2 operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterV2 * @see AWS API * Documentation */ default DescribeClusterV2Response describeClusterV2(DescribeClusterV2Request describeClusterV2Request) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request. *

*
*

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

* * @param describeClusterV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeClusterV2Request.Builder} to create a request. * @return Result of the DescribeClusterV2 operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeClusterV2 * @see AWS API * Documentation */ default DescribeClusterV2Response describeClusterV2(Consumer describeClusterV2Request) throws NotFoundException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return describeClusterV2(DescribeClusterV2Request.builder().applyMutation(describeClusterV2Request).build()); } /** * *

* Returns a description of this MSK configuration. *

* * * @param describeConfigurationRequest * @return Result of the DescribeConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeConfiguration * @see AWS * API Documentation */ default DescribeConfigurationResponse describeConfiguration(DescribeConfigurationRequest describeConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of this MSK configuration. *

*
*

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

* * @param describeConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeConfigurationRequest.Builder} to create a * request. * @return Result of the DescribeConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeConfiguration * @see AWS * API Documentation */ default DescribeConfigurationResponse describeConfiguration( Consumer describeConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return describeConfiguration(DescribeConfigurationRequest.builder().applyMutation(describeConfigurationRequest).build()); } /** * *

* Returns a description of this revision of the configuration. *

* * * @param describeConfigurationRevisionRequest * @return Result of the DescribeConfigurationRevision operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeConfigurationRevision * @see AWS API Documentation */ default DescribeConfigurationRevisionResponse describeConfigurationRevision( DescribeConfigurationRevisionRequest describeConfigurationRevisionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of this revision of the configuration. *

*
*

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

* * @param describeConfigurationRevisionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeConfigurationRevisionRequest.Builder} to create * a request. * @return Result of the DescribeConfigurationRevision operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeConfigurationRevision * @see AWS API Documentation */ default DescribeConfigurationRevisionResponse describeConfigurationRevision( Consumer describeConfigurationRevisionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return describeConfigurationRevision(DescribeConfigurationRevisionRequest.builder() .applyMutation(describeConfigurationRevisionRequest).build()); } /** *

* Describes a replicator. *

* * @param describeReplicatorRequest * @return Result of the DescribeReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeReplicator * @see AWS API * Documentation */ default DescribeReplicatorResponse describeReplicator(DescribeReplicatorRequest describeReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** *

* Describes a replicator. *

*
*

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

* * @param describeReplicatorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeReplicatorRequest.Builder} to create a request. * @return Result of the DescribeReplicator operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeReplicator * @see AWS API * Documentation */ default DescribeReplicatorResponse describeReplicator(Consumer describeReplicatorRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return describeReplicator(DescribeReplicatorRequest.builder().applyMutation(describeReplicatorRequest).build()); } /** * *

* Returns a description of this MSK VPC connection. *

* * * @param describeVpcConnectionRequest * @return Result of the DescribeVpcConnection operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeVpcConnection * @see AWS * API Documentation */ default DescribeVpcConnectionResponse describeVpcConnection(DescribeVpcConnectionRequest describeVpcConnectionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a description of this MSK VPC connection. *

*
*

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

* * @param describeVpcConnectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.DescribeVpcConnectionRequest.Builder} to create a * request. * @return Result of the DescribeVpcConnection operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.DescribeVpcConnection * @see AWS * API Documentation */ default DescribeVpcConnectionResponse describeVpcConnection( Consumer describeVpcConnectionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return describeVpcConnection(DescribeVpcConnectionRequest.builder().applyMutation(describeVpcConnectionRequest).build()); } /** * *

* A list of brokers that a client application can use to bootstrap. This list doesn't necessarily include all of * the brokers in the cluster. The following Python 3.6 example shows how you can use the Amazon Resource Name (ARN) * of a cluster to get its bootstrap brokers. If you don't know the ARN of your cluster, you can use the * ListClusters operation to get the ARNs of all the clusters in this account and Region. *

* * * @param getBootstrapBrokersRequest * @return Result of the GetBootstrapBrokers operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetBootstrapBrokers * @see AWS API * Documentation */ default GetBootstrapBrokersResponse getBootstrapBrokers(GetBootstrapBrokersRequest getBootstrapBrokersRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* A list of brokers that a client application can use to bootstrap. This list doesn't necessarily include all of * the brokers in the cluster. The following Python 3.6 example shows how you can use the Amazon Resource Name (ARN) * of a cluster to get its bootstrap brokers. If you don't know the ARN of your cluster, you can use the * ListClusters operation to get the ARNs of all the clusters in this account and Region. *

*
*

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

* * @param getBootstrapBrokersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.GetBootstrapBrokersRequest.Builder} to create a * request. * @return Result of the GetBootstrapBrokers operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ConflictException *

* This cluster name already exists. Retry your request using another name. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetBootstrapBrokers * @see AWS API * Documentation */ default GetBootstrapBrokersResponse getBootstrapBrokers( Consumer getBootstrapBrokersRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ConflictException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return getBootstrapBrokers(GetBootstrapBrokersRequest.builder().applyMutation(getBootstrapBrokersRequest).build()); } /** * *

* Get the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request. *

* * * @param getClusterPolicyRequest * @return Result of the GetClusterPolicy operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetClusterPolicy * @see AWS API * Documentation */ default GetClusterPolicyResponse getClusterPolicy(GetClusterPolicyRequest getClusterPolicyRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Get the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request. *

*
*

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

* * @param getClusterPolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.GetClusterPolicyRequest.Builder} to create a request. * @return Result of the GetClusterPolicy operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetClusterPolicy * @see AWS API * Documentation */ default GetClusterPolicyResponse getClusterPolicy(Consumer getClusterPolicyRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return getClusterPolicy(GetClusterPolicyRequest.builder().applyMutation(getClusterPolicyRequest).build()); } /** * *

* Gets the Apache Kafka versions to which you can update the MSK cluster. *

* * * @param getCompatibleKafkaVersionsRequest * @return Result of the GetCompatibleKafkaVersions operation returned by the service. * @throws BadRequestException * n *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* n * @throws UnauthorizedException * n *

* The request is not authorized. The provided credentials couldn't be validated. *

* n * @throws InternalServerErrorException * n *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* n * @throws ForbiddenException * n *

* Access forbidden. Check your credentials and then retry your request. *

* n * @throws NotFoundException * n *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* n * @throws ServiceUnavailableException * n *

* 503 response *

* n * @throws TooManyRequestsException * n *

* 429 response *

* n * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetCompatibleKafkaVersions * @see AWS API Documentation */ default GetCompatibleKafkaVersionsResponse getCompatibleKafkaVersions( GetCompatibleKafkaVersionsRequest getCompatibleKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Gets the Apache Kafka versions to which you can update the MSK cluster. *

*
*

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

* * @param getCompatibleKafkaVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.GetCompatibleKafkaVersionsRequest.Builder} to create a * request. * @return Result of the GetCompatibleKafkaVersions operation returned by the service. * @throws BadRequestException * n *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* n * @throws UnauthorizedException * n *

* The request is not authorized. The provided credentials couldn't be validated. *

* n * @throws InternalServerErrorException * n *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* n * @throws ForbiddenException * n *

* Access forbidden. Check your credentials and then retry your request. *

* n * @throws NotFoundException * n *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* n * @throws ServiceUnavailableException * n *

* 503 response *

* n * @throws TooManyRequestsException * n *

* 429 response *

* n * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.GetCompatibleKafkaVersions * @see AWS API Documentation */ default GetCompatibleKafkaVersionsResponse getCompatibleKafkaVersions( Consumer getCompatibleKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return getCompatibleKafkaVersions(GetCompatibleKafkaVersionsRequest.builder() .applyMutation(getCompatibleKafkaVersionsRequest).build()); } /** * *

* Returns a list of all the VPC connections in this Region. *

* * * @param listClientVpcConnectionsRequest * @return Result of the ListClientVpcConnections operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClientVpcConnections * @see AWS API Documentation */ default ListClientVpcConnectionsResponse listClientVpcConnections( ListClientVpcConnectionsRequest listClientVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the VPC connections in this Region. *

*
*

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

* * @param listClientVpcConnectionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClientVpcConnectionsRequest.Builder} to create a * request. * @return Result of the ListClientVpcConnections operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClientVpcConnections * @see AWS API Documentation */ default ListClientVpcConnectionsResponse listClientVpcConnections( Consumer listClientVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClientVpcConnections(ListClientVpcConnectionsRequest.builder().applyMutation(listClientVpcConnectionsRequest) .build()); } /** *

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

* * @param listClientVpcConnectionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClientVpcConnections * @see AWS API Documentation */ default ListClientVpcConnectionsIterable listClientVpcConnectionsPaginator( ListClientVpcConnectionsRequest listClientVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListClientVpcConnectionsIterable(this, listClientVpcConnectionsRequest); } /** *

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

*
*

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

* * @param listClientVpcConnectionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClientVpcConnectionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClientVpcConnections * @see AWS API Documentation */ default ListClientVpcConnectionsIterable listClientVpcConnectionsPaginator( Consumer listClientVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClientVpcConnectionsPaginator(ListClientVpcConnectionsRequest.builder() .applyMutation(listClientVpcConnectionsRequest).build()); } /** * *

* Returns a list of all the operations that have been performed on the specified MSK cluster. *

* * * @param listClusterOperationsRequest * @return Result of the ListClusterOperations operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperations * @see AWS * API Documentation */ default ListClusterOperationsResponse listClusterOperations(ListClusterOperationsRequest listClusterOperationsRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the operations that have been performed on the specified MSK cluster. *

*
*

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

* * @param listClusterOperationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClusterOperationsRequest.Builder} to create a * request. * @return Result of the ListClusterOperations operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperations * @see AWS * API Documentation */ default ListClusterOperationsResponse listClusterOperations( Consumer listClusterOperationsRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClusterOperations(ListClusterOperationsRequest.builder().applyMutation(listClusterOperationsRequest).build()); } /** *

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

* * @param listClusterOperationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperations * @see AWS * API Documentation */ default ListClusterOperationsIterable listClusterOperationsPaginator(ListClusterOperationsRequest listClusterOperationsRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListClusterOperationsIterable(this, listClusterOperationsRequest); } /** *

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

*
*

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

* * @param listClusterOperationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClusterOperationsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperations * @see AWS * API Documentation */ default ListClusterOperationsIterable listClusterOperationsPaginator( Consumer listClusterOperationsRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClusterOperationsPaginator(ListClusterOperationsRequest.builder().applyMutation(listClusterOperationsRequest) .build()); } /** * *

* Returns a list of all the operations that have been performed on the specified MSK cluster. *

* * * @param listClusterOperationsV2Request * @return Result of the ListClusterOperationsV2 operation returned by the service. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperationsV2 * @see AWS * API Documentation */ default ListClusterOperationsV2Response listClusterOperationsV2(ListClusterOperationsV2Request listClusterOperationsV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the operations that have been performed on the specified MSK cluster. *

*
*

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

* * @param listClusterOperationsV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClusterOperationsV2Request.Builder} to create a * request. * @return Result of the ListClusterOperationsV2 operation returned by the service. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperationsV2 * @see AWS * API Documentation */ default ListClusterOperationsV2Response listClusterOperationsV2( Consumer listClusterOperationsV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listClusterOperationsV2(ListClusterOperationsV2Request.builder().applyMutation(listClusterOperationsV2Request) .build()); } /** *

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

* * @param listClusterOperationsV2Request * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperationsV2 * @see AWS * API Documentation */ default ListClusterOperationsV2Iterable listClusterOperationsV2Paginator( ListClusterOperationsV2Request listClusterOperationsV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return new ListClusterOperationsV2Iterable(this, listClusterOperationsV2Request); } /** *

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

*
*

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

* * @param listClusterOperationsV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClusterOperationsV2Request.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. *

* @throws UnauthorizedException *

* HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. *

* @throws NotFoundException *

* HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. *

* @throws ServiceUnavailableException *

* HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. *

* @throws TooManyRequestsException *

* HTTP Status Code 429: Limit exceeded. Resource limit reached. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusterOperationsV2 * @see AWS * API Documentation */ default ListClusterOperationsV2Iterable listClusterOperationsV2Paginator( Consumer listClusterOperationsV2Request) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listClusterOperationsV2Paginator(ListClusterOperationsV2Request.builder() .applyMutation(listClusterOperationsV2Request).build()); } /** * *

* Returns a list of all the MSK clusters in the current Region. *

* * * @param listClustersRequest * @return Result of the ListClusters operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see AWS API * Documentation */ default ListClustersResponse listClusters(ListClustersRequest listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the MSK clusters in the current Region. *

*
*

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

* * @param listClustersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClustersRequest.Builder} to create a request. * @return Result of the ListClusters operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see AWS API * Documentation */ default ListClustersResponse listClusters(Consumer listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClusters(ListClustersRequest.builder().applyMutation(listClustersRequest).build()); } /** * *

* Returns a list of all the MSK clusters in the current Region. *

* * * @return Result of the ListClusters operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see #listClusters(ListClustersRequest) * @see AWS API * Documentation */ default ListClustersResponse listClusters() throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClusters(ListClustersRequest.builder().build()); } /** *

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

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see #listClustersPaginator(ListClustersRequest) * @see AWS API * Documentation */ default ListClustersIterable listClustersPaginator() throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClustersPaginator(ListClustersRequest.builder().build()); } /** *

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

* * @param listClustersRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see AWS API * Documentation */ default ListClustersIterable listClustersPaginator(ListClustersRequest listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListClustersIterable(this, listClustersRequest); } /** *

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

*
*

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

* * @param listClustersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClustersRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClusters * @see AWS API * Documentation */ default ListClustersIterable listClustersPaginator(Consumer listClustersRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClustersPaginator(ListClustersRequest.builder().applyMutation(listClustersRequest).build()); } /** * *

* Returns a list of all the MSK clusters in the current Region. *

* * * @param listClustersV2Request * @return Result of the ListClustersV2 operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClustersV2 * @see AWS API * Documentation */ default ListClustersV2Response listClustersV2(ListClustersV2Request listClustersV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the MSK clusters in the current Region. *

*
*

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

* * @param listClustersV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClustersV2Request.Builder} to create a request. * @return Result of the ListClustersV2 operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClustersV2 * @see AWS API * Documentation */ default ListClustersV2Response listClustersV2(Consumer listClustersV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClustersV2(ListClustersV2Request.builder().applyMutation(listClustersV2Request).build()); } /** *

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

* * @param listClustersV2Request * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClustersV2 * @see AWS API * Documentation */ default ListClustersV2Iterable listClustersV2Paginator(ListClustersV2Request listClustersV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListClustersV2Iterable(this, listClustersV2Request); } /** *

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

*
*

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

* * @param listClustersV2Request * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListClustersV2Request.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListClustersV2 * @see AWS API * Documentation */ default ListClustersV2Iterable listClustersV2Paginator(Consumer listClustersV2Request) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listClustersV2Paginator(ListClustersV2Request.builder().applyMutation(listClustersV2Request).build()); } /** * *

* Returns a list of all the MSK configurations in this Region. *

* * * @param listConfigurationRevisionsRequest * @return Result of the ListConfigurationRevisions operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurationRevisions * @see AWS API Documentation */ default ListConfigurationRevisionsResponse listConfigurationRevisions( ListConfigurationRevisionsRequest listConfigurationRevisionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the MSK configurations in this Region. *

*
*

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

* * @param listConfigurationRevisionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListConfigurationRevisionsRequest.Builder} to create a * request. * @return Result of the ListConfigurationRevisions operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurationRevisions * @see AWS API Documentation */ default ListConfigurationRevisionsResponse listConfigurationRevisions( Consumer listConfigurationRevisionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return listConfigurationRevisions(ListConfigurationRevisionsRequest.builder() .applyMutation(listConfigurationRevisionsRequest).build()); } /** *

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

* * @param listConfigurationRevisionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurationRevisions * @see AWS API Documentation */ default ListConfigurationRevisionsIterable listConfigurationRevisionsPaginator( ListConfigurationRevisionsRequest listConfigurationRevisionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return new ListConfigurationRevisionsIterable(this, listConfigurationRevisionsRequest); } /** *

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

*
*

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

* * @param listConfigurationRevisionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListConfigurationRevisionsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurationRevisions * @see AWS API Documentation */ default ListConfigurationRevisionsIterable listConfigurationRevisionsPaginator( Consumer listConfigurationRevisionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return listConfigurationRevisionsPaginator(ListConfigurationRevisionsRequest.builder() .applyMutation(listConfigurationRevisionsRequest).build()); } /** * *

* Returns a list of all the MSK configurations in this Region. *

* * * @param listConfigurationsRequest * @return Result of the ListConfigurations operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurations * @see AWS API * Documentation */ default ListConfigurationsResponse listConfigurations(ListConfigurationsRequest listConfigurationsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the MSK configurations in this Region. *

*
*

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

* * @param listConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListConfigurationsRequest.Builder} to create a request. * @return Result of the ListConfigurations operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurations * @see AWS API * Documentation */ default ListConfigurationsResponse listConfigurations(Consumer listConfigurationsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listConfigurations(ListConfigurationsRequest.builder().applyMutation(listConfigurationsRequest).build()); } /** *

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

* * @param listConfigurationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurations * @see AWS API * Documentation */ default ListConfigurationsIterable listConfigurationsPaginator(ListConfigurationsRequest listConfigurationsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListConfigurationsIterable(this, listConfigurationsRequest); } /** *

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

*
*

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

* * @param listConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListConfigurationsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListConfigurations * @see AWS API * Documentation */ default ListConfigurationsIterable listConfigurationsPaginator( Consumer listConfigurationsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listConfigurationsPaginator(ListConfigurationsRequest.builder().applyMutation(listConfigurationsRequest).build()); } /** * *

* Returns a list of Apache Kafka versions. *

* * * @param listKafkaVersionsRequest * @return Result of the ListKafkaVersions operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListKafkaVersions * @see AWS API * Documentation */ default ListKafkaVersionsResponse listKafkaVersions(ListKafkaVersionsRequest listKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of Apache Kafka versions. *

*
*

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

* * @param listKafkaVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListKafkaVersionsRequest.Builder} to create a request. * @return Result of the ListKafkaVersions operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListKafkaVersions * @see AWS API * Documentation */ default ListKafkaVersionsResponse listKafkaVersions(Consumer listKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listKafkaVersions(ListKafkaVersionsRequest.builder().applyMutation(listKafkaVersionsRequest).build()); } /** *

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

* * @param listKafkaVersionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListKafkaVersions * @see AWS API * Documentation */ default ListKafkaVersionsIterable listKafkaVersionsPaginator(ListKafkaVersionsRequest listKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListKafkaVersionsIterable(this, listKafkaVersionsRequest); } /** *

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

*
*

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

* * @param listKafkaVersionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListKafkaVersionsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListKafkaVersions * @see AWS API * Documentation */ default ListKafkaVersionsIterable listKafkaVersionsPaginator( Consumer listKafkaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listKafkaVersionsPaginator(ListKafkaVersionsRequest.builder().applyMutation(listKafkaVersionsRequest).build()); } /** * *

* Returns a list of the broker nodes in the cluster. *

* * * @param listNodesRequest * @return Result of the ListNodes operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListNodes * @see AWS API * Documentation */ default ListNodesResponse listNodes(ListNodesRequest listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of the broker nodes in the cluster. *

*
*

* 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 software.amazon.awssdk.services.kafka.model.ListNodesRequest.Builder} to create a request. * @return Result of the ListNodes operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListNodes * @see AWS API * Documentation */ default ListNodesResponse listNodes(Consumer listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listNodes(ListNodesRequest.builder().applyMutation(listNodesRequest).build()); } /** *

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

* * @param listNodesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListNodes * @see AWS API * Documentation */ default ListNodesIterable listNodesPaginator(ListNodesRequest listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListNodesIterable(this, listNodesRequest); } /** *

* This is a variant of {@link #listNodes(software.amazon.awssdk.services.kafka.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.kafka.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.kafka.paginators.ListNodesIterable responses = client.listNodesPaginator(request);
     *     for (software.amazon.awssdk.services.kafka.model.ListNodesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.kafka.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.kafka.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 software.amazon.awssdk.services.kafka.model.ListNodesRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListNodes * @see AWS API * Documentation */ default ListNodesIterable listNodesPaginator(Consumer listNodesRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listNodesPaginator(ListNodesRequest.builder().applyMutation(listNodesRequest).build()); } /** *

* Lists the replicators. *

* * @param listReplicatorsRequest * @return Result of the ListReplicators operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListReplicators * @see AWS API * Documentation */ default ListReplicatorsResponse listReplicators(ListReplicatorsRequest listReplicatorsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** *

* Lists the replicators. *

*
*

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

* * @param listReplicatorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListReplicatorsRequest.Builder} to create a request. * @return Result of the ListReplicators operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListReplicators * @see AWS API * Documentation */ default ListReplicatorsResponse listReplicators(Consumer listReplicatorsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listReplicators(ListReplicatorsRequest.builder().applyMutation(listReplicatorsRequest).build()); } /** *

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

* * @param listReplicatorsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListReplicators * @see AWS API * Documentation */ default ListReplicatorsIterable listReplicatorsPaginator(ListReplicatorsRequest listReplicatorsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return new ListReplicatorsIterable(this, listReplicatorsRequest); } /** *

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

*
*

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

* * @param listReplicatorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListReplicatorsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListReplicators * @see AWS API * Documentation */ default ListReplicatorsIterable listReplicatorsPaginator(Consumer listReplicatorsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listReplicatorsPaginator(ListReplicatorsRequest.builder().applyMutation(listReplicatorsRequest).build()); } /** * *

* Returns a list of the Scram Secrets associated with an Amazon MSK cluster. *

* * * @param listScramSecretsRequest * @return Result of the ListScramSecrets operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListScramSecrets * @see AWS API * Documentation */ default ListScramSecretsResponse listScramSecrets(ListScramSecretsRequest listScramSecretsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of the Scram Secrets associated with an Amazon MSK cluster. *

*
*

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

* * @param listScramSecretsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListScramSecretsRequest.Builder} to create a request. * @return Result of the ListScramSecrets operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListScramSecrets * @see AWS API * Documentation */ default ListScramSecretsResponse listScramSecrets(Consumer listScramSecretsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listScramSecrets(ListScramSecretsRequest.builder().applyMutation(listScramSecretsRequest).build()); } /** *

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

* * @param listScramSecretsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListScramSecrets * @see AWS API * Documentation */ default ListScramSecretsIterable listScramSecretsPaginator(ListScramSecretsRequest listScramSecretsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return new ListScramSecretsIterable(this, listScramSecretsRequest); } /** *

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

*
*

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

* * @param listScramSecretsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListScramSecretsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListScramSecrets * @see AWS API * Documentation */ default ListScramSecretsIterable listScramSecretsPaginator(Consumer listScramSecretsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return listScramSecretsPaginator(ListScramSecretsRequest.builder().applyMutation(listScramSecretsRequest).build()); } /** * *

* Returns a list of the tags associated with the specified resource. *

* * * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of the tags associated with the specified resource. *

*
*

* 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 software.amazon.awssdk.services.kafka.model.ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListTagsForResource * @see AWS API * Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** * *

* Returns a list of all the VPC connections in this Region. *

* * * @param listVpcConnectionsRequest * @return Result of the ListVpcConnections operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListVpcConnections * @see AWS API * Documentation */ default ListVpcConnectionsResponse listVpcConnections(ListVpcConnectionsRequest listVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns a list of all the VPC connections in this Region. *

*
*

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

* * @param listVpcConnectionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListVpcConnectionsRequest.Builder} to create a request. * @return Result of the ListVpcConnections operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListVpcConnections * @see AWS API * Documentation */ default ListVpcConnectionsResponse listVpcConnections(Consumer listVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listVpcConnections(ListVpcConnectionsRequest.builder().applyMutation(listVpcConnectionsRequest).build()); } /** *

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

* * @param listVpcConnectionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListVpcConnections * @see AWS API * Documentation */ default ListVpcConnectionsIterable listVpcConnectionsPaginator(ListVpcConnectionsRequest listVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return new ListVpcConnectionsIterable(this, listVpcConnectionsRequest); } /** *

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

*
*

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

* * @param listVpcConnectionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.ListVpcConnectionsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.ListVpcConnections * @see AWS API * Documentation */ default ListVpcConnectionsIterable listVpcConnectionsPaginator( Consumer listVpcConnectionsRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return listVpcConnectionsPaginator(ListVpcConnectionsRequest.builder().applyMutation(listVpcConnectionsRequest).build()); } /** * *

* Creates or updates the MSK cluster policy specified by the cluster Amazon Resource Name (ARN) in the request. *

* * * @param putClusterPolicyRequest * @return Result of the PutClusterPolicy operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.PutClusterPolicy * @see AWS API * Documentation */ default PutClusterPolicyResponse putClusterPolicy(PutClusterPolicyRequest putClusterPolicyRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Creates or updates the MSK cluster policy specified by the cluster Amazon Resource Name (ARN) in the request. *

*
*

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

* * @param putClusterPolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.PutClusterPolicyRequest.Builder} to create a request. * @return Result of the PutClusterPolicy operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.PutClusterPolicy * @see AWS API * Documentation */ default PutClusterPolicyResponse putClusterPolicy(Consumer putClusterPolicyRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return putClusterPolicy(PutClusterPolicyRequest.builder().applyMutation(putClusterPolicyRequest).build()); } /** * Reboots brokers. * * @param rebootBrokerRequest * Reboots a node. * @return Result of the RebootBroker operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.RebootBroker * @see AWS API * Documentation */ default RebootBrokerResponse rebootBroker(RebootBrokerRequest rebootBrokerRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * Reboots brokers.
*

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

* * @param rebootBrokerRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.RebootBrokerRequest.Builder} to create a request. * Reboots a node. * @return Result of the RebootBroker operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.RebootBroker * @see AWS API * Documentation */ default RebootBrokerResponse rebootBroker(Consumer rebootBrokerRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return rebootBroker(RebootBrokerRequest.builder().applyMutation(rebootBrokerRequest).build()); } /** * *

* Returns empty response. *

* * * @param rejectClientVpcConnectionRequest * @return Result of the RejectClientVpcConnection operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.RejectClientVpcConnection * @see AWS API Documentation */ default RejectClientVpcConnectionResponse rejectClientVpcConnection( RejectClientVpcConnectionRequest rejectClientVpcConnectionRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Returns empty response. *

*
*

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

* * @param rejectClientVpcConnectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.RejectClientVpcConnectionRequest.Builder} to create a * request. * @return Result of the RejectClientVpcConnection operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.RejectClientVpcConnection * @see AWS API Documentation */ default RejectClientVpcConnectionResponse rejectClientVpcConnection( Consumer rejectClientVpcConnectionRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return rejectClientVpcConnection(RejectClientVpcConnectionRequest.builder() .applyMutation(rejectClientVpcConnectionRequest).build()); } /** * *

* Adds tags to the specified MSK resource. *

* * * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Adds tags to the specified MSK resource. *

*
*

* 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 software.amazon.awssdk.services.kafka.model.TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** * *

* Removes the tags associated with the keys that are provided in the query. *

* * * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Removes the tags associated with the keys that are provided in the query. *

*
*

* 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 software.amazon.awssdk.services.kafka.model.UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** * *

* Updates the number of broker nodes in the cluster. *

* * * @param updateBrokerCountRequest * @return Result of the UpdateBrokerCount operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerCount * @see AWS API * Documentation */ default UpdateBrokerCountResponse updateBrokerCount(UpdateBrokerCountRequest updateBrokerCountRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the number of broker nodes in the cluster. *

*
*

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

* * @param updateBrokerCountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateBrokerCountRequest.Builder} to create a request. * @return Result of the UpdateBrokerCount operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerCount * @see AWS API * Documentation */ default UpdateBrokerCountResponse updateBrokerCount(Consumer updateBrokerCountRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return updateBrokerCount(UpdateBrokerCountRequest.builder().applyMutation(updateBrokerCountRequest).build()); } /** * *

* Updates the EBS storage associated with MSK brokers. *

* * * @param updateBrokerStorageRequest * @return Result of the UpdateBrokerStorage operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerStorage * @see AWS API * Documentation */ default UpdateBrokerStorageResponse updateBrokerStorage(UpdateBrokerStorageRequest updateBrokerStorageRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the EBS storage associated with MSK brokers. *

*
*

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

* * @param updateBrokerStorageRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateBrokerStorageRequest.Builder} to create a * request. * @return Result of the UpdateBrokerStorage operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerStorage * @see AWS API * Documentation */ default UpdateBrokerStorageResponse updateBrokerStorage( Consumer updateBrokerStorageRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return updateBrokerStorage(UpdateBrokerStorageRequest.builder().applyMutation(updateBrokerStorageRequest).build()); } /** * *

* Updates EC2 instance type. *

* * * @param updateBrokerTypeRequest * @return Result of the UpdateBrokerType operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerType * @see AWS API * Documentation */ default UpdateBrokerTypeResponse updateBrokerType(UpdateBrokerTypeRequest updateBrokerTypeRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates EC2 instance type. *

*
*

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

* * @param updateBrokerTypeRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateBrokerTypeRequest.Builder} to create a request. * @return Result of the UpdateBrokerType operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateBrokerType * @see AWS API * Documentation */ default UpdateBrokerTypeResponse updateBrokerType(Consumer updateBrokerTypeRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return updateBrokerType(UpdateBrokerTypeRequest.builder().applyMutation(updateBrokerTypeRequest).build()); } /** * *

* Updates the cluster with the configuration that is specified in the request body. *

* * * @param updateClusterConfigurationRequest * @return Result of the UpdateClusterConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateClusterConfiguration * @see AWS API Documentation */ default UpdateClusterConfigurationResponse updateClusterConfiguration( UpdateClusterConfigurationRequest updateClusterConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the cluster with the configuration that is specified in the request body. *

*
*

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

* * @param updateClusterConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateClusterConfigurationRequest.Builder} to create a * request. * @return Result of the UpdateClusterConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateClusterConfiguration * @see AWS API Documentation */ default UpdateClusterConfigurationResponse updateClusterConfiguration( Consumer updateClusterConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return updateClusterConfiguration(UpdateClusterConfigurationRequest.builder() .applyMutation(updateClusterConfigurationRequest).build()); } /** * *

* Updates the Apache Kafka version for the cluster. *

* * * @param updateClusterKafkaVersionRequest * @return Result of the UpdateClusterKafkaVersion operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateClusterKafkaVersion * @see AWS API Documentation */ default UpdateClusterKafkaVersionResponse updateClusterKafkaVersion( UpdateClusterKafkaVersionRequest updateClusterKafkaVersionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the Apache Kafka version for the cluster. *

*
*

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

* * @param updateClusterKafkaVersionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateClusterKafkaVersionRequest.Builder} to create a * request. * @return Result of the UpdateClusterKafkaVersion operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @throws TooManyRequestsException *

* 429 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateClusterKafkaVersion * @see AWS API Documentation */ default UpdateClusterKafkaVersionResponse updateClusterKafkaVersion( Consumer updateClusterKafkaVersionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return updateClusterKafkaVersion(UpdateClusterKafkaVersionRequest.builder() .applyMutation(updateClusterKafkaVersionRequest).build()); } /** * *

* Updates an MSK configuration. *

* * * @param updateConfigurationRequest * @return Result of the UpdateConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateConfiguration * @see AWS API * Documentation */ default UpdateConfigurationResponse updateConfiguration(UpdateConfigurationRequest updateConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates an MSK configuration. *

*
*

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

* * @param updateConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateConfigurationRequest.Builder} to create a * request. * @return Result of the UpdateConfiguration operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateConfiguration * @see AWS API * Documentation */ default UpdateConfigurationResponse updateConfiguration( Consumer updateConfigurationRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return updateConfiguration(UpdateConfigurationRequest.builder().applyMutation(updateConfigurationRequest).build()); } /** * *

* Updates the cluster's connectivity configuration. *

* * * @param updateConnectivityRequest * Request body for UpdateConnectivity. * @return Result of the UpdateConnectivity operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateConnectivity * @see AWS API * Documentation */ default UpdateConnectivityResponse updateConnectivity(UpdateConnectivityRequest updateConnectivityRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the cluster's connectivity configuration. *

*
*

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

* * @param updateConnectivityRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateConnectivityRequest.Builder} to create a request. * Request body for UpdateConnectivity. * @return Result of the UpdateConnectivity operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* 503 response *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateConnectivity * @see AWS API * Documentation */ default UpdateConnectivityResponse updateConnectivity(Consumer updateConnectivityRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, KafkaException { return updateConnectivity(UpdateConnectivityRequest.builder().applyMutation(updateConnectivityRequest).build()); } /** * *

* Updates the monitoring settings for the cluster. You can use this operation to specify which Apache Kafka metrics * you want Amazon MSK to send to Amazon CloudWatch. You can also specify settings for open monitoring with * Prometheus. *

* * * @param updateMonitoringRequest * Request body for UpdateMonitoring. * @return Result of the UpdateMonitoring operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateMonitoring * @see AWS API * Documentation */ default UpdateMonitoringResponse updateMonitoring(UpdateMonitoringRequest updateMonitoringRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the monitoring settings for the cluster. You can use this operation to specify which Apache Kafka metrics * you want Amazon MSK to send to Amazon CloudWatch. You can also specify settings for open monitoring with * Prometheus. *

*
*

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

* * @param updateMonitoringRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateMonitoringRequest.Builder} to create a request. * Request body for UpdateMonitoring. * @return Result of the UpdateMonitoring operation returned by the service. * @throws ServiceUnavailableException *

* 503 response *

* @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateMonitoring * @see AWS API * Documentation */ default UpdateMonitoringResponse updateMonitoring(Consumer updateMonitoringRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, KafkaException { return updateMonitoring(UpdateMonitoringRequest.builder().applyMutation(updateMonitoringRequest).build()); } /** *

* Updates replication info of a replicator. *

* * @param updateReplicationInfoRequest * Update information relating to replication between a given source and target Kafka cluster. * @return Result of the UpdateReplicationInfo operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateReplicationInfo * @see AWS * API Documentation */ default UpdateReplicationInfoResponse updateReplicationInfo(UpdateReplicationInfoRequest updateReplicationInfoRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** *

* Updates replication info of a replicator. *

*
*

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

* * @param updateReplicationInfoRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateReplicationInfoRequest.Builder} to create a * request. Update information relating to replication between a given source and target Kafka cluster. * @return Result of the UpdateReplicationInfo operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateReplicationInfo * @see AWS * API Documentation */ default UpdateReplicationInfoResponse updateReplicationInfo( Consumer updateReplicationInfoRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return updateReplicationInfo(UpdateReplicationInfoRequest.builder().applyMutation(updateReplicationInfoRequest).build()); } /** * *

* Updates the security settings for the cluster. You can use this operation to specify encryption and * authentication on existing clusters. *

* * * @param updateSecurityRequest * @return Result of the UpdateSecurity operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* The service cannot complete the request. *

* @throws TooManyRequestsException *

* The request throughput limit was exceeded. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateSecurity * @see AWS API * Documentation */ default UpdateSecurityResponse updateSecurity(UpdateSecurityRequest updateSecurityRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * *

* Updates the security settings for the cluster. You can use this operation to specify encryption and * authentication on existing clusters. *

*
*

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

* * @param updateSecurityRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateSecurityRequest.Builder} to create a request. * @return Result of the UpdateSecurity operation returned by the service. * @throws BadRequestException *

* The request isn't valid because the input is incorrect. Correct your input and then submit it again. *

* @throws UnauthorizedException *

* The request is not authorized. The provided credentials couldn't be validated. *

* @throws InternalServerErrorException *

* There was an unexpected internal server error. Retrying your request might resolve the issue. *

* @throws ForbiddenException *

* Access forbidden. Check your credentials and then retry your request. *

* @throws NotFoundException *

* The resource could not be found due to incorrect input. Correct the input, then retry the request. *

* @throws ServiceUnavailableException *

* The service cannot complete the request. *

* @throws TooManyRequestsException *

* The request throughput limit was exceeded. *

* @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateSecurity * @see AWS API * Documentation */ default UpdateSecurityResponse updateSecurity(Consumer updateSecurityRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return updateSecurity(UpdateSecurityRequest.builder().applyMutation(updateSecurityRequest).build()); } /** * Updates cluster broker volume size (or) sets cluster storage mode to TIERED. * * @param updateStorageRequest *

* Request object for UpdateStorage api. Its used to update the storage attributes for the cluster. *

* @return Result of the UpdateStorage operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateStorage * @see AWS API * Documentation */ default UpdateStorageResponse updateStorage(UpdateStorageRequest updateStorageRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { throw new UnsupportedOperationException(); } /** * Updates cluster broker volume size (or) sets cluster storage mode to TIERED.
*

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

* * @param updateStorageRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.kafka.model.UpdateStorageRequest.Builder} to create a request. *

* Request object for UpdateStorage api. Its used to update the storage attributes for the cluster. *

* @return Result of the UpdateStorage operation returned by the service. * @throws BadRequestException * HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it. * @throws UnauthorizedException * HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated. * @throws InternalServerErrorException * HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue. * @throws ForbiddenException * HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your request. * @throws NotFoundException * HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it. * @throws ServiceUnavailableException * HTTP Status Code 503: Service Unavailable. Retrying your request in some time might resolve the issue. * @throws TooManyRequestsException * HTTP Status Code 429: Limit exceeded. Resource limit reached. * @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 KafkaException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample KafkaClient.UpdateStorage * @see AWS API * Documentation */ default UpdateStorageResponse updateStorage(Consumer updateStorageRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, KafkaException { return updateStorage(UpdateStorageRequest.builder().applyMutation(updateStorageRequest).build()); } /** * Create a {@link KafkaClient} 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 KafkaClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link KafkaClient}. */ static KafkaClientBuilder builder() { return new DefaultKafkaClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default KafkaServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy