Package com.oracle.bmc.cloudmigrations
Class MigrationWaiters
- java.lang.Object
-
- com.oracle.bmc.cloudmigrations.MigrationWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220919") public class MigrationWaiters extends ObjectCollection of helper methods to produceWaiters for different resources of Migration.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER.
-
-
Constructor Summary
Constructors Constructor Description MigrationWaiters(ExecutorService executorService, Migration client)
-
Method Summary
-
-
-
Constructor Detail
-
MigrationWaiters
public MigrationWaiters(ExecutorService executorService, Migration client)
-
-
Method Detail
-
forMigration
public Waiter<GetMigrationRequest,GetMigrationResponse> forMigration(GetMigrationRequest request, Migration.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
-
forMigration
public Waiter<GetMigrationRequest,GetMigrationResponse> forMigration(GetMigrationRequest request, Migration.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
-
forMigration
public Waiter<GetMigrationRequest,GetMigrationResponse> forMigration(GetMigrationRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Migration.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
-
forMigrationAsset
public Waiter<GetMigrationAssetRequest,GetMigrationAssetResponse> forMigrationAsset(GetMigrationAssetRequest request, MigrationAsset.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
-
forMigrationAsset
public Waiter<GetMigrationAssetRequest,GetMigrationAssetResponse> forMigrationAsset(GetMigrationAssetRequest request, MigrationAsset.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
-
forMigrationAsset
public Waiter<GetMigrationAssetRequest,GetMigrationAssetResponse> forMigrationAsset(GetMigrationAssetRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MigrationAsset.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
-
forMigrationPlan
public Waiter<GetMigrationPlanRequest,GetMigrationPlanResponse> forMigrationPlan(GetMigrationPlanRequest request, MigrationPlan.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
-
forMigrationPlan
public Waiter<GetMigrationPlanRequest,GetMigrationPlanResponse> forMigrationPlan(GetMigrationPlanRequest request, MigrationPlan.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
-
forMigrationPlan
public Waiter<GetMigrationPlanRequest,GetMigrationPlanResponse> forMigrationPlan(GetMigrationPlanRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MigrationPlan.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
-
forReplicationSchedule
public Waiter<GetReplicationScheduleRequest,GetReplicationScheduleResponse> forReplicationSchedule(GetReplicationScheduleRequest request, ReplicationSchedule.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
-
forReplicationSchedule
public Waiter<GetReplicationScheduleRequest,GetReplicationScheduleResponse> forReplicationSchedule(GetReplicationScheduleRequest request, ReplicationSchedule.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
-
forReplicationSchedule
public Waiter<GetReplicationScheduleRequest,GetReplicationScheduleResponse> forReplicationSchedule(GetReplicationScheduleRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ReplicationSchedule.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
-
forTargetAsset
public Waiter<GetTargetAssetRequest,GetTargetAssetResponse> forTargetAsset(GetTargetAssetRequest request, TargetAsset.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
-
forTargetAsset
public Waiter<GetTargetAssetRequest,GetTargetAssetResponse> forTargetAsset(GetTargetAssetRequest request, TargetAsset.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
-
forTargetAsset
public Waiter<GetTargetAssetRequest,GetTargetAssetResponse> forTargetAsset(GetTargetAssetRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, TargetAsset.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
-
-