Package com.oracle.bmc.generativeaiagent
Class GenerativeAiAgentWaiters
- java.lang.Object
-
- com.oracle.bmc.generativeaiagent.GenerativeAiAgentWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240531") public class GenerativeAiAgentWaiters extends ObjectCollection of helper methods to produceWaiters for different resources of GenerativeAiAgent.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER.
-
-
Constructor Summary
Constructors Constructor Description GenerativeAiAgentWaiters(ExecutorService executorService, GenerativeAiAgent client)
-
Method Summary
-
-
-
Constructor Detail
-
GenerativeAiAgentWaiters
public GenerativeAiAgentWaiters(ExecutorService executorService, GenerativeAiAgent client)
-
-
Method Detail
-
forAgent
public Waiter<GetAgentRequest,GetAgentResponse> forAgent(GetAgentRequest request, Agent.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forAgent
public Waiter<GetAgentRequest,GetAgentResponse> forAgent(GetAgentRequest request, Agent.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forAgent
public Waiter<GetAgentRequest,GetAgentResponse> forAgent(GetAgentRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Agent.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forAgentEndpoint
public Waiter<GetAgentEndpointRequest,GetAgentEndpointResponse> forAgentEndpoint(GetAgentEndpointRequest request, AgentEndpoint.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forAgentEndpoint
public Waiter<GetAgentEndpointRequest,GetAgentEndpointResponse> forAgentEndpoint(GetAgentEndpointRequest request, AgentEndpoint.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forAgentEndpoint
public Waiter<GetAgentEndpointRequest,GetAgentEndpointResponse> forAgentEndpoint(GetAgentEndpointRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, AgentEndpoint.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forDataIngestionJob
public Waiter<GetDataIngestionJobRequest,GetDataIngestionJobResponse> forDataIngestionJob(GetDataIngestionJobRequest request, DataIngestionJob.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forDataIngestionJob
public Waiter<GetDataIngestionJobRequest,GetDataIngestionJobResponse> forDataIngestionJob(GetDataIngestionJobRequest request, DataIngestionJob.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forDataIngestionJob
public Waiter<GetDataIngestionJobRequest,GetDataIngestionJobResponse> forDataIngestionJob(GetDataIngestionJobRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, DataIngestionJob.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forDataSource
public Waiter<GetDataSourceRequest,GetDataSourceResponse> forDataSource(GetDataSourceRequest request, DataSource.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forDataSource
public Waiter<GetDataSourceRequest,GetDataSourceResponse> forDataSource(GetDataSourceRequest request, DataSource.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forDataSource
public Waiter<GetDataSourceRequest,GetDataSourceResponse> forDataSource(GetDataSourceRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, DataSource.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forKnowledgeBase
public Waiter<GetKnowledgeBaseRequest,GetKnowledgeBaseResponse> forKnowledgeBase(GetKnowledgeBaseRequest request, KnowledgeBase.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forKnowledgeBase
public Waiter<GetKnowledgeBaseRequest,GetKnowledgeBaseResponse> forKnowledgeBase(GetKnowledgeBaseRequest request, KnowledgeBase.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forKnowledgeBase
public Waiter<GetKnowledgeBaseRequest,GetKnowledgeBaseResponse> forKnowledgeBase(GetKnowledgeBaseRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, KnowledgeBase.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forTool
public Waiter<GetToolRequest,GetToolResponse> forTool(GetToolRequest request, Tool.LifecycleState... targetStates)
Creates a newWaiterusing the default configuration.- Parameters:
request- the request to sendtargetStates- the desired states to wait for. If multiple states are provided then the waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forTool
public Waiter<GetToolRequest,GetToolResponse> forTool(GetToolRequest request, Tool.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendtargetState- the desired state to wait forterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forTool
public Waiter<GetToolRequest,GetToolResponse> forTool(GetToolRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Tool.LifecycleState... targetStates)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- theDelayStrategyto usetargetStates- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forWorkRequest
public Waiter<GetWorkRequestRequest,GetWorkRequestResponse> forWorkRequest(GetWorkRequestRequest request)
Creates a newWaiterusing default configuration.- Parameters:
request- the request to send- Returns:
- a new Waiter instance
-
forWorkRequest
public Waiter<GetWorkRequestRequest,GetWorkRequestResponse> forWorkRequest(GetWorkRequestRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiterusing the provided configuration.- Parameters:
request- the request to sendterminationStrategy- theTerminationStrategyto usedelayStrategy- the to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
-