Class KafkaClusterClient
- java.lang.Object
- 
- com.oracle.bmc.http.internal.BaseSyncClient
- 
- com.oracle.bmc.managedkafka.KafkaClusterClient
 
 
- 
- All Implemented Interfaces:
- KafkaCluster,- AutoCloseable
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20240901") public class KafkaClusterClient extends BaseSyncClient implements KafkaCluster
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classKafkaClusterClient.BuilderBuilder class for this client.
 - 
Field SummaryFields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for KafkaCluster.
 - 
Constructor SummaryConstructors Constructor Description KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
 - 
Method Summary- 
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClientclientCall
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.AutoCloseableclose
 - 
Methods inherited from interface com.oracle.bmc.managedkafka.KafkaClustergetEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
 
- 
 
- 
- 
- 
Constructor Detail- 
KafkaClusterClient@Deprecated public KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
 
 - 
KafkaClusterClient@Deprecated public KafkaClusterClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- KafkaClusterClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
- executorService-- KafkaClusterClient.Builder.executorService
 
 
- 
 - 
Method Detail- 
builderpublic static KafkaClusterClient.Builder builder() Create a builder for this client.- Returns:
- builder
 
 - 
setRegionpublic void setRegion(Region region) Description copied from interface:KafkaClusterSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
- setRegionin interface- KafkaCluster
- Parameters:
- region- The region of the service.
 
 - 
setRegionpublic void setRegion(String regionId) Description copied from interface:KafkaClusterSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format ( Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.- Specified by:
- setRegionin interface- KafkaCluster
- Parameters:
- regionId- The public region ID.
 
 - 
cancelWorkRequestpublic CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request) Description copied from interface:KafkaClusterCancels a work request.- Specified by:
- cancelWorkRequestin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeKafkaClusterCompartmentpublic ChangeKafkaClusterCompartmentResponse changeKafkaClusterCompartment(ChangeKafkaClusterCompartmentRequest request) Description copied from interface:KafkaClusterMoves a KafkaCluster into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment. - Specified by:
- changeKafkaClusterCompartmentin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeKafkaClusterConfigCompartmentpublic ChangeKafkaClusterConfigCompartmentResponse changeKafkaClusterConfigCompartment(ChangeKafkaClusterConfigCompartmentRequest request) Description copied from interface:KafkaClusterMoves a KafkaClusterConfig into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment. - Specified by:
- changeKafkaClusterConfigCompartmentin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createKafkaClusterpublic CreateKafkaClusterResponse createKafkaCluster(CreateKafkaClusterRequest request) Description copied from interface:KafkaClusterCreates a KafkaCluster.- Specified by:
- createKafkaClusterin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createKafkaClusterConfigpublic CreateKafkaClusterConfigResponse createKafkaClusterConfig(CreateKafkaClusterConfigRequest request) Description copied from interface:KafkaClusterCreates a KafkaClusterConfig.- Specified by:
- createKafkaClusterConfigin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteKafkaClusterpublic DeleteKafkaClusterResponse deleteKafkaCluster(DeleteKafkaClusterRequest request) Description copied from interface:KafkaClusterDeletes a KafkaCluster.- Specified by:
- deleteKafkaClusterin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteKafkaClusterConfigpublic DeleteKafkaClusterConfigResponse deleteKafkaClusterConfig(DeleteKafkaClusterConfigRequest request) Description copied from interface:KafkaClusterDeletes a KafkaClusterConfig.- Specified by:
- deleteKafkaClusterConfigin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteKafkaClusterConfigVersionpublic DeleteKafkaClusterConfigVersionResponse deleteKafkaClusterConfigVersion(DeleteKafkaClusterConfigVersionRequest request) Description copied from interface:KafkaClusterDeletes a KafkaClusterConfig version.- Specified by:
- deleteKafkaClusterConfigVersionin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
disableSuperuserpublic DisableSuperuserResponse disableSuperuser(DisableSuperuserRequest request) Description copied from interface:KafkaClusterRemoves the SASL superuser to the Kafka cluster.- Specified by:
- disableSuperuserin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
enableSuperuserpublic EnableSuperuserResponse enableSuperuser(EnableSuperuserRequest request) Description copied from interface:KafkaClusterAdds a SASL superuser to the Kafka cluster.A generated password will be updated to the specified vault. - Specified by:
- enableSuperuserin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getKafkaClusterpublic GetKafkaClusterResponse getKafkaCluster(GetKafkaClusterRequest request) Description copied from interface:KafkaClusterGets information about a KafkaCluster.- Specified by:
- getKafkaClusterin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getKafkaClusterConfigpublic GetKafkaClusterConfigResponse getKafkaClusterConfig(GetKafkaClusterConfigRequest request) Description copied from interface:KafkaClusterGets information about a KafkaClusterConfig.- Specified by:
- getKafkaClusterConfigin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getKafkaClusterConfigVersionpublic GetKafkaClusterConfigVersionResponse getKafkaClusterConfigVersion(GetKafkaClusterConfigVersionRequest request) Description copied from interface:KafkaClusterGets information about a KafkaClusterConfig version.- Specified by:
- getKafkaClusterConfigVersionin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWorkRequestpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) Description copied from interface:KafkaClusterGets the details of a work request.- Specified by:
- getWorkRequestin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listKafkaClusterConfigVersionspublic ListKafkaClusterConfigVersionsResponse listKafkaClusterConfigVersions(ListKafkaClusterConfigVersionsRequest request) Description copied from interface:KafkaClusterGets a list of KafkaClusterConfig Versions.- Specified by:
- listKafkaClusterConfigVersionsin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listKafkaClusterConfigspublic ListKafkaClusterConfigsResponse listKafkaClusterConfigs(ListKafkaClusterConfigsRequest request) Description copied from interface:KafkaClusterGets a list of KafkaClusterConfigs.- Specified by:
- listKafkaClusterConfigsin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listKafkaClusterspublic ListKafkaClustersResponse listKafkaClusters(ListKafkaClustersRequest request) Description copied from interface:KafkaClusterGets a list of KafkaClusters.- Specified by:
- listKafkaClustersin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestErrorspublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request) Description copied from interface:KafkaClusterLists the errors for a work request.- Specified by:
- listWorkRequestErrorsin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestLogspublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) Description copied from interface:KafkaClusterLists the logs for a work request.- Specified by:
- listWorkRequestLogsin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestspublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) Description copied from interface:KafkaClusterLists the work requests in a compartment.- Specified by:
- listWorkRequestsin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateKafkaClusterpublic UpdateKafkaClusterResponse updateKafkaCluster(UpdateKafkaClusterRequest request) Description copied from interface:KafkaClusterUpdates a KafkaCluster.- Specified by:
- updateKafkaClusterin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateKafkaClusterConfigpublic UpdateKafkaClusterConfigResponse updateKafkaClusterConfig(UpdateKafkaClusterConfigRequest request) Description copied from interface:KafkaClusterUpdates a KafkaClusterConfig.- Specified by:
- updateKafkaClusterConfigin interface- KafkaCluster
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWaiterspublic KafkaClusterWaiters getWaiters() Description copied from interface:KafkaClusterGets the pre-configured waiters available for resources for this service.- Specified by:
- getWaitersin interface- KafkaCluster
- Returns:
- The service waiters.
 
 - 
getPaginatorspublic KafkaClusterPaginators getPaginators() Description copied from interface:KafkaClusterGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
- getPaginatorsin interface- KafkaCluster
- Returns:
- The service paginators.
 
 - 
getDefaultConfiguratorprotected ClientConfigurator getDefaultConfigurator() 
 - 
useRealmSpecificEndpointTemplatepublic void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled) This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false - Parameters:
- useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
 
 - 
populateServiceParametersInEndpointpublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap) Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank. - Parameters:
- endpoint- The endpoint template in use
- requiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
 
 - 
updateBaseEndpointpublic final void updateBaseEndpoint(String endpoint) This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters. - Parameters:
- endpoint- The updated endpoint to use
 
 - 
setEndpointpublic final void setEndpoint(String endpoint) 
 - 
getEndpointpublic final String getEndpoint() 
 - 
refreshClientpublic final void refreshClient() Rebuild the backingHttpClient.This will call ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
 - 
closepublic final void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getClientCommonLibraryVersionpublic String getClientCommonLibraryVersion() 
 
- 
 
-