Interface ServiceConnector
- 
- All Superinterfaces:
- AutoCloseable
 - All Known Implementing Classes:
- ServiceConnectorClient
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20200909") public interface ServiceConnector extends AutoCloseableUse the Connector Hub API to transfer data between services in Oracle Cloud Infrastructure.For more information about Connector Hub, see the Connector Hub documentation. Connector Hub is formerly known as Service Connector Hub. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user. 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivateServiceConnectorResponseactivateServiceConnector(ActivateServiceConnectorRequest request)Activates the specified connector.ChangeServiceConnectorCompartmentResponsechangeServiceConnectorCompartment(ChangeServiceConnectorCompartmentRequest request)Moves a connector into a different compartment within the same tenancy.CreateServiceConnectorResponsecreateServiceConnector(CreateServiceConnectorRequest request)Creates a new connector in the specified compartment.DeactivateServiceConnectorResponsedeactivateServiceConnector(DeactivateServiceConnectorRequest request)Deactivates the specified connector.DeleteServiceConnectorResponsedeleteServiceConnector(DeleteServiceConnectorRequest request)Deletes the specified connector.StringgetEndpoint()Gets the set endpoint for REST call (ex, https://www.example.com)ServiceConnectorPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetServiceConnectorResponsegetServiceConnector(GetServiceConnectorRequest request)Gets the specified connector’s configuration information.ServiceConnectorWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets the details of the specified work request.ListServiceConnectorsResponselistServiceConnectors(ListServiceConnectorsRequest request)Lists connectors in the specified compartment.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Lists work request errors for the specified work request.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Lists logs for the specified work request.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists the work requests in the specified compartment.voidrefreshClient()Rebuilds the client from scratch.voidsetEndpoint(String endpoint)Sets the endpoint to call (ex, https://www.example.com).voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).UpdateServiceConnectorResponseupdateServiceConnector(UpdateServiceConnectorRequest request)Updates the configuration information for the specified connector.voiduseRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)Determines whether realm specific endpoint should be used or not.- 
Methods inherited from interface java.lang.AutoCloseableclose
 
- 
 
- 
- 
- 
Method Detail- 
refreshClientvoid refreshClient() Rebuilds the client from scratch.Useful to refresh certificates. 
 - 
setEndpointvoid setEndpoint(String endpoint) Sets the endpoint to call (ex, https://www.example.com).- Parameters:
- endpoint- The endpoint of the service.
 
 - 
getEndpointString getEndpoint() Gets the set endpoint for REST call (ex, https://www.example.com)
 - 
setRegionvoid setRegion(Region region) Sets 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.- Parameters:
- region- The region of the service.
 
 - 
setRegionvoid setRegion(String regionId) Sets 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.- Parameters:
- regionId- The public region ID.
 
 - 
useRealmSpecificEndpointTemplatevoid useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled) Determines whether realm specific endpoint should be used or not.Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false” - Parameters:
- realmSpecificEndpointTemplateEnabled- flag to enable the use of realm specific endpoint template
 
 - 
activateServiceConnectorActivateServiceConnectorResponse activateServiceConnector(ActivateServiceConnectorRequest request) Activates the specified connector.After you send your request, the connector's state is temporarily UPDATING. When the state changes to ACTIVE, data begins transferring from the source service to the target service. For more information, see [Activating a Connector](https://docs.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm). - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ActivateServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ActivateServiceConnector API. 
 
 - 
changeServiceConnectorCompartmentChangeServiceConnectorCompartmentResponse changeServiceConnectorCompartment(ChangeServiceConnectorCompartmentRequest request) Moves a connector into a different compartment within the same tenancy.For more information, see Moving a Connector. When provided, If-Match is checked against ETag values of the resource. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ChangeServiceConnectorCompartmentExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ChangeServiceConnectorCompartment API. 
 
 - 
createServiceConnectorCreateServiceConnectorResponse createServiceConnector(CreateServiceConnectorRequest request) Creates a new connector in the specified compartment.A connector is a logically defined flow for moving data from a source service to a destination service in Oracle Cloud Infrastructure. For more information, see Creating a Connector. For general information about connectors, see Overview of Connector Hub. For purposes of access control, you must provide the [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the connector to reside. Notice that the connector doesn't have to be in the same compartment as the source or target services. For information about access control and compartments, see [Overview of the IAM Service](https://docs.oracle.com/iaas/Content/Identity/Concepts/overview.htm). After you send your request, the new connector's state is temporarily CREATING. When the state changes to ACTIVE, data begins transferring from the source service to the target service. For instructions on deactivating and activating connectors, see [Activating a Connector](https://docs.oracle.com/iaas/Content/connector-hub/activate-service-connector.htm). - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/CreateServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateServiceConnector API. 
 
 - 
deactivateServiceConnectorDeactivateServiceConnectorResponse deactivateServiceConnector(DeactivateServiceConnectorRequest request) Deactivates the specified connector.After you send your request, the connector's state is temporarily UPDATING and any data transfer stops. The state then changes to INACTIVE. For more information, see [Deactivating a Connector](https://docs.oracle.com/iaas/Content/connector-hub/deactivate-service-connector.htm). - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/DeactivateServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeactivateServiceConnector API. 
 
 - 
deleteServiceConnectorDeleteServiceConnectorResponse deleteServiceConnector(DeleteServiceConnectorRequest request) Deletes the specified connector.For more information, see Deleting a Connector. After you send your request, the connector's state is temporarily DELETING and any data transfer stops. The state then changes to DELETED. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/DeleteServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use DeleteServiceConnector API. 
 
 - 
getServiceConnectorGetServiceConnectorResponse getServiceConnector(GetServiceConnectorRequest request) Gets the specified connector’s configuration information.For more information, see Getting a Connector. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/GetServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetServiceConnector API. 
 
 - 
getWorkRequestGetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) Gets the details of the specified work request.For more information, see Getting a Work Request’s Details. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/GetWorkRequestExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use GetWorkRequest API. 
 
 - 
listServiceConnectorsListServiceConnectorsResponse listServiceConnectors(ListServiceConnectorsRequest request) Lists connectors in the specified compartment.For more information, see Listing Connectors. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ListServiceConnectorsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListServiceConnectors API. 
 
 - 
listWorkRequestErrorsListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request) Lists work request errors for the specified work request.Results are paginated. For more information, see Listing Work Request Errors. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ListWorkRequestErrorsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequestErrors API. 
 
 - 
listWorkRequestLogsListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) Lists logs for the specified work request.Results are paginated. For more information, see Listing Work Request Log Entries. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ListWorkRequestLogsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequestLogs API. 
 
 - 
listWorkRequestsListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) Lists the work requests in the specified compartment.For more information, see Listing Work Requests. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/ListWorkRequestsExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use ListWorkRequests API. 
 
 - 
updateServiceConnectorUpdateServiceConnectorResponse updateServiceConnector(UpdateServiceConnectorRequest request) Updates the configuration information for the specified connector.For more information, see Updating a Connector. After you send your request, the connector's state is temporarily UPDATING and any data transfer pauses. The state then changes back to its original value: if ACTIVE, then data transfer resumes. - Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
- Throws:
- BmcException- when an error occurs. This operation uses RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is provided. The specifics of the default retry strategy are described here https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries- Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/sch/UpdateServiceConnectorExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use UpdateServiceConnector API. 
 
 - 
getWaitersServiceConnectorWaiters getWaiters() Gets the pre-configured waiters available for resources for this service.- Returns:
- The service waiters.
 
 - 
getPaginatorsServiceConnectorPaginators getPaginators() Gets 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.- Returns:
- The service paginators.
 
 
- 
 
-