Package com.oracle.bmc.stackmonitoring
Class StackMonitoringWaiters
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.StackMonitoringWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public class StackMonitoringWaiters extends Object
Collection of helper methods to produceWaiter
s for different resources of StackMonitoring.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER
.
-
-
Constructor Summary
Constructors Constructor Description StackMonitoringWaiters(ExecutorService executorService, StackMonitoring client)
-
Method Summary
-
-
-
Constructor Detail
-
StackMonitoringWaiters
public StackMonitoringWaiters(ExecutorService executorService, StackMonitoring client)
-
-
Method Detail
-
forAlarmCondition
public Waiter<GetAlarmConditionRequest,GetAlarmConditionResponse> forAlarmCondition(GetAlarmConditionRequest request, AlarmConditionLifeCycleStates... 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
-
forAlarmCondition
public Waiter<GetAlarmConditionRequest,GetAlarmConditionResponse> forAlarmCondition(GetAlarmConditionRequest request, AlarmConditionLifeCycleStates 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
-
forAlarmCondition
public Waiter<GetAlarmConditionRequest,GetAlarmConditionResponse> forAlarmCondition(GetAlarmConditionRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, AlarmConditionLifeCycleStates... 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
-
forBaselineableMetric
public Waiter<GetBaselineableMetricRequest,GetBaselineableMetricResponse> forBaselineableMetric(GetBaselineableMetricRequest request, BaselineableMetricLifeCycleStates... 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
-
forBaselineableMetric
public Waiter<GetBaselineableMetricRequest,GetBaselineableMetricResponse> forBaselineableMetric(GetBaselineableMetricRequest request, BaselineableMetricLifeCycleStates 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
-
forBaselineableMetric
public Waiter<GetBaselineableMetricRequest,GetBaselineableMetricResponse> forBaselineableMetric(GetBaselineableMetricRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, BaselineableMetricLifeCycleStates... 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
-
forConfig
public Waiter<GetConfigRequest,GetConfigResponse> forConfig(GetConfigRequest request, Config.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
-
forConfig
public Waiter<GetConfigRequest,GetConfigResponse> forConfig(GetConfigRequest request, Config.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
-
forConfig
public Waiter<GetConfigRequest,GetConfigResponse> forConfig(GetConfigRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, Config.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
-
forDiscoveryJob
public Waiter<GetDiscoveryJobRequest,GetDiscoveryJobResponse> forDiscoveryJob(GetDiscoveryJobRequest request, LifecycleState... 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
-
forDiscoveryJob
public Waiter<GetDiscoveryJobRequest,GetDiscoveryJobResponse> forDiscoveryJob(GetDiscoveryJobRequest request, 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
-
forDiscoveryJob
public Waiter<GetDiscoveryJobRequest,GetDiscoveryJobResponse> forDiscoveryJob(GetDiscoveryJobRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, 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 Waiter instance
-
forMaintenanceWindow
public Waiter<GetMaintenanceWindowRequest,GetMaintenanceWindowResponse> forMaintenanceWindow(GetMaintenanceWindowRequest request, MaintenanceWindowLifecycleState... 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
-
forMaintenanceWindow
public Waiter<GetMaintenanceWindowRequest,GetMaintenanceWindowResponse> forMaintenanceWindow(GetMaintenanceWindowRequest request, MaintenanceWindowLifecycleState 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
-
forMaintenanceWindow
public Waiter<GetMaintenanceWindowRequest,GetMaintenanceWindowResponse> forMaintenanceWindow(GetMaintenanceWindowRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MaintenanceWindowLifecycleState... 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
-
forMetricExtension
public Waiter<GetMetricExtensionRequest,GetMetricExtensionResponse> forMetricExtension(GetMetricExtensionRequest request, MetricExtensionLifeCycleStates... 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
-
forMetricExtension
public Waiter<GetMetricExtensionRequest,GetMetricExtensionResponse> forMetricExtension(GetMetricExtensionRequest request, MetricExtensionLifeCycleStates 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
-
forMetricExtension
public Waiter<GetMetricExtensionRequest,GetMetricExtensionResponse> forMetricExtension(GetMetricExtensionRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MetricExtensionLifeCycleStates... 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
-
forMonitoredResource
public Waiter<GetMonitoredResourceRequest,GetMonitoredResourceResponse> forMonitoredResource(GetMonitoredResourceRequest request, ResourceLifecycleState... 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
-
forMonitoredResource
public Waiter<GetMonitoredResourceRequest,GetMonitoredResourceResponse> forMonitoredResource(GetMonitoredResourceRequest request, ResourceLifecycleState 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
-
forMonitoredResource
public Waiter<GetMonitoredResourceRequest,GetMonitoredResourceResponse> forMonitoredResource(GetMonitoredResourceRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ResourceLifecycleState... 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
-
forMonitoredResourceTask
public Waiter<GetMonitoredResourceTaskRequest,GetMonitoredResourceTaskResponse> forMonitoredResourceTask(GetMonitoredResourceTaskRequest request, MonitoredResourceTaskLifecycleState... 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
-
forMonitoredResourceTask
public Waiter<GetMonitoredResourceTaskRequest,GetMonitoredResourceTaskResponse> forMonitoredResourceTask(GetMonitoredResourceTaskRequest request, MonitoredResourceTaskLifecycleState 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
-
forMonitoredResourceTask
public Waiter<GetMonitoredResourceTaskRequest,GetMonitoredResourceTaskResponse> forMonitoredResourceTask(GetMonitoredResourceTaskRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MonitoredResourceTaskLifecycleState... 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
-
forMonitoredResourceType
public Waiter<GetMonitoredResourceTypeRequest,GetMonitoredResourceTypeResponse> forMonitoredResourceType(GetMonitoredResourceTypeRequest request, ResourceTypeLifecycleState... 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
-
forMonitoredResourceType
public Waiter<GetMonitoredResourceTypeRequest,GetMonitoredResourceTypeResponse> forMonitoredResourceType(GetMonitoredResourceTypeRequest request, ResourceTypeLifecycleState 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
-
forMonitoredResourceType
public Waiter<GetMonitoredResourceTypeRequest,GetMonitoredResourceTypeResponse> forMonitoredResourceType(GetMonitoredResourceTypeRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, ResourceTypeLifecycleState... 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
-
forMonitoringTemplate
public Waiter<GetMonitoringTemplateRequest,GetMonitoringTemplateResponse> forMonitoringTemplate(GetMonitoringTemplateRequest request, MonitoringTemplateLifeCycleStates... 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
-
forMonitoringTemplate
public Waiter<GetMonitoringTemplateRequest,GetMonitoringTemplateResponse> forMonitoringTemplate(GetMonitoringTemplateRequest request, MonitoringTemplateLifeCycleStates 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
-
forMonitoringTemplate
public Waiter<GetMonitoringTemplateRequest,GetMonitoringTemplateResponse> forMonitoringTemplate(GetMonitoringTemplateRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, MonitoringTemplateLifeCycleStates... 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
-
forProcessSet
public Waiter<GetProcessSetRequest,GetProcessSetResponse> forProcessSet(GetProcessSetRequest request, LifecycleState... 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
-
forProcessSet
public Waiter<GetProcessSetRequest,GetProcessSetResponse> forProcessSet(GetProcessSetRequest request, 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
-
forProcessSet
public Waiter<GetProcessSetRequest,GetProcessSetResponse> forProcessSet(GetProcessSetRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, 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 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
-
-