Class GovernanceRuleWaiters
- java.lang.Object
-
- com.oracle.bmc.governancerulescontrolplane.GovernanceRuleWaiters
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20220504") public class GovernanceRuleWaiters extends Object
Collection of helper methods to produceWaiter
s for different resources of GovernanceRule.The default configuration used is defined by
com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER
.
-
-
Constructor Summary
Constructors Constructor Description GovernanceRuleWaiters(ExecutorService executorService, GovernanceRule client)
-
Method Summary
-
-
-
Constructor Detail
-
GovernanceRuleWaiters
public GovernanceRuleWaiters(ExecutorService executorService, GovernanceRule client)
-
-
Method Detail
-
forEnforcedGovernanceRule
public Waiter<GetEnforcedGovernanceRuleRequest,GetEnforcedGovernanceRuleResponse> forEnforcedGovernanceRule(GetEnforcedGovernanceRuleRequest request, GovernanceRuleLifecycleState... 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
-
forEnforcedGovernanceRule
public Waiter<GetEnforcedGovernanceRuleRequest,GetEnforcedGovernanceRuleResponse> forEnforcedGovernanceRule(GetEnforcedGovernanceRuleRequest request, GovernanceRuleLifecycleState 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
-
forEnforcedGovernanceRule
public Waiter<GetEnforcedGovernanceRuleRequest,GetEnforcedGovernanceRuleResponse> forEnforcedGovernanceRule(GetEnforcedGovernanceRuleRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, GovernanceRuleLifecycleState... 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
-
forGovernanceRule
public Waiter<GetGovernanceRuleRequest,GetGovernanceRuleResponse> forGovernanceRule(GetGovernanceRuleRequest request, GovernanceRuleLifecycleState... 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
-
forGovernanceRule
public Waiter<GetGovernanceRuleRequest,GetGovernanceRuleResponse> forGovernanceRule(GetGovernanceRuleRequest request, GovernanceRuleLifecycleState 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
-
forGovernanceRule
public Waiter<GetGovernanceRuleRequest,GetGovernanceRuleResponse> forGovernanceRule(GetGovernanceRuleRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, GovernanceRuleLifecycleState... 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
-
forInclusionCriterion
public Waiter<GetInclusionCriterionRequest,GetInclusionCriterionResponse> forInclusionCriterion(GetInclusionCriterionRequest request, InclusionCriterion.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
-
forInclusionCriterion
public Waiter<GetInclusionCriterionRequest,GetInclusionCriterionResponse> forInclusionCriterion(GetInclusionCriterionRequest request, InclusionCriterion.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
-
forInclusionCriterion
public Waiter<GetInclusionCriterionRequest,GetInclusionCriterionResponse> forInclusionCriterion(GetInclusionCriterionRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, InclusionCriterion.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
-
forTenancyAttachment
public Waiter<GetTenancyAttachmentRequest,GetTenancyAttachmentResponse> forTenancyAttachment(GetTenancyAttachmentRequest request, TenancyAttachment.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
-
forTenancyAttachment
public Waiter<GetTenancyAttachmentRequest,GetTenancyAttachmentResponse> forTenancyAttachment(GetTenancyAttachmentRequest request, TenancyAttachment.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
-
forTenancyAttachment
public Waiter<GetTenancyAttachmentRequest,GetTenancyAttachmentResponse> forTenancyAttachment(GetTenancyAttachmentRequest request, TerminationStrategy terminationStrategy, DelayStrategy delayStrategy, TenancyAttachment.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
-
-