Package com.oracle.bmc.datascience
Class DataScienceWaiters
- java.lang.Object
-
- com.oracle.bmc.datascience.DataScienceWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190101") public class DataScienceWaiters extends Object
Collection of helper methods to produceWaiter
s for different resources of DataScience.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER
.
-
-
Constructor Summary
Constructors Constructor Description DataScienceWaiters(ExecutorService executorService, DataScience client)
-
Method Summary
-
-
-
Constructor Detail
-
DataScienceWaiters
public DataScienceWaiters(ExecutorService executorService, DataScience client)
-
-
Method Detail
-
forDataSciencePrivateEndpoint
public Waiter<GetDataSciencePrivateEndpointRequest,GetDataSciencePrivateEndpointResponse> forDataSciencePrivateEndpoint(GetDataSciencePrivateEndpointRequest request, DataSciencePrivateEndpointLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forDataSciencePrivateEndpoint
public Waiter<GetDataSciencePrivateEndpointRequest,GetDataSciencePrivateEndpointResponse> forDataSciencePrivateEndpoint(GetDataSciencePrivateEndpointRequest request, DataSciencePrivateEndpointLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forDataSciencePrivateEndpoint
public Waiter<GetDataSciencePrivateEndpointRequest,GetDataSciencePrivateEndpointResponse> forDataSciencePrivateEndpoint(GetDataSciencePrivateEndpointRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, DataSciencePrivateEndpointLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forJob
public Waiter<GetJobRequest,GetJobResponse> forJob(GetJobRequest request, JobLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forJob
public Waiter<GetJobRequest,GetJobResponse> forJob(GetJobRequest request, JobLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forJob
public Waiter<GetJobRequest,GetJobResponse> forJob(GetJobRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, JobLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forJobRun
public Waiter<GetJobRunRequest,GetJobRunResponse> forJobRun(GetJobRunRequest request, JobRunLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forJobRun
public Waiter<GetJobRunRequest,GetJobRunResponse> forJobRun(GetJobRunRequest request, JobRunLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forJobRun
public Waiter<GetJobRunRequest,GetJobRunResponse> forJobRun(GetJobRunRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, JobRunLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forMlApplication
public Waiter<GetMlApplicationRequest,GetMlApplicationResponse> forMlApplication(GetMlApplicationRequest request, MlApplication.LifecycleState... targetStates)
Creates a newWaiter
using 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
-
forMlApplication
public Waiter<GetMlApplicationRequest,GetMlApplicationResponse> forMlApplication(GetMlApplicationRequest request, MlApplication.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forMlApplication
public Waiter<GetMlApplicationRequest,GetMlApplicationResponse> forMlApplication(GetMlApplicationRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MlApplication.LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to 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
-
forMlApplicationImplementation
public Waiter<GetMlApplicationImplementationRequest,GetMlApplicationImplementationResponse> forMlApplicationImplementation(GetMlApplicationImplementationRequest request, MlApplicationImplementation.LifecycleState... targetStates)
Creates a newWaiter
using 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
-
forMlApplicationImplementation
public Waiter<GetMlApplicationImplementationRequest,GetMlApplicationImplementationResponse> forMlApplicationImplementation(GetMlApplicationImplementationRequest request, MlApplicationImplementation.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forMlApplicationImplementation
public Waiter<GetMlApplicationImplementationRequest,GetMlApplicationImplementationResponse> forMlApplicationImplementation(GetMlApplicationImplementationRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MlApplicationImplementation.LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to 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
-
forMlApplicationImplementationVersion
public Waiter<GetMlApplicationImplementationVersionRequest,GetMlApplicationImplementationVersionResponse> forMlApplicationImplementationVersion(GetMlApplicationImplementationVersionRequest request, MlApplicationImplementationVersion.LifecycleState... targetStates)
Creates a newWaiter
using 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
-
forMlApplicationImplementationVersion
public Waiter<GetMlApplicationImplementationVersionRequest,GetMlApplicationImplementationVersionResponse> forMlApplicationImplementationVersion(GetMlApplicationImplementationVersionRequest request, MlApplicationImplementationVersion.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forMlApplicationImplementationVersion
public Waiter<GetMlApplicationImplementationVersionRequest,GetMlApplicationImplementationVersionResponse> forMlApplicationImplementationVersion(GetMlApplicationImplementationVersionRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MlApplicationImplementationVersion.LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to 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
-
forMlApplicationInstance
public Waiter<GetMlApplicationInstanceRequest,GetMlApplicationInstanceResponse> forMlApplicationInstance(GetMlApplicationInstanceRequest request, MlApplicationInstance.LifecycleState... targetStates)
Creates a newWaiter
using 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
-
forMlApplicationInstance
public Waiter<GetMlApplicationInstanceRequest,GetMlApplicationInstanceResponse> forMlApplicationInstance(GetMlApplicationInstanceRequest request, MlApplicationInstance.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forMlApplicationInstance
public Waiter<GetMlApplicationInstanceRequest,GetMlApplicationInstanceResponse> forMlApplicationInstance(GetMlApplicationInstanceRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MlApplicationInstance.LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to 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
-
forMlApplicationInstanceView
public Waiter<GetMlApplicationInstanceViewRequest,GetMlApplicationInstanceViewResponse> forMlApplicationInstanceView(GetMlApplicationInstanceViewRequest request, MlApplicationInstanceView.LifecycleState... targetStates)
Creates a newWaiter
using 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
-
forMlApplicationInstanceView
public Waiter<GetMlApplicationInstanceViewRequest,GetMlApplicationInstanceViewResponse> forMlApplicationInstanceView(GetMlApplicationInstanceViewRequest request, MlApplicationInstanceView.LifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forMlApplicationInstanceView
public Waiter<GetMlApplicationInstanceViewRequest,GetMlApplicationInstanceViewResponse> forMlApplicationInstanceView(GetMlApplicationInstanceViewRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MlApplicationInstanceView.LifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to 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
-
forModel
public Waiter<GetModelRequest,GetModelResponse> forModel(GetModelRequest request, ModelLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forModel
public Waiter<GetModelRequest,GetModelResponse> forModel(GetModelRequest request, ModelLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forModel
public Waiter<GetModelRequest,GetModelResponse> forModel(GetModelRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ModelLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forModelDeployment
public Waiter<GetModelDeploymentRequest,GetModelDeploymentResponse> forModelDeployment(GetModelDeploymentRequest request, ModelDeploymentLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forModelDeployment
public Waiter<GetModelDeploymentRequest,GetModelDeploymentResponse> forModelDeployment(GetModelDeploymentRequest request, ModelDeploymentLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forModelDeployment
public Waiter<GetModelDeploymentRequest,GetModelDeploymentResponse> forModelDeployment(GetModelDeploymentRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ModelDeploymentLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forModelVersionSet
public Waiter<GetModelVersionSetRequest,GetModelVersionSetResponse> forModelVersionSet(GetModelVersionSetRequest request, ModelVersionSetLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forModelVersionSet
public Waiter<GetModelVersionSetRequest,GetModelVersionSetResponse> forModelVersionSet(GetModelVersionSetRequest request, ModelVersionSetLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forModelVersionSet
public Waiter<GetModelVersionSetRequest,GetModelVersionSetResponse> forModelVersionSet(GetModelVersionSetRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ModelVersionSetLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forNotebookSession
public Waiter<GetNotebookSessionRequest,GetNotebookSessionResponse> forNotebookSession(GetNotebookSessionRequest request, NotebookSessionLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forNotebookSession
public Waiter<GetNotebookSessionRequest,GetNotebookSessionResponse> forNotebookSession(GetNotebookSessionRequest request, NotebookSessionLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forNotebookSession
public Waiter<GetNotebookSessionRequest,GetNotebookSessionResponse> forNotebookSession(GetNotebookSessionRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, NotebookSessionLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forPipeline
public Waiter<GetPipelineRequest,GetPipelineResponse> forPipeline(GetPipelineRequest request, PipelineLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forPipeline
public Waiter<GetPipelineRequest,GetPipelineResponse> forPipeline(GetPipelineRequest request, PipelineLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forPipeline
public Waiter<GetPipelineRequest,GetPipelineResponse> forPipeline(GetPipelineRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, PipelineLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forPipelineRun
public Waiter<GetPipelineRunRequest,GetPipelineRunResponse> forPipelineRun(GetPipelineRunRequest request, PipelineRunLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forPipelineRun
public Waiter<GetPipelineRunRequest,GetPipelineRunResponse> forPipelineRun(GetPipelineRunRequest request, PipelineRunLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forPipelineRun
public Waiter<GetPipelineRunRequest,GetPipelineRunResponse> forPipelineRun(GetPipelineRunRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, PipelineRunLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forProject
public Waiter<GetProjectRequest,GetProjectResponse> forProject(GetProjectRequest request, ProjectLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forProject
public Waiter<GetProjectRequest,GetProjectResponse> forProject(GetProjectRequest request, ProjectLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forProject
public Waiter<GetProjectRequest,GetProjectResponse> forProject(GetProjectRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ProjectLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, ScheduleLifecycleState... targetStates)
Creates a newWaiter
using the default configuration.- Parameters:
request
- the request to sendtargetState
- 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 com.oracle.bmc.waiter.Waiter instance
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, ScheduleLifecycleState targetState, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendtargetState
- the desired state to wait forterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
forSchedule
public Waiter<GetScheduleRequest,GetScheduleResponse> forSchedule(GetScheduleRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ScheduleLifecycleState... targetStates)
Creates a newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- theDelayStrategy
to usetargetStates
- the desired states to wait for. The waiter will return once the resource reaches any of the provided states- Returns:
- a new Waiter instance
-
forWorkRequest
public Waiter<GetWorkRequestRequest,GetWorkRequestResponse> forWorkRequest(GetWorkRequestRequest request)
Creates a newWaiter
using 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 newWaiter
using the provided configuration.- Parameters:
request
- the request to sendterminationStrategy
- theTerminationStrategy
to usedelayStrategy
- the to use- Returns:
- a new com.oracle.bmc.waiter.Waiter instance
-
-