Interface KafkaConnectClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic KafkaConnectClientBuilderbuilder()Create a builder that can be used to configure and create aKafkaConnectClient.static KafkaConnectClientcreate()Create aKafkaConnectClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateConnectorResponsecreateConnector(Consumer<CreateConnectorRequest.Builder> createConnectorRequest) Creates a connector using the specified properties.default CreateConnectorResponsecreateConnector(CreateConnectorRequest createConnectorRequest) Creates a connector using the specified properties.default CreateCustomPluginResponsecreateCustomPlugin(Consumer<CreateCustomPluginRequest.Builder> createCustomPluginRequest) Creates a custom plugin using the specified properties.default CreateCustomPluginResponsecreateCustomPlugin(CreateCustomPluginRequest createCustomPluginRequest) Creates a custom plugin using the specified properties.createWorkerConfiguration(Consumer<CreateWorkerConfigurationRequest.Builder> createWorkerConfigurationRequest) Creates a worker configuration using the specified properties.createWorkerConfiguration(CreateWorkerConfigurationRequest createWorkerConfigurationRequest) Creates a worker configuration using the specified properties.default DeleteConnectorResponsedeleteConnector(Consumer<DeleteConnectorRequest.Builder> deleteConnectorRequest) Deletes the specified connector.default DeleteConnectorResponsedeleteConnector(DeleteConnectorRequest deleteConnectorRequest) Deletes the specified connector.default DeleteCustomPluginResponsedeleteCustomPlugin(Consumer<DeleteCustomPluginRequest.Builder> deleteCustomPluginRequest) Deletes a custom plugin.default DeleteCustomPluginResponsedeleteCustomPlugin(DeleteCustomPluginRequest deleteCustomPluginRequest) Deletes a custom plugin.deleteWorkerConfiguration(Consumer<DeleteWorkerConfigurationRequest.Builder> deleteWorkerConfigurationRequest) Deletes the specified worker configuration.deleteWorkerConfiguration(DeleteWorkerConfigurationRequest deleteWorkerConfigurationRequest) Deletes the specified worker configuration.default DescribeConnectorResponsedescribeConnector(Consumer<DescribeConnectorRequest.Builder> describeConnectorRequest) Returns summary information about the connector.default DescribeConnectorResponsedescribeConnector(DescribeConnectorRequest describeConnectorRequest) Returns summary information about the connector.default DescribeCustomPluginResponsedescribeCustomPlugin(Consumer<DescribeCustomPluginRequest.Builder> describeCustomPluginRequest) A summary description of the custom plugin.default DescribeCustomPluginResponsedescribeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest) A summary description of the custom plugin.describeWorkerConfiguration(Consumer<DescribeWorkerConfigurationRequest.Builder> describeWorkerConfigurationRequest) Returns information about a worker configuration.describeWorkerConfiguration(DescribeWorkerConfigurationRequest describeWorkerConfigurationRequest) Returns information about a worker configuration.default ListConnectorsResponselistConnectors(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) Returns a list of all the connectors in this account and Region.default ListConnectorsResponselistConnectors(ListConnectorsRequest listConnectorsRequest) Returns a list of all the connectors in this account and Region.default ListConnectorsIterablelistConnectorsPaginator(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) This is a variant oflistConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.default ListConnectorsIterablelistConnectorsPaginator(ListConnectorsRequest listConnectorsRequest) This is a variant oflistConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.default ListCustomPluginsResponselistCustomPlugins(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) Returns a list of all of the custom plugins in this account and Region.default ListCustomPluginsResponselistCustomPlugins(ListCustomPluginsRequest listCustomPluginsRequest) Returns a list of all of the custom plugins in this account and Region.default ListCustomPluginsIterablelistCustomPluginsPaginator(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) This is a variant oflistCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.default ListCustomPluginsIterablelistCustomPluginsPaginator(ListCustomPluginsRequest listCustomPluginsRequest) This is a variant oflistCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists all the tags attached to the specified resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists all the tags attached to the specified resource.default ListWorkerConfigurationsResponselistWorkerConfigurations(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) Returns a list of all of the worker configurations in this account and Region.default ListWorkerConfigurationsResponselistWorkerConfigurations(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) Returns a list of all of the worker configurations in this account and Region.default ListWorkerConfigurationsIterablelistWorkerConfigurationsPaginator(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) This is a variant oflistWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.default ListWorkerConfigurationsIterablelistWorkerConfigurationsPaginator(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) This is a variant oflistWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Attaches tags to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Attaches tags to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified resource.default UpdateConnectorResponseupdateConnector(Consumer<UpdateConnectorRequest.Builder> updateConnectorRequest) Updates the specified connector.default UpdateConnectorResponseupdateConnector(UpdateConnectorRequest updateConnectorRequest) Updates the specified connector.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createConnector
default CreateConnectorResponse createConnector(CreateConnectorRequest createConnectorRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a connector using the specified properties.
- Parameters:
createConnectorRequest-- Returns:
- Result of the CreateConnector operation returned by the service.
- See Also:
-
createConnector
default CreateConnectorResponse createConnector(Consumer<CreateConnectorRequest.Builder> createConnectorRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a connector using the specified properties.
This is a convenience which creates an instance of the
CreateConnectorRequest.Builderavoiding the need to create one manually viaCreateConnectorRequest.builder()- Parameters:
createConnectorRequest- AConsumerthat will call methods onCreateConnectorRequest.Builderto create a request.- Returns:
- Result of the CreateConnector operation returned by the service.
- See Also:
-
createCustomPlugin
default CreateCustomPluginResponse createCustomPlugin(CreateCustomPluginRequest createCustomPluginRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a custom plugin using the specified properties.
- Parameters:
createCustomPluginRequest-- Returns:
- Result of the CreateCustomPlugin operation returned by the service.
- See Also:
-
createCustomPlugin
default CreateCustomPluginResponse createCustomPlugin(Consumer<CreateCustomPluginRequest.Builder> createCustomPluginRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a custom plugin using the specified properties.
This is a convenience which creates an instance of the
CreateCustomPluginRequest.Builderavoiding the need to create one manually viaCreateCustomPluginRequest.builder()- Parameters:
createCustomPluginRequest- AConsumerthat will call methods onCreateCustomPluginRequest.Builderto create a request.- Returns:
- Result of the CreateCustomPlugin operation returned by the service.
- See Also:
-
createWorkerConfiguration
default CreateWorkerConfigurationResponse createWorkerConfiguration(CreateWorkerConfigurationRequest createWorkerConfigurationRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a worker configuration using the specified properties.
- Parameters:
createWorkerConfigurationRequest-- Returns:
- Result of the CreateWorkerConfiguration operation returned by the service.
- See Also:
-
createWorkerConfiguration
default CreateWorkerConfigurationResponse createWorkerConfiguration(Consumer<CreateWorkerConfigurationRequest.Builder> createWorkerConfigurationRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Creates a worker configuration using the specified properties.
This is a convenience which creates an instance of the
CreateWorkerConfigurationRequest.Builderavoiding the need to create one manually viaCreateWorkerConfigurationRequest.builder()- Parameters:
createWorkerConfigurationRequest- AConsumerthat will call methods onCreateWorkerConfigurationRequest.Builderto create a request.- Returns:
- Result of the CreateWorkerConfiguration operation returned by the service.
- See Also:
-
deleteConnector
default DeleteConnectorResponse deleteConnector(DeleteConnectorRequest deleteConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes the specified connector.
- Parameters:
deleteConnectorRequest-- Returns:
- Result of the DeleteConnector operation returned by the service.
- See Also:
-
deleteConnector
default DeleteConnectorResponse deleteConnector(Consumer<DeleteConnectorRequest.Builder> deleteConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes the specified connector.
This is a convenience which creates an instance of the
DeleteConnectorRequest.Builderavoiding the need to create one manually viaDeleteConnectorRequest.builder()- Parameters:
deleteConnectorRequest- AConsumerthat will call methods onDeleteConnectorRequest.Builderto create a request.- Returns:
- Result of the DeleteConnector operation returned by the service.
- See Also:
-
deleteCustomPlugin
default DeleteCustomPluginResponse deleteCustomPlugin(DeleteCustomPluginRequest deleteCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes a custom plugin.
- Parameters:
deleteCustomPluginRequest-- Returns:
- Result of the DeleteCustomPlugin operation returned by the service.
- See Also:
-
deleteCustomPlugin
default DeleteCustomPluginResponse deleteCustomPlugin(Consumer<DeleteCustomPluginRequest.Builder> deleteCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes a custom plugin.
This is a convenience which creates an instance of the
DeleteCustomPluginRequest.Builderavoiding the need to create one manually viaDeleteCustomPluginRequest.builder()- Parameters:
deleteCustomPluginRequest- AConsumerthat will call methods onDeleteCustomPluginRequest.Builderto create a request.- Returns:
- Result of the DeleteCustomPlugin operation returned by the service.
- See Also:
-
deleteWorkerConfiguration
default DeleteWorkerConfigurationResponse deleteWorkerConfiguration(DeleteWorkerConfigurationRequest deleteWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes the specified worker configuration.
- Parameters:
deleteWorkerConfigurationRequest-- Returns:
- Result of the DeleteWorkerConfiguration operation returned by the service.
- See Also:
-
deleteWorkerConfiguration
default DeleteWorkerConfigurationResponse deleteWorkerConfiguration(Consumer<DeleteWorkerConfigurationRequest.Builder> deleteWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Deletes the specified worker configuration.
This is a convenience which creates an instance of the
DeleteWorkerConfigurationRequest.Builderavoiding the need to create one manually viaDeleteWorkerConfigurationRequest.builder()- Parameters:
deleteWorkerConfigurationRequest- AConsumerthat will call methods onDeleteWorkerConfigurationRequest.Builderto create a request.- Returns:
- Result of the DeleteWorkerConfiguration operation returned by the service.
- See Also:
-
describeConnector
default DescribeConnectorResponse describeConnector(DescribeConnectorRequest describeConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns summary information about the connector.
- Parameters:
describeConnectorRequest-- Returns:
- Result of the DescribeConnector operation returned by the service.
- See Also:
-
describeConnector
default DescribeConnectorResponse describeConnector(Consumer<DescribeConnectorRequest.Builder> describeConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns summary information about the connector.
This is a convenience which creates an instance of the
DescribeConnectorRequest.Builderavoiding the need to create one manually viaDescribeConnectorRequest.builder()- Parameters:
describeConnectorRequest- AConsumerthat will call methods onDescribeConnectorRequest.Builderto create a request.- Returns:
- Result of the DescribeConnector operation returned by the service.
- See Also:
-
describeCustomPlugin
default DescribeCustomPluginResponse describeCustomPlugin(DescribeCustomPluginRequest describeCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException A summary description of the custom plugin.
- Parameters:
describeCustomPluginRequest-- Returns:
- Result of the DescribeCustomPlugin operation returned by the service.
- See Also:
-
describeCustomPlugin
default DescribeCustomPluginResponse describeCustomPlugin(Consumer<DescribeCustomPluginRequest.Builder> describeCustomPluginRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException A summary description of the custom plugin.
This is a convenience which creates an instance of the
DescribeCustomPluginRequest.Builderavoiding the need to create one manually viaDescribeCustomPluginRequest.builder()- Parameters:
describeCustomPluginRequest- AConsumerthat will call methods onDescribeCustomPluginRequest.Builderto create a request.- Returns:
- Result of the DescribeCustomPlugin operation returned by the service.
- See Also:
-
describeWorkerConfiguration
default DescribeWorkerConfigurationResponse describeWorkerConfiguration(DescribeWorkerConfigurationRequest describeWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns information about a worker configuration.
- Parameters:
describeWorkerConfigurationRequest-- Returns:
- Result of the DescribeWorkerConfiguration operation returned by the service.
- See Also:
-
describeWorkerConfiguration
default DescribeWorkerConfigurationResponse describeWorkerConfiguration(Consumer<DescribeWorkerConfigurationRequest.Builder> describeWorkerConfigurationRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns information about a worker configuration.
This is a convenience which creates an instance of the
DescribeWorkerConfigurationRequest.Builderavoiding the need to create one manually viaDescribeWorkerConfigurationRequest.builder()- Parameters:
describeWorkerConfigurationRequest- AConsumerthat will call methods onDescribeWorkerConfigurationRequest.Builderto create a request.- Returns:
- Result of the DescribeWorkerConfiguration operation returned by the service.
- See Also:
-
listConnectors
default ListConnectorsResponse listConnectors(ListConnectorsRequest listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
- Parameters:
listConnectorsRequest-- Returns:
- Result of the ListConnectors operation returned by the service.
- See Also:
-
listConnectors
default ListConnectorsResponse listConnectors(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all the connectors in this account and Region. The list is limited to connectors whose name starts with the specified prefix. The response also includes a description of each of the listed connectors.
This is a convenience which creates an instance of the
ListConnectorsRequest.Builderavoiding the need to create one manually viaListConnectorsRequest.builder()- Parameters:
listConnectorsRequest- AConsumerthat will call methods onListConnectorsRequest.Builderto create a request.- Returns:
- Result of the ListConnectors operation returned by the service.
- See Also:
-
listConnectorsPaginator
default ListConnectorsIterable listConnectorsPaginator(ListConnectorsRequest listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client .listConnectorsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(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
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.- Parameters:
listConnectorsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listConnectorsPaginator
default ListConnectorsIterable listConnectorsPaginator(Consumer<ListConnectorsRequest.Builder> listConnectorsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client .listConnectorsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListConnectorsIterable responses = client.listConnectorsPaginator(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
listConnectors(software.amazon.awssdk.services.kafkaconnect.model.ListConnectorsRequest)operation.
This is a convenience which creates an instance of the
ListConnectorsRequest.Builderavoiding the need to create one manually viaListConnectorsRequest.builder()- Parameters:
listConnectorsRequest- AConsumerthat will call methods onListConnectorsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomPlugins
default ListCustomPluginsResponse listCustomPlugins(ListCustomPluginsRequest listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all of the custom plugins in this account and Region.
- Parameters:
listCustomPluginsRequest-- Returns:
- Result of the ListCustomPlugins operation returned by the service.
- See Also:
-
listCustomPlugins
default ListCustomPluginsResponse listCustomPlugins(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all of the custom plugins in this account and Region.
This is a convenience which creates an instance of the
ListCustomPluginsRequest.Builderavoiding the need to create one manually viaListCustomPluginsRequest.builder()- Parameters:
listCustomPluginsRequest- AConsumerthat will call methods onListCustomPluginsRequest.Builderto create a request.- Returns:
- Result of the ListCustomPlugins operation returned by the service.
- See Also:
-
listCustomPluginsPaginator
default ListCustomPluginsIterable listCustomPluginsPaginator(ListCustomPluginsRequest listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client .listCustomPluginsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(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
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.- Parameters:
listCustomPluginsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomPluginsPaginator
default ListCustomPluginsIterable listCustomPluginsPaginator(Consumer<ListCustomPluginsRequest.Builder> listCustomPluginsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client .listCustomPluginsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListCustomPluginsIterable responses = client.listCustomPluginsPaginator(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
listCustomPlugins(software.amazon.awssdk.services.kafkaconnect.model.ListCustomPluginsRequest)operation.
This is a convenience which creates an instance of the
ListCustomPluginsRequest.Builderavoiding the need to create one manually viaListCustomPluginsRequest.builder()- Parameters:
listCustomPluginsRequest- AConsumerthat will call methods onListCustomPluginsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Lists all the tags attached to the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Lists all the tags attached to the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listWorkerConfigurations
default ListWorkerConfigurationsResponse listWorkerConfigurations(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all of the worker configurations in this account and Region.
- Parameters:
listWorkerConfigurationsRequest-- Returns:
- Result of the ListWorkerConfigurations operation returned by the service.
- See Also:
-
listWorkerConfigurations
default ListWorkerConfigurationsResponse listWorkerConfigurations(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Returns a list of all of the worker configurations in this account and Region.
This is a convenience which creates an instance of the
ListWorkerConfigurationsRequest.Builderavoiding the need to create one manually viaListWorkerConfigurationsRequest.builder()- Parameters:
listWorkerConfigurationsRequest- AConsumerthat will call methods onListWorkerConfigurationsRequest.Builderto create a request.- Returns:
- Result of the ListWorkerConfigurations operation returned by the service.
- See Also:
-
listWorkerConfigurationsPaginator
default ListWorkerConfigurationsIterable listWorkerConfigurationsPaginator(ListWorkerConfigurationsRequest listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client .listWorkerConfigurationsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(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
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.- Parameters:
listWorkerConfigurationsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listWorkerConfigurationsPaginator
default ListWorkerConfigurationsIterable listWorkerConfigurationsPaginator(Consumer<ListWorkerConfigurationsRequest.Builder> listWorkerConfigurationsRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException This is a variant of
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)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
2) Using For loopsoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client .listWorkerConfigurationsPaginator(request); for (software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.kafkaconnect.paginators.ListWorkerConfigurationsIterable responses = client.listWorkerConfigurationsPaginator(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
listWorkerConfigurations(software.amazon.awssdk.services.kafkaconnect.model.ListWorkerConfigurationsRequest)operation.
This is a convenience which creates an instance of the
ListWorkerConfigurationsRequest.Builderavoiding the need to create one manually viaListWorkerConfigurationsRequest.builder()- Parameters:
listWorkerConfigurationsRequest- AConsumerthat will call methods onListWorkerConfigurationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Attaches tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws NotFoundException, ConflictException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Attaches tags to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Removes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Removes tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateConnector
default UpdateConnectorResponse updateConnector(UpdateConnectorRequest updateConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Updates the specified connector.
- Parameters:
updateConnectorRequest-- Returns:
- Result of the UpdateConnector operation returned by the service.
- See Also:
-
updateConnector
default UpdateConnectorResponse updateConnector(Consumer<UpdateConnectorRequest.Builder> updateConnectorRequest) throws NotFoundException, BadRequestException, ForbiddenException, ServiceUnavailableException, TooManyRequestsException, UnauthorizedException, InternalServerErrorException, AwsServiceException, SdkClientException, KafkaConnectException Updates the specified connector.
This is a convenience which creates an instance of the
UpdateConnectorRequest.Builderavoiding the need to create one manually viaUpdateConnectorRequest.builder()- Parameters:
updateConnectorRequest- AConsumerthat will call methods onUpdateConnectorRequest.Builderto create a request.- Returns:
- Result of the UpdateConnector operation returned by the service.
- See Also:
-
create
Create aKafkaConnectClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aKafkaConnectClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-