Class AIServiceDocumentClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.aidocument.AIServiceDocumentClient
-
- All Implemented Interfaces:
AIServiceDocument,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20221109") public class AIServiceDocumentClient extends BaseSyncClient implements AIServiceDocument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIServiceDocumentClient.BuilderBuilder class for this client.
-
Field Summary
Fields 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 AIServiceDocument.
-
Constructor Summary
Constructors Constructor Description AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddModelLockResponseaddModelLock(AddModelLockRequest request)Adds a lock to a resource.AddProjectLockResponseaddProjectLock(AddProjectLockRequest request)Adds a lock to a resource.AnalyzeDocumentResponseanalyzeDocument(AnalyzeDocumentRequest request)Perform different types of document analysis.static AIServiceDocumentClient.Builderbuilder()Create a builder for this client.CancelProcessorJobResponsecancelProcessorJob(CancelProcessorJobRequest request)Cancel a processor job.CancelWorkRequestResponsecancelWorkRequest(CancelWorkRequestRequest request)Cancel the work request with the given ID.ChangeModelCompartmentResponsechangeModelCompartment(ChangeModelCompartmentRequest request)Moves a model from one compartment to another.ChangeProjectCompartmentResponsechangeProjectCompartment(ChangeProjectCompartmentRequest request)Move a project from one compartment to another.voidclose()CreateModelResponsecreateModel(CreateModelRequest request)Create a new model.CreateProcessorJobResponsecreateProcessorJob(CreateProcessorJobRequest request)Create a processor job for document analysis.CreateProjectResponsecreateProject(CreateProjectRequest request)Create a new project.DeleteModelResponsedeleteModel(DeleteModelRequest request)Delete a model by identifier.DeleteProjectResponsedeleteProject(DeleteProjectRequest request)Delete a project by identifier.voidenableDualStackEndpoints(boolean enableDualStackEndpoints)This method should be used to enable or disable the use of dual-stack endpoints.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()Get the endpoint of the client.Optional<String>getMinimumClientCommonLibraryVersionFromClient()GetModelResponsegetModel(GetModelRequest request)Get a model by identifier.GetModelTypeResponsegetModelType(GetModelTypeRequest request)Gets model capabilitiesMap<String,Boolean>getOptionsMap()Return an immutable snapshot representing the current options set for this client.AIServiceDocumentPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetProcessorJobResponsegetProcessorJob(GetProcessorJobRequest request)Get the details of a processor job.GetProjectResponsegetProject(GetProjectRequest request)Get a project by identifier.StringgetResolvedEndpoint(Map<String,Object> requiredParametersMap)Returns the endpoint after filling in the current options, as determined byBaseClient.getOptionsMap(), and then filling in the required parameters in requiredParametersMap into the placeholders in the endpoint.AIServiceDocumentWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets the status of the work request with the given ID.ListModelsResponselistModels(ListModelsRequest request)Returns a list of models in a compartment.ListProjectsResponselistProjects(ListProjectsRequest request)Returns a list of projects.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Returns a (paginated) list of errors for a given work request.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Return a (paginated) list of logs for a given work request.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists the work requests in a compartment.PatchModelResponsepatchModel(PatchModelRequest request)Updates the model metadata only selected path parameter.voidrefreshClient()Rebuild the backingHttpClient.RemoveModelLockResponseremoveModelLock(RemoveModelLockRequest request)Remove a lock from a resource.RemoveProjectLockResponseremoveProjectLock(RemoveProjectLockRequest request)Remove a lock from a resource.voidsetEndpoint(String endpoint)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’).UpdateModelResponseupdateModel(UpdateModelRequest request)Updates the model metadata.UpdateProjectResponseupdateProject(UpdateProjectRequest request)Update the project metadata.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.aidocument.AIServiceDocument
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Constructor Detail
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(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 (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(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 (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
AIServiceDocumentClient
@Deprecated public AIServiceDocumentClient(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 (seeAIServiceDocumentClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-AIServiceDocumentClient.Builder.executorService
-
-
Method Detail
-
builder
public static AIServiceDocumentClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:AIServiceDocumentSets 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 interfaceAIServiceDocument- Parameters:
region- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:AIServiceDocumentSets 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 interfaceAIServiceDocument- Parameters:
regionId- The public region ID.
-
addModelLock
public AddModelLockResponse addModelLock(AddModelLockRequest request)
Description copied from interface:AIServiceDocumentAdds a lock to a resource.- Specified by:
addModelLockin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
addProjectLock
public AddProjectLockResponse addProjectLock(AddProjectLockRequest request)
Description copied from interface:AIServiceDocumentAdds a lock to a resource.- Specified by:
addProjectLockin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
analyzeDocument
public AnalyzeDocumentResponse analyzeDocument(AnalyzeDocumentRequest request)
Description copied from interface:AIServiceDocumentPerform different types of document analysis.- Specified by:
analyzeDocumentin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
cancelProcessorJob
public CancelProcessorJobResponse cancelProcessorJob(CancelProcessorJobRequest request)
Description copied from interface:AIServiceDocumentCancel a processor job.- Specified by:
cancelProcessorJobin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
cancelWorkRequest
public CancelWorkRequestResponse cancelWorkRequest(CancelWorkRequestRequest request)
Description copied from interface:AIServiceDocumentCancel the work request with the given ID.- Specified by:
cancelWorkRequestin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeModelCompartment
public ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request)
Description copied from interface:AIServiceDocumentMoves a model from one compartment to another.When provided, If-Match is checked against the ETag values of the resource.
- Specified by:
changeModelCompartmentin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeProjectCompartment
public ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request)
Description copied from interface:AIServiceDocumentMove a project from one compartment to another.When provided, If-Match is checked against the ETag values of the resource.
- Specified by:
changeProjectCompartmentin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createModel
public CreateModelResponse createModel(CreateModelRequest request)
Description copied from interface:AIServiceDocumentCreate a new model.- Specified by:
createModelin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createProcessorJob
public CreateProcessorJobResponse createProcessorJob(CreateProcessorJobRequest request)
Description copied from interface:AIServiceDocumentCreate a processor job for document analysis.- Specified by:
createProcessorJobin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createProject
public CreateProjectResponse createProject(CreateProjectRequest request)
Description copied from interface:AIServiceDocumentCreate a new project.- Specified by:
createProjectin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteModel
public DeleteModelResponse deleteModel(DeleteModelRequest request)
Description copied from interface:AIServiceDocumentDelete a model by identifier.- Specified by:
deleteModelin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteProject
public DeleteProjectResponse deleteProject(DeleteProjectRequest request)
Description copied from interface:AIServiceDocumentDelete a project by identifier.- Specified by:
deleteProjectin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getModel
public GetModelResponse getModel(GetModelRequest request)
Description copied from interface:AIServiceDocumentGet a model by identifier.- Specified by:
getModelin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getModelType
public GetModelTypeResponse getModelType(GetModelTypeRequest request)
Description copied from interface:AIServiceDocumentGets model capabilities- Specified by:
getModelTypein interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getProcessorJob
public GetProcessorJobResponse getProcessorJob(GetProcessorJobRequest request)
Description copied from interface:AIServiceDocumentGet the details of a processor job.- Specified by:
getProcessorJobin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getProject
public GetProjectResponse getProject(GetProjectRequest request)
Description copied from interface:AIServiceDocumentGet a project by identifier.- Specified by:
getProjectin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWorkRequest
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Description copied from interface:AIServiceDocumentGets the status of the work request with the given ID.- Specified by:
getWorkRequestin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listModels
public ListModelsResponse listModels(ListModelsRequest request)
Description copied from interface:AIServiceDocumentReturns a list of models in a compartment.- Specified by:
listModelsin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listProjects
public ListProjectsResponse listProjects(ListProjectsRequest request)
Description copied from interface:AIServiceDocumentReturns a list of projects.- Specified by:
listProjectsin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestErrors
public ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Description copied from interface:AIServiceDocumentReturns a (paginated) list of errors for a given work request.- Specified by:
listWorkRequestErrorsin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestLogs
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Description copied from interface:AIServiceDocumentReturn a (paginated) list of logs for a given work request.- Specified by:
listWorkRequestLogsin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequests
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Description copied from interface:AIServiceDocumentLists the work requests in a compartment.- Specified by:
listWorkRequestsin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
patchModel
public PatchModelResponse patchModel(PatchModelRequest request)
Description copied from interface:AIServiceDocumentUpdates the model metadata only selected path parameter.- Specified by:
patchModelin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeModelLock
public RemoveModelLockResponse removeModelLock(RemoveModelLockRequest request)
Description copied from interface:AIServiceDocumentRemove a lock from a resource.- Specified by:
removeModelLockin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
removeProjectLock
public RemoveProjectLockResponse removeProjectLock(RemoveProjectLockRequest request)
Description copied from interface:AIServiceDocumentRemove a lock from a resource.- Specified by:
removeProjectLockin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateModel
public UpdateModelResponse updateModel(UpdateModelRequest request)
Description copied from interface:AIServiceDocumentUpdates the model metadata.- Specified by:
updateModelin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateProject
public UpdateProjectResponse updateProject(UpdateProjectRequest request)
Description copied from interface:AIServiceDocumentUpdate the project metadata.- Specified by:
updateProjectin interfaceAIServiceDocument- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public AIServiceDocumentWaiters getWaiters()
Description copied from interface:AIServiceDocumentGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceAIServiceDocument- Returns:
- The service waiters.
-
getPaginators
public AIServiceDocumentPaginators getPaginators()
Description copied from interface:AIServiceDocumentGets 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 interfaceAIServiceDocument- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
enableDualStackEndpoints
public void enableDualStackEndpoints(boolean enableDualStackEndpoints)
This method should be used to enable or disable the use of dual-stack endpoints.The default value is false i.e. dual-stack endpoints are disabled by default.
- Parameters:
enableDualStackEndpoints- This flag can be set to true or false to enable or disable the use of dual-stack endpoints respectively
-
getOptionsMap
public Map<String,Boolean> getOptionsMap()
Return an immutable snapshot representing the current options set for this client.- Returns:
- immutable snapshot representing the current options set for this client
-
getResolvedEndpoint
public String getResolvedEndpoint(Map<String,Object> requiredParametersMap)
Returns the endpoint after filling in the current options, as determined byBaseClient.getOptionsMap(), and then filling in the required parameters in requiredParametersMap into the placeholders in the endpoint.- Parameters:
requiredParametersMap- the map from required parameter name to their values- Returns:
- resolved endpoint, with all options and placeholders filled in
-
useRealmSpecificEndpointTemplate
public 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
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
Get the endpoint of the client.Note that the endpoint may be parameterized and contain placeholders and options. The region subdomain and realm domain will have been properly replaced already if the endpoint was selected using a
Region.Examples of endpoints this may return:
- Unparameterized endpoints
https://identity.us-phoenix-1.oci.oraclecloud.com https://identity.us-ashburn-1.oci.oraclecloud.com https://test-namespace.objectstorage.us-ashburn-1.oci.customer-oci.com - Parameterized endpoints with placeholders
https://{namespaceName+Dot}objectstorage.us-phoenix-1.oci.customer-oci.com https://{namespaceName+Dot}objectstorage.us-ashburn-1.oci.customer-oci.com - Parameterized endpoints with options
https://{dualStack?ds.:}identity.us-phoenix-1.oci.oraclecloud.com https://{dualStack?ds.:}identity.us-ashburn-1.oci.oraclecloud.com - Parameterized endpoints with placeholders and options
https://{namespaceName+Dot}{dualStack?ds.:}objectstorage.us-phoenix-1.oci.customer-oci.com https://{namespaceName+Dot}{dualStack?ds.:}objectstorage.us-ashburn-1.oci.customer-oci.com
To get the actual endpoint for a parameterized request, you can use
BaseClient.getResolvedEndpoint(Map)orParameterizedEndpointUtil.getEndpointWithPopulatedServiceParameters(String, Map, Map).- Returns:
- the endpoint being used by the client
- Unparameterized endpoints
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-