All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.database.DatabaseWaiters Maven / Gradle / Ivy

Go to download

This project contains the SDK used for Oracle Cloud Infrastructure Database Service

There is a newer version: 3.55.1
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.database;

import com.oracle.bmc.database.requests.*;
import com.oracle.bmc.database.responses.*;

/**
 * Collection of helper methods to produce {@link com.oracle.bmc.waiter.Waiter}s for different
 * resources of Database.
 *
 * 

The default configuration used is defined by {@link * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20160918") public class DatabaseWaiters { @jakarta.annotation.Nonnull private final java.util.concurrent.ExecutorService executorService; @jakarta.annotation.Nonnull private final Database client; private final com.oracle.bmc.workrequests.WorkRequest workRequestClient; @Deprecated public DatabaseWaiters( @jakarta.annotation.Nonnull java.util.concurrent.ExecutorService executorService, @jakarta.annotation.Nonnull Database client) { this(executorService, client, null); } public DatabaseWaiters( @jakarta.annotation.Nonnull java.util.concurrent.ExecutorService executorService, @jakarta.annotation.Nonnull Database client, com.oracle.bmc.workrequests.WorkRequest workRequestClient) { if (executorService == null) { throw new NullPointerException("executorService is marked non-null but is null"); } if (client == null) { throw new NullPointerException("client is marked non-null but is null"); } this.executorService = executorService; this.client = client; this.workRequestClient = workRequestClient; } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ActivateExadataInfrastructureRequest, ActivateExadataInfrastructureResponse> forActivateExadataInfrastructure(ActivateExadataInfrastructureRequest request) { return forActivateExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ActivateExadataInfrastructureRequest, ActivateExadataInfrastructureResponse> forActivateExadataInfrastructure( ActivateExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ActivateExadataInfrastructureResponse call() throws Exception { final ActivateExadataInfrastructureResponse response = client.activateExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddStorageCapacityCloudExadataInfrastructureRequest, AddStorageCapacityCloudExadataInfrastructureResponse> forAddStorageCapacityCloudExadataInfrastructure( AddStorageCapacityCloudExadataInfrastructureRequest request) { return forAddStorageCapacityCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddStorageCapacityCloudExadataInfrastructureRequest, AddStorageCapacityCloudExadataInfrastructureResponse> forAddStorageCapacityCloudExadataInfrastructure( AddStorageCapacityCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< AddStorageCapacityCloudExadataInfrastructureResponse>() { @Override public AddStorageCapacityCloudExadataInfrastructureResponse call() throws Exception { final AddStorageCapacityCloudExadataInfrastructureResponse response = client.addStorageCapacityCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddStorageCapacityExadataInfrastructureRequest, AddStorageCapacityExadataInfrastructureResponse> forAddStorageCapacityExadataInfrastructure( AddStorageCapacityExadataInfrastructureRequest request) { return forAddStorageCapacityExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddStorageCapacityExadataInfrastructureRequest, AddStorageCapacityExadataInfrastructureResponse> forAddStorageCapacityExadataInfrastructure( AddStorageCapacityExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< AddStorageCapacityExadataInfrastructureResponse>() { @Override public AddStorageCapacityExadataInfrastructureResponse call() throws Exception { final AddStorageCapacityExadataInfrastructureResponse response = client.addStorageCapacityExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddVirtualMachineToCloudVmClusterRequest, AddVirtualMachineToCloudVmClusterResponse> forAddVirtualMachineToCloudVmCluster(AddVirtualMachineToCloudVmClusterRequest request) { return forAddVirtualMachineToCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddVirtualMachineToCloudVmClusterRequest, AddVirtualMachineToCloudVmClusterResponse> forAddVirtualMachineToCloudVmCluster( AddVirtualMachineToCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public AddVirtualMachineToCloudVmClusterResponse call() throws Exception { final AddVirtualMachineToCloudVmClusterResponse response = client.addVirtualMachineToCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddVirtualMachineToVmClusterRequest, AddVirtualMachineToVmClusterResponse> forAddVirtualMachineToVmCluster(AddVirtualMachineToVmClusterRequest request) { return forAddVirtualMachineToVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AddVirtualMachineToVmClusterRequest, AddVirtualMachineToVmClusterResponse> forAddVirtualMachineToVmCluster( AddVirtualMachineToVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public AddVirtualMachineToVmClusterResponse call() throws Exception { final AddVirtualMachineToVmClusterResponse response = client.addVirtualMachineToVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AutonomousDatabaseManualRefreshRequest, AutonomousDatabaseManualRefreshResponse> forAutonomousDatabaseManualRefresh(AutonomousDatabaseManualRefreshRequest request) { return forAutonomousDatabaseManualRefresh( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< AutonomousDatabaseManualRefreshRequest, AutonomousDatabaseManualRefreshResponse> forAutonomousDatabaseManualRefresh( AutonomousDatabaseManualRefreshRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public AutonomousDatabaseManualRefreshResponse call() throws Exception { final AutonomousDatabaseManualRefreshResponse response = client.autonomousDatabaseManualRefresh(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCancelBackup( CancelBackupRequest request) { return forCancelBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCancelBackup( CancelBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CancelBackupResponse call() throws Exception { final CancelBackupResponse response = client.cancelBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCancelExecutionWindow(CancelExecutionWindowRequest request) { return forCancelExecutionWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCancelExecutionWindow( CancelExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CancelExecutionWindowResponse call() throws Exception { final CancelExecutionWindowResponse response = client.cancelExecutionWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CascadingDeleteSchedulingPlanRequest, CascadingDeleteSchedulingPlanResponse> forCascadingDeleteSchedulingPlan(CascadingDeleteSchedulingPlanRequest request) { return forCascadingDeleteSchedulingPlan( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CascadingDeleteSchedulingPlanRequest, CascadingDeleteSchedulingPlanResponse> forCascadingDeleteSchedulingPlan( CascadingDeleteSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CascadingDeleteSchedulingPlanResponse call() throws Exception { final CascadingDeleteSchedulingPlanResponse response = client.cascadingDeleteSchedulingPlan(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousContainerDatabaseCompartmentRequest, ChangeAutonomousContainerDatabaseCompartmentResponse> forChangeAutonomousContainerDatabaseCompartment( ChangeAutonomousContainerDatabaseCompartmentRequest request) { return forChangeAutonomousContainerDatabaseCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousContainerDatabaseCompartmentRequest, ChangeAutonomousContainerDatabaseCompartmentResponse> forChangeAutonomousContainerDatabaseCompartment( ChangeAutonomousContainerDatabaseCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeAutonomousContainerDatabaseCompartmentResponse>() { @Override public ChangeAutonomousContainerDatabaseCompartmentResponse call() throws Exception { final ChangeAutonomousContainerDatabaseCompartmentResponse response = client.changeAutonomousContainerDatabaseCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseCompartmentRequest, ChangeAutonomousDatabaseCompartmentResponse> forChangeAutonomousDatabaseCompartment( ChangeAutonomousDatabaseCompartmentRequest request) { return forChangeAutonomousDatabaseCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseCompartmentRequest, ChangeAutonomousDatabaseCompartmentResponse> forChangeAutonomousDatabaseCompartment( ChangeAutonomousDatabaseCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeAutonomousDatabaseCompartmentResponse call() throws Exception { final ChangeAutonomousDatabaseCompartmentResponse response = client.changeAutonomousDatabaseCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseSoftwareImageCompartmentRequest, ChangeAutonomousDatabaseSoftwareImageCompartmentResponse> forChangeAutonomousDatabaseSoftwareImageCompartment( ChangeAutonomousDatabaseSoftwareImageCompartmentRequest request) { return forChangeAutonomousDatabaseSoftwareImageCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseSoftwareImageCompartmentRequest, ChangeAutonomousDatabaseSoftwareImageCompartmentResponse> forChangeAutonomousDatabaseSoftwareImageCompartment( ChangeAutonomousDatabaseSoftwareImageCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeAutonomousDatabaseSoftwareImageCompartmentResponse>() { @Override public ChangeAutonomousDatabaseSoftwareImageCompartmentResponse call() throws Exception { final ChangeAutonomousDatabaseSoftwareImageCompartmentResponse response = client.changeAutonomousDatabaseSoftwareImageCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseSubscriptionRequest, ChangeAutonomousDatabaseSubscriptionResponse> forChangeAutonomousDatabaseSubscription( ChangeAutonomousDatabaseSubscriptionRequest request) { return forChangeAutonomousDatabaseSubscription( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousDatabaseSubscriptionRequest, ChangeAutonomousDatabaseSubscriptionResponse> forChangeAutonomousDatabaseSubscription( ChangeAutonomousDatabaseSubscriptionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeAutonomousDatabaseSubscriptionResponse call() throws Exception { final ChangeAutonomousDatabaseSubscriptionResponse response = client.changeAutonomousDatabaseSubscription(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousExadataInfrastructureCompartmentRequest, ChangeAutonomousExadataInfrastructureCompartmentResponse> forChangeAutonomousExadataInfrastructureCompartment( ChangeAutonomousExadataInfrastructureCompartmentRequest request) { return forChangeAutonomousExadataInfrastructureCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousExadataInfrastructureCompartmentRequest, ChangeAutonomousExadataInfrastructureCompartmentResponse> forChangeAutonomousExadataInfrastructureCompartment( ChangeAutonomousExadataInfrastructureCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeAutonomousExadataInfrastructureCompartmentResponse>() { @Override public ChangeAutonomousExadataInfrastructureCompartmentResponse call() throws Exception { final ChangeAutonomousExadataInfrastructureCompartmentResponse response = client.changeAutonomousExadataInfrastructureCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousVmClusterCompartmentRequest, ChangeAutonomousVmClusterCompartmentResponse> forChangeAutonomousVmClusterCompartment( ChangeAutonomousVmClusterCompartmentRequest request) { return forChangeAutonomousVmClusterCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeAutonomousVmClusterCompartmentRequest, ChangeAutonomousVmClusterCompartmentResponse> forChangeAutonomousVmClusterCompartment( ChangeAutonomousVmClusterCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeAutonomousVmClusterCompartmentResponse call() throws Exception { final ChangeAutonomousVmClusterCompartmentResponse response = client.changeAutonomousVmClusterCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeBackupDestinationCompartmentRequest, ChangeBackupDestinationCompartmentResponse> forChangeBackupDestinationCompartment( ChangeBackupDestinationCompartmentRequest request) { return forChangeBackupDestinationCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeBackupDestinationCompartmentRequest, ChangeBackupDestinationCompartmentResponse> forChangeBackupDestinationCompartment( ChangeBackupDestinationCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeBackupDestinationCompartmentResponse call() throws Exception { final ChangeBackupDestinationCompartmentResponse response = client.changeBackupDestinationCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudAutonomousVmClusterCompartmentRequest, ChangeCloudAutonomousVmClusterCompartmentResponse> forChangeCloudAutonomousVmClusterCompartment( ChangeCloudAutonomousVmClusterCompartmentRequest request) { return forChangeCloudAutonomousVmClusterCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudAutonomousVmClusterCompartmentRequest, ChangeCloudAutonomousVmClusterCompartmentResponse> forChangeCloudAutonomousVmClusterCompartment( ChangeCloudAutonomousVmClusterCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeCloudAutonomousVmClusterCompartmentResponse>() { @Override public ChangeCloudAutonomousVmClusterCompartmentResponse call() throws Exception { final ChangeCloudAutonomousVmClusterCompartmentResponse response = client.changeCloudAutonomousVmClusterCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudExadataInfrastructureCompartmentRequest, ChangeCloudExadataInfrastructureCompartmentResponse> forChangeCloudExadataInfrastructureCompartment( ChangeCloudExadataInfrastructureCompartmentRequest request) { return forChangeCloudExadataInfrastructureCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudExadataInfrastructureCompartmentRequest, ChangeCloudExadataInfrastructureCompartmentResponse> forChangeCloudExadataInfrastructureCompartment( ChangeCloudExadataInfrastructureCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeCloudExadataInfrastructureCompartmentResponse>() { @Override public ChangeCloudExadataInfrastructureCompartmentResponse call() throws Exception { final ChangeCloudExadataInfrastructureCompartmentResponse response = client.changeCloudExadataInfrastructureCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudExadataInfrastructureSubscriptionRequest, ChangeCloudExadataInfrastructureSubscriptionResponse> forChangeCloudExadataInfrastructureSubscription( ChangeCloudExadataInfrastructureSubscriptionRequest request) { return forChangeCloudExadataInfrastructureSubscription( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudExadataInfrastructureSubscriptionRequest, ChangeCloudExadataInfrastructureSubscriptionResponse> forChangeCloudExadataInfrastructureSubscription( ChangeCloudExadataInfrastructureSubscriptionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeCloudExadataInfrastructureSubscriptionResponse>() { @Override public ChangeCloudExadataInfrastructureSubscriptionResponse call() throws Exception { final ChangeCloudExadataInfrastructureSubscriptionResponse response = client.changeCloudExadataInfrastructureSubscription(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudVmClusterCompartmentRequest, ChangeCloudVmClusterCompartmentResponse> forChangeCloudVmClusterCompartment(ChangeCloudVmClusterCompartmentRequest request) { return forChangeCloudVmClusterCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudVmClusterCompartmentRequest, ChangeCloudVmClusterCompartmentResponse> forChangeCloudVmClusterCompartment( ChangeCloudVmClusterCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeCloudVmClusterCompartmentResponse call() throws Exception { final ChangeCloudVmClusterCompartmentResponse response = client.changeCloudVmClusterCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudVmClusterSubscriptionRequest, ChangeCloudVmClusterSubscriptionResponse> forChangeCloudVmClusterSubscription(ChangeCloudVmClusterSubscriptionRequest request) { return forChangeCloudVmClusterSubscription( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeCloudVmClusterSubscriptionRequest, ChangeCloudVmClusterSubscriptionResponse> forChangeCloudVmClusterSubscription( ChangeCloudVmClusterSubscriptionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeCloudVmClusterSubscriptionResponse call() throws Exception { final ChangeCloudVmClusterSubscriptionResponse response = client.changeCloudVmClusterSubscription(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDatabaseSoftwareImageCompartmentRequest, ChangeDatabaseSoftwareImageCompartmentResponse> forChangeDatabaseSoftwareImageCompartment( ChangeDatabaseSoftwareImageCompartmentRequest request) { return forChangeDatabaseSoftwareImageCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDatabaseSoftwareImageCompartmentRequest, ChangeDatabaseSoftwareImageCompartmentResponse> forChangeDatabaseSoftwareImageCompartment( ChangeDatabaseSoftwareImageCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeDatabaseSoftwareImageCompartmentResponse>() { @Override public ChangeDatabaseSoftwareImageCompartmentResponse call() throws Exception { final ChangeDatabaseSoftwareImageCompartmentResponse response = client.changeDatabaseSoftwareImageCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forChangeDataguardRole(ChangeDataguardRoleRequest request) { return forChangeDataguardRole( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forChangeDataguardRole( ChangeDataguardRoleRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeDataguardRoleResponse call() throws Exception { final ChangeDataguardRoleResponse response = client.changeDataguardRole(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDbSystemCompartmentRequest, ChangeDbSystemCompartmentResponse> forChangeDbSystemCompartment(ChangeDbSystemCompartmentRequest request) { return forChangeDbSystemCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDbSystemCompartmentRequest, ChangeDbSystemCompartmentResponse> forChangeDbSystemCompartment( ChangeDbSystemCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeDbSystemCompartmentResponse call() throws Exception { final ChangeDbSystemCompartmentResponse response = client.changeDbSystemCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDisasterRecoveryConfigurationRequest, ChangeDisasterRecoveryConfigurationResponse> forChangeDisasterRecoveryConfiguration( ChangeDisasterRecoveryConfigurationRequest request) { return forChangeDisasterRecoveryConfiguration( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeDisasterRecoveryConfigurationRequest, ChangeDisasterRecoveryConfigurationResponse> forChangeDisasterRecoveryConfiguration( ChangeDisasterRecoveryConfigurationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeDisasterRecoveryConfigurationResponse call() throws Exception { final ChangeDisasterRecoveryConfigurationResponse response = client.changeDisasterRecoveryConfiguration(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExadataInfrastructureCompartmentRequest, ChangeExadataInfrastructureCompartmentResponse> forChangeExadataInfrastructureCompartment( ChangeExadataInfrastructureCompartmentRequest request) { return forChangeExadataInfrastructureCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExadataInfrastructureCompartmentRequest, ChangeExadataInfrastructureCompartmentResponse> forChangeExadataInfrastructureCompartment( ChangeExadataInfrastructureCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeExadataInfrastructureCompartmentResponse>() { @Override public ChangeExadataInfrastructureCompartmentResponse call() throws Exception { final ChangeExadataInfrastructureCompartmentResponse response = client.changeExadataInfrastructureCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExadbVmClusterCompartmentRequest, ChangeExadbVmClusterCompartmentResponse> forChangeExadbVmClusterCompartment(ChangeExadbVmClusterCompartmentRequest request) { return forChangeExadbVmClusterCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExadbVmClusterCompartmentRequest, ChangeExadbVmClusterCompartmentResponse> forChangeExadbVmClusterCompartment( ChangeExadbVmClusterCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeExadbVmClusterCompartmentResponse call() throws Exception { final ChangeExadbVmClusterCompartmentResponse response = client.changeExadbVmClusterCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExascaleDbStorageVaultCompartmentRequest, ChangeExascaleDbStorageVaultCompartmentResponse> forChangeExascaleDbStorageVaultCompartment( ChangeExascaleDbStorageVaultCompartmentRequest request) { return forChangeExascaleDbStorageVaultCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExascaleDbStorageVaultCompartmentRequest, ChangeExascaleDbStorageVaultCompartmentResponse> forChangeExascaleDbStorageVaultCompartment( ChangeExascaleDbStorageVaultCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeExascaleDbStorageVaultCompartmentResponse>() { @Override public ChangeExascaleDbStorageVaultCompartmentResponse call() throws Exception { final ChangeExascaleDbStorageVaultCompartmentResponse response = client.changeExascaleDbStorageVaultCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalContainerDatabaseCompartmentRequest, ChangeExternalContainerDatabaseCompartmentResponse> forChangeExternalContainerDatabaseCompartment( ChangeExternalContainerDatabaseCompartmentRequest request) { return forChangeExternalContainerDatabaseCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalContainerDatabaseCompartmentRequest, ChangeExternalContainerDatabaseCompartmentResponse> forChangeExternalContainerDatabaseCompartment( ChangeExternalContainerDatabaseCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeExternalContainerDatabaseCompartmentResponse>() { @Override public ChangeExternalContainerDatabaseCompartmentResponse call() throws Exception { final ChangeExternalContainerDatabaseCompartmentResponse response = client.changeExternalContainerDatabaseCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalNonContainerDatabaseCompartmentRequest, ChangeExternalNonContainerDatabaseCompartmentResponse> forChangeExternalNonContainerDatabaseCompartment( ChangeExternalNonContainerDatabaseCompartmentRequest request) { return forChangeExternalNonContainerDatabaseCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalNonContainerDatabaseCompartmentRequest, ChangeExternalNonContainerDatabaseCompartmentResponse> forChangeExternalNonContainerDatabaseCompartment( ChangeExternalNonContainerDatabaseCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeExternalNonContainerDatabaseCompartmentResponse>() { @Override public ChangeExternalNonContainerDatabaseCompartmentResponse call() throws Exception { final ChangeExternalNonContainerDatabaseCompartmentResponse response = client.changeExternalNonContainerDatabaseCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalPluggableDatabaseCompartmentRequest, ChangeExternalPluggableDatabaseCompartmentResponse> forChangeExternalPluggableDatabaseCompartment( ChangeExternalPluggableDatabaseCompartmentRequest request) { return forChangeExternalPluggableDatabaseCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeExternalPluggableDatabaseCompartmentRequest, ChangeExternalPluggableDatabaseCompartmentResponse> forChangeExternalPluggableDatabaseCompartment( ChangeExternalPluggableDatabaseCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ChangeExternalPluggableDatabaseCompartmentResponse>() { @Override public ChangeExternalPluggableDatabaseCompartmentResponse call() throws Exception { final ChangeExternalPluggableDatabaseCompartmentResponse response = client.changeExternalPluggableDatabaseCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeKeyStoreCompartmentRequest, ChangeKeyStoreCompartmentResponse> forChangeKeyStoreCompartment(ChangeKeyStoreCompartmentRequest request) { return forChangeKeyStoreCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeKeyStoreCompartmentRequest, ChangeKeyStoreCompartmentResponse> forChangeKeyStoreCompartment( ChangeKeyStoreCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeKeyStoreCompartmentResponse call() throws Exception { final ChangeKeyStoreCompartmentResponse response = client.changeKeyStoreCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forChangeKeyStoreType(ChangeKeyStoreTypeRequest request) { return forChangeKeyStoreType( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forChangeKeyStoreType( ChangeKeyStoreTypeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeKeyStoreTypeResponse call() throws Exception { final ChangeKeyStoreTypeResponse response = client.changeKeyStoreType(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeOneoffPatchCompartmentRequest, ChangeOneoffPatchCompartmentResponse> forChangeOneoffPatchCompartment(ChangeOneoffPatchCompartmentRequest request) { return forChangeOneoffPatchCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeOneoffPatchCompartmentRequest, ChangeOneoffPatchCompartmentResponse> forChangeOneoffPatchCompartment( ChangeOneoffPatchCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeOneoffPatchCompartmentResponse call() throws Exception { final ChangeOneoffPatchCompartmentResponse response = client.changeOneoffPatchCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeSchedulingPlanCompartmentRequest, ChangeSchedulingPlanCompartmentResponse> forChangeSchedulingPlanCompartment(ChangeSchedulingPlanCompartmentRequest request) { return forChangeSchedulingPlanCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeSchedulingPlanCompartmentRequest, ChangeSchedulingPlanCompartmentResponse> forChangeSchedulingPlanCompartment( ChangeSchedulingPlanCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeSchedulingPlanCompartmentResponse call() throws Exception { final ChangeSchedulingPlanCompartmentResponse response = client.changeSchedulingPlanCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeSchedulingPolicyCompartmentRequest, ChangeSchedulingPolicyCompartmentResponse> forChangeSchedulingPolicyCompartment(ChangeSchedulingPolicyCompartmentRequest request) { return forChangeSchedulingPolicyCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeSchedulingPolicyCompartmentRequest, ChangeSchedulingPolicyCompartmentResponse> forChangeSchedulingPolicyCompartment( ChangeSchedulingPolicyCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeSchedulingPolicyCompartmentResponse call() throws Exception { final ChangeSchedulingPolicyCompartmentResponse response = client.changeSchedulingPolicyCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeVmClusterCompartmentRequest, ChangeVmClusterCompartmentResponse> forChangeVmClusterCompartment(ChangeVmClusterCompartmentRequest request) { return forChangeVmClusterCompartment( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ChangeVmClusterCompartmentRequest, ChangeVmClusterCompartmentResponse> forChangeVmClusterCompartment( ChangeVmClusterCompartmentRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ChangeVmClusterCompartmentResponse call() throws Exception { final ChangeVmClusterCompartmentResponse response = client.changeVmClusterCompartment(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CheckExternalDatabaseConnectorConnectionStatusRequest, CheckExternalDatabaseConnectorConnectionStatusResponse> forCheckExternalDatabaseConnectorConnectionStatus( CheckExternalDatabaseConnectorConnectionStatusRequest request) { return forCheckExternalDatabaseConnectorConnectionStatus( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CheckExternalDatabaseConnectorConnectionStatusRequest, CheckExternalDatabaseConnectorConnectionStatusResponse> forCheckExternalDatabaseConnectorConnectionStatus( CheckExternalDatabaseConnectorConnectionStatusRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< CheckExternalDatabaseConnectorConnectionStatusResponse>() { @Override public CheckExternalDatabaseConnectorConnectionStatusResponse call() throws Exception { final CheckExternalDatabaseConnectorConnectionStatusResponse response = client.checkExternalDatabaseConnectorConnectionStatus(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CompleteExternalBackupJobRequest, CompleteExternalBackupJobResponse> forCompleteExternalBackupJob(CompleteExternalBackupJobRequest request) { return forCompleteExternalBackupJob( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CompleteExternalBackupJobRequest, CompleteExternalBackupJobResponse> forCompleteExternalBackupJob( CompleteExternalBackupJobRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CompleteExternalBackupJobResponse call() throws Exception { final CompleteExternalBackupJobResponse response = client.completeExternalBackupJob(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfigureAutonomousDatabaseVaultKeyRequest, ConfigureAutonomousDatabaseVaultKeyResponse> forConfigureAutonomousDatabaseVaultKey( ConfigureAutonomousDatabaseVaultKeyRequest request) { return forConfigureAutonomousDatabaseVaultKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfigureAutonomousDatabaseVaultKeyRequest, ConfigureAutonomousDatabaseVaultKeyResponse> forConfigureAutonomousDatabaseVaultKey( ConfigureAutonomousDatabaseVaultKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ConfigureAutonomousDatabaseVaultKeyResponse call() throws Exception { final ConfigureAutonomousDatabaseVaultKeyResponse response = client.configureAutonomousDatabaseVaultKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfigureSaasAdminUserRequest, ConfigureSaasAdminUserResponse> forConfigureSaasAdminUser(ConfigureSaasAdminUserRequest request) { return forConfigureSaasAdminUser( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfigureSaasAdminUserRequest, ConfigureSaasAdminUserResponse> forConfigureSaasAdminUser( ConfigureSaasAdminUserRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ConfigureSaasAdminUserResponse call() throws Exception { final ConfigureSaasAdminUserResponse response = client.configureSaasAdminUser(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfirmKeyStoreDetailsAreCorrectRequest, ConfirmKeyStoreDetailsAreCorrectResponse> forConfirmKeyStoreDetailsAreCorrect(ConfirmKeyStoreDetailsAreCorrectRequest request) { return forConfirmKeyStoreDetailsAreCorrect( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConfirmKeyStoreDetailsAreCorrectRequest, ConfirmKeyStoreDetailsAreCorrectResponse> forConfirmKeyStoreDetailsAreCorrect( ConfirmKeyStoreDetailsAreCorrectRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ConfirmKeyStoreDetailsAreCorrectResponse call() throws Exception { final ConfirmKeyStoreDetailsAreCorrectResponse response = client.confirmKeyStoreDetailsAreCorrect(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConvertToPdb( ConvertToPdbRequest request) { return forConvertToPdb( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConvertToPdb( ConvertToPdbRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ConvertToPdbResponse call() throws Exception { final ConvertToPdbResponse response = client.convertToPdb(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConvertToRegularPluggableDatabaseRequest, ConvertToRegularPluggableDatabaseResponse> forConvertToRegularPluggableDatabase(ConvertToRegularPluggableDatabaseRequest request) { return forConvertToRegularPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ConvertToRegularPluggableDatabaseRequest, ConvertToRegularPluggableDatabaseResponse> forConvertToRegularPluggableDatabase( ConvertToRegularPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ConvertToRegularPluggableDatabaseResponse call() throws Exception { final ConvertToRegularPluggableDatabaseResponse response = client.convertToRegularPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateApplicationVip(CreateApplicationVipRequest request) { return forCreateApplicationVip( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateApplicationVip( CreateApplicationVipRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateApplicationVipResponse call() throws Exception { final CreateApplicationVipResponse response = client.createApplicationVip(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousContainerDatabaseRequest, CreateAutonomousContainerDatabaseResponse> forCreateAutonomousContainerDatabase(CreateAutonomousContainerDatabaseRequest request) { return forCreateAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousContainerDatabaseRequest, CreateAutonomousContainerDatabaseResponse> forCreateAutonomousContainerDatabase( CreateAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateAutonomousContainerDatabaseResponse call() throws Exception { final CreateAutonomousContainerDatabaseResponse response = client.createAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousContainerDatabaseDataguardAssociationRequest, CreateAutonomousContainerDatabaseDataguardAssociationResponse> forCreateAutonomousContainerDatabaseDataguardAssociation( CreateAutonomousContainerDatabaseDataguardAssociationRequest request) { return forCreateAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousContainerDatabaseDataguardAssociationRequest, CreateAutonomousContainerDatabaseDataguardAssociationResponse> forCreateAutonomousContainerDatabaseDataguardAssociation( CreateAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< CreateAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public CreateAutonomousContainerDatabaseDataguardAssociationResponse call() throws Exception { final CreateAutonomousContainerDatabaseDataguardAssociationResponse response = client .createAutonomousContainerDatabaseDataguardAssociation( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseRequest, CreateAutonomousDatabaseResponse> forCreateAutonomousDatabase(CreateAutonomousDatabaseRequest request) { return forCreateAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseRequest, CreateAutonomousDatabaseResponse> forCreateAutonomousDatabase( CreateAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateAutonomousDatabaseResponse call() throws Exception { final CreateAutonomousDatabaseResponse response = client.createAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseBackupRequest, CreateAutonomousDatabaseBackupResponse> forCreateAutonomousDatabaseBackup(CreateAutonomousDatabaseBackupRequest request) { return forCreateAutonomousDatabaseBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseBackupRequest, CreateAutonomousDatabaseBackupResponse> forCreateAutonomousDatabaseBackup( CreateAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateAutonomousDatabaseBackupResponse call() throws Exception { final CreateAutonomousDatabaseBackupResponse response = client.createAutonomousDatabaseBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseSoftwareImageRequest, CreateAutonomousDatabaseSoftwareImageResponse> forCreateAutonomousDatabaseSoftwareImage( CreateAutonomousDatabaseSoftwareImageRequest request) { return forCreateAutonomousDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousDatabaseSoftwareImageRequest, CreateAutonomousDatabaseSoftwareImageResponse> forCreateAutonomousDatabaseSoftwareImage( CreateAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateAutonomousDatabaseSoftwareImageResponse call() throws Exception { final CreateAutonomousDatabaseSoftwareImageResponse response = client.createAutonomousDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousVmClusterRequest, CreateAutonomousVmClusterResponse> forCreateAutonomousVmCluster(CreateAutonomousVmClusterRequest request) { return forCreateAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateAutonomousVmClusterRequest, CreateAutonomousVmClusterResponse> forCreateAutonomousVmCluster( CreateAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateAutonomousVmClusterResponse call() throws Exception { final CreateAutonomousVmClusterResponse response = client.createAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateBackup( CreateBackupRequest request) { return forCreateBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateBackup( CreateBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateBackupResponse call() throws Exception { final CreateBackupResponse response = client.createBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateCloudAutonomousVmClusterRequest, CreateCloudAutonomousVmClusterResponse> forCreateCloudAutonomousVmCluster(CreateCloudAutonomousVmClusterRequest request) { return forCreateCloudAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateCloudAutonomousVmClusterRequest, CreateCloudAutonomousVmClusterResponse> forCreateCloudAutonomousVmCluster( CreateCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateCloudAutonomousVmClusterResponse call() throws Exception { final CreateCloudAutonomousVmClusterResponse response = client.createCloudAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateCloudExadataInfrastructureRequest, CreateCloudExadataInfrastructureResponse> forCreateCloudExadataInfrastructure(CreateCloudExadataInfrastructureRequest request) { return forCreateCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateCloudExadataInfrastructureRequest, CreateCloudExadataInfrastructureResponse> forCreateCloudExadataInfrastructure( CreateCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateCloudExadataInfrastructureResponse call() throws Exception { final CreateCloudExadataInfrastructureResponse response = client.createCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateCloudVmCluster(CreateCloudVmClusterRequest request) { return forCreateCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateCloudVmCluster( CreateCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateCloudVmClusterResponse call() throws Exception { final CreateCloudVmClusterResponse response = client.createCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateConsoleConnectionRequest, CreateConsoleConnectionResponse> forCreateConsoleConnection(CreateConsoleConnectionRequest request) { return forCreateConsoleConnection( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateConsoleConnectionRequest, CreateConsoleConnectionResponse> forCreateConsoleConnection( CreateConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateConsoleConnectionResponse call() throws Exception { final CreateConsoleConnectionResponse response = client.createConsoleConnection(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateConsoleHistory(CreateConsoleHistoryRequest request) { return forCreateConsoleHistory( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateConsoleHistory( CreateConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateConsoleHistoryResponse call() throws Exception { final CreateConsoleHistoryResponse response = client.createConsoleHistory(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateDataGuardAssociationRequest, CreateDataGuardAssociationResponse> forCreateDataGuardAssociation(CreateDataGuardAssociationRequest request) { return forCreateDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateDataGuardAssociationRequest, CreateDataGuardAssociationResponse> forCreateDataGuardAssociation( CreateDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateDataGuardAssociationResponse call() throws Exception { final CreateDataGuardAssociationResponse response = client.createDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateDatabase(CreateDatabaseRequest request) { return forCreateDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateDatabase( CreateDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateDatabaseResponse call() throws Exception { final CreateDatabaseResponse response = client.createDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateDatabaseSoftwareImageRequest, CreateDatabaseSoftwareImageResponse> forCreateDatabaseSoftwareImage(CreateDatabaseSoftwareImageRequest request) { return forCreateDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateDatabaseSoftwareImageRequest, CreateDatabaseSoftwareImageResponse> forCreateDatabaseSoftwareImage( CreateDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateDatabaseSoftwareImageResponse call() throws Exception { final CreateDatabaseSoftwareImageResponse response = client.createDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateDbHome( CreateDbHomeRequest request) { return forCreateDbHome( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateDbHome( CreateDbHomeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateDbHomeResponse call() throws Exception { final CreateDbHomeResponse response = client.createDbHome(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExadataInfrastructureRequest, CreateExadataInfrastructureResponse> forCreateExadataInfrastructure(CreateExadataInfrastructureRequest request) { return forCreateExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExadataInfrastructureRequest, CreateExadataInfrastructureResponse> forCreateExadataInfrastructure( CreateExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExadataInfrastructureResponse call() throws Exception { final CreateExadataInfrastructureResponse response = client.createExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExadbVmCluster(CreateExadbVmClusterRequest request) { return forCreateExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExadbVmCluster( CreateExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExadbVmClusterResponse call() throws Exception { final CreateExadbVmClusterResponse response = client.createExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExascaleDbStorageVaultRequest, CreateExascaleDbStorageVaultResponse> forCreateExascaleDbStorageVault(CreateExascaleDbStorageVaultRequest request) { return forCreateExascaleDbStorageVault( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExascaleDbStorageVaultRequest, CreateExascaleDbStorageVaultResponse> forCreateExascaleDbStorageVault( CreateExascaleDbStorageVaultRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExascaleDbStorageVaultResponse call() throws Exception { final CreateExascaleDbStorageVaultResponse response = client.createExascaleDbStorageVault(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExecutionAction(CreateExecutionActionRequest request) { return forCreateExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExecutionAction( CreateExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExecutionActionResponse call() throws Exception { final CreateExecutionActionResponse response = client.createExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExecutionWindow(CreateExecutionWindowRequest request) { return forCreateExecutionWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateExecutionWindow( CreateExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExecutionWindowResponse call() throws Exception { final CreateExecutionWindowResponse response = client.createExecutionWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> forCreateExternalBackupJob(CreateExternalBackupJobRequest request) { return forCreateExternalBackupJob( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalBackupJobRequest, CreateExternalBackupJobResponse> forCreateExternalBackupJob( CreateExternalBackupJobRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExternalBackupJobResponse call() throws Exception { final CreateExternalBackupJobResponse response = client.createExternalBackupJob(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> forCreateExternalContainerDatabase(CreateExternalContainerDatabaseRequest request) { return forCreateExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalContainerDatabaseRequest, CreateExternalContainerDatabaseResponse> forCreateExternalContainerDatabase( CreateExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExternalContainerDatabaseResponse call() throws Exception { final CreateExternalContainerDatabaseResponse response = client.createExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> forCreateExternalDatabaseConnector(CreateExternalDatabaseConnectorRequest request) { return forCreateExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalDatabaseConnectorRequest, CreateExternalDatabaseConnectorResponse> forCreateExternalDatabaseConnector( CreateExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExternalDatabaseConnectorResponse call() throws Exception { final CreateExternalDatabaseConnectorResponse response = client.createExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalNonContainerDatabaseRequest, CreateExternalNonContainerDatabaseResponse> forCreateExternalNonContainerDatabase( CreateExternalNonContainerDatabaseRequest request) { return forCreateExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalNonContainerDatabaseRequest, CreateExternalNonContainerDatabaseResponse> forCreateExternalNonContainerDatabase( CreateExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExternalNonContainerDatabaseResponse call() throws Exception { final CreateExternalNonContainerDatabaseResponse response = client.createExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> forCreateExternalPluggableDatabase(CreateExternalPluggableDatabaseRequest request) { return forCreateExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateExternalPluggableDatabaseRequest, CreateExternalPluggableDatabaseResponse> forCreateExternalPluggableDatabase( CreateExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateExternalPluggableDatabaseResponse call() throws Exception { final CreateExternalPluggableDatabaseResponse response = client.createExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateOneoffPatch(CreateOneoffPatchRequest request) { return forCreateOneoffPatch( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateOneoffPatch( CreateOneoffPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateOneoffPatchResponse call() throws Exception { final CreateOneoffPatchResponse response = client.createOneoffPatch(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> forCreatePluggableDatabase(CreatePluggableDatabaseRequest request) { return forCreatePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreatePluggableDatabaseRequest, CreatePluggableDatabaseResponse> forCreatePluggableDatabase( CreatePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreatePluggableDatabaseResponse call() throws Exception { final CreatePluggableDatabaseResponse response = client.createPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateScheduledAction(CreateScheduledActionRequest request) { return forCreateScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateScheduledAction( CreateScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateScheduledActionResponse call() throws Exception { final CreateScheduledActionResponse response = client.createScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateSchedulingPlan(CreateSchedulingPlanRequest request) { return forCreateSchedulingPlan( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateSchedulingPlan( CreateSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateSchedulingPlanResponse call() throws Exception { final CreateSchedulingPlanResponse response = client.createSchedulingPlan(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> forCreateSchedulingPolicy(CreateSchedulingPolicyRequest request) { return forCreateSchedulingPolicy( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateSchedulingPolicyRequest, CreateSchedulingPolicyResponse> forCreateSchedulingPolicy( CreateSchedulingPolicyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateSchedulingPolicyResponse call() throws Exception { final CreateSchedulingPolicyResponse response = client.createSchedulingPolicy(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> forCreateSchedulingWindow(CreateSchedulingWindowRequest request) { return forCreateSchedulingWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateSchedulingWindowRequest, CreateSchedulingWindowResponse> forCreateSchedulingWindow( CreateSchedulingWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateSchedulingWindowResponse call() throws Exception { final CreateSchedulingWindowResponse response = client.createSchedulingWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateVmCluster(CreateVmClusterRequest request) { return forCreateVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCreateVmCluster( CreateVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateVmClusterResponse call() throws Exception { final CreateVmClusterResponse response = client.createVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> forCreateVmClusterNetwork(CreateVmClusterNetworkRequest request) { return forCreateVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< CreateVmClusterNetworkRequest, CreateVmClusterNetworkResponse> forCreateVmClusterNetwork( CreateVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public CreateVmClusterNetworkResponse call() throws Exception { final CreateVmClusterNetworkResponse response = client.createVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbNodeAction( DbNodeActionRequest request) { return forDbNodeAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbNodeAction( DbNodeActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DbNodeActionResponse call() throws Exception { final DbNodeActionResponse response = client.dbNodeAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteApplicationVip(DeleteApplicationVipRequest request) { return forDeleteApplicationVip( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteApplicationVip( DeleteApplicationVipRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteApplicationVipResponse call() throws Exception { final DeleteApplicationVipResponse response = client.deleteApplicationVip(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> forDeleteAutonomousDatabase(DeleteAutonomousDatabaseRequest request) { return forDeleteAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseRequest, DeleteAutonomousDatabaseResponse> forDeleteAutonomousDatabase( DeleteAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteAutonomousDatabaseResponse call() throws Exception { final DeleteAutonomousDatabaseResponse response = client.deleteAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> forDeleteAutonomousDatabaseBackup(DeleteAutonomousDatabaseBackupRequest request) { return forDeleteAutonomousDatabaseBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseBackupRequest, DeleteAutonomousDatabaseBackupResponse> forDeleteAutonomousDatabaseBackup( DeleteAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteAutonomousDatabaseBackupResponse call() throws Exception { final DeleteAutonomousDatabaseBackupResponse response = client.deleteAutonomousDatabaseBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseSoftwareImageRequest, DeleteAutonomousDatabaseSoftwareImageResponse> forDeleteAutonomousDatabaseSoftwareImage( DeleteAutonomousDatabaseSoftwareImageRequest request) { return forDeleteAutonomousDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousDatabaseSoftwareImageRequest, DeleteAutonomousDatabaseSoftwareImageResponse> forDeleteAutonomousDatabaseSoftwareImage( DeleteAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteAutonomousDatabaseSoftwareImageResponse call() throws Exception { final DeleteAutonomousDatabaseSoftwareImageResponse response = client.deleteAutonomousDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> forDeleteAutonomousVmCluster(DeleteAutonomousVmClusterRequest request) { return forDeleteAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteAutonomousVmClusterRequest, DeleteAutonomousVmClusterResponse> forDeleteAutonomousVmCluster( DeleteAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteAutonomousVmClusterResponse call() throws Exception { final DeleteAutonomousVmClusterResponse response = client.deleteAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteBackup( DeleteBackupRequest request) { return forDeleteBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteBackup( DeleteBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteBackupResponse call() throws Exception { final DeleteBackupResponse response = client.deleteBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> forDeleteCloudAutonomousVmCluster(DeleteCloudAutonomousVmClusterRequest request) { return forDeleteCloudAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteCloudAutonomousVmClusterRequest, DeleteCloudAutonomousVmClusterResponse> forDeleteCloudAutonomousVmCluster( DeleteCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteCloudAutonomousVmClusterResponse call() throws Exception { final DeleteCloudAutonomousVmClusterResponse response = client.deleteCloudAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteCloudExadataInfrastructureRequest, DeleteCloudExadataInfrastructureResponse> forDeleteCloudExadataInfrastructure(DeleteCloudExadataInfrastructureRequest request) { return forDeleteCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteCloudExadataInfrastructureRequest, DeleteCloudExadataInfrastructureResponse> forDeleteCloudExadataInfrastructure( DeleteCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteCloudExadataInfrastructureResponse call() throws Exception { final DeleteCloudExadataInfrastructureResponse response = client.deleteCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteCloudVmCluster(DeleteCloudVmClusterRequest request) { return forDeleteCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteCloudVmCluster( DeleteCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteCloudVmClusterResponse call() throws Exception { final DeleteCloudVmClusterResponse response = client.deleteCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> forDeleteConsoleConnection(DeleteConsoleConnectionRequest request) { return forDeleteConsoleConnection( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteConsoleConnectionRequest, DeleteConsoleConnectionResponse> forDeleteConsoleConnection( DeleteConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteConsoleConnectionResponse call() throws Exception { final DeleteConsoleConnectionResponse response = client.deleteConsoleConnection(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteConsoleHistory(DeleteConsoleHistoryRequest request) { return forDeleteConsoleHistory( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteConsoleHistory( DeleteConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteConsoleHistoryResponse call() throws Exception { final DeleteConsoleHistoryResponse response = client.deleteConsoleHistory(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteDatabase(DeleteDatabaseRequest request) { return forDeleteDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteDatabase( DeleteDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteDatabaseResponse call() throws Exception { final DeleteDatabaseResponse response = client.deleteDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> forDeleteDatabaseSoftwareImage(DeleteDatabaseSoftwareImageRequest request) { return forDeleteDatabaseSoftwareImage( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteDatabaseSoftwareImageRequest, DeleteDatabaseSoftwareImageResponse> forDeleteDatabaseSoftwareImage( DeleteDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteDatabaseSoftwareImageResponse call() throws Exception { final DeleteDatabaseSoftwareImageResponse response = client.deleteDatabaseSoftwareImage(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteDbHome( DeleteDbHomeRequest request) { return forDeleteDbHome( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteDbHome( DeleteDbHomeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteDbHomeResponse call() throws Exception { final DeleteDbHomeResponse response = client.deleteDbHome(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> forDeleteExadataInfrastructure(DeleteExadataInfrastructureRequest request) { return forDeleteExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExadataInfrastructureRequest, DeleteExadataInfrastructureResponse> forDeleteExadataInfrastructure( DeleteExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExadataInfrastructureResponse call() throws Exception { final DeleteExadataInfrastructureResponse response = client.deleteExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteExadbVmCluster(DeleteExadbVmClusterRequest request) { return forDeleteExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteExadbVmCluster( DeleteExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExadbVmClusterResponse call() throws Exception { final DeleteExadbVmClusterResponse response = client.deleteExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> forDeleteExascaleDbStorageVault(DeleteExascaleDbStorageVaultRequest request) { return forDeleteExascaleDbStorageVault( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExascaleDbStorageVaultRequest, DeleteExascaleDbStorageVaultResponse> forDeleteExascaleDbStorageVault( DeleteExascaleDbStorageVaultRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExascaleDbStorageVaultResponse call() throws Exception { final DeleteExascaleDbStorageVaultResponse response = client.deleteExascaleDbStorageVault(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteExecutionAction(DeleteExecutionActionRequest request) { return forDeleteExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteExecutionAction( DeleteExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExecutionActionResponse call() throws Exception { final DeleteExecutionActionResponse response = client.deleteExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> forDeleteExternalContainerDatabase(DeleteExternalContainerDatabaseRequest request) { return forDeleteExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalContainerDatabaseRequest, DeleteExternalContainerDatabaseResponse> forDeleteExternalContainerDatabase( DeleteExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExternalContainerDatabaseResponse call() throws Exception { final DeleteExternalContainerDatabaseResponse response = client.deleteExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> forDeleteExternalDatabaseConnector(DeleteExternalDatabaseConnectorRequest request) { return forDeleteExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalDatabaseConnectorRequest, DeleteExternalDatabaseConnectorResponse> forDeleteExternalDatabaseConnector( DeleteExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExternalDatabaseConnectorResponse call() throws Exception { final DeleteExternalDatabaseConnectorResponse response = client.deleteExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalNonContainerDatabaseRequest, DeleteExternalNonContainerDatabaseResponse> forDeleteExternalNonContainerDatabase( DeleteExternalNonContainerDatabaseRequest request) { return forDeleteExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalNonContainerDatabaseRequest, DeleteExternalNonContainerDatabaseResponse> forDeleteExternalNonContainerDatabase( DeleteExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExternalNonContainerDatabaseResponse call() throws Exception { final DeleteExternalNonContainerDatabaseResponse response = client.deleteExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> forDeleteExternalPluggableDatabase(DeleteExternalPluggableDatabaseRequest request) { return forDeleteExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteExternalPluggableDatabaseRequest, DeleteExternalPluggableDatabaseResponse> forDeleteExternalPluggableDatabase( DeleteExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteExternalPluggableDatabaseResponse call() throws Exception { final DeleteExternalPluggableDatabaseResponse response = client.deleteExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteOneoffPatch(DeleteOneoffPatchRequest request) { return forDeleteOneoffPatch( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteOneoffPatch( DeleteOneoffPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteOneoffPatchResponse call() throws Exception { final DeleteOneoffPatchResponse response = client.deleteOneoffPatch(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> forDeletePluggableDatabase(DeletePluggableDatabaseRequest request) { return forDeletePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeletePluggableDatabaseRequest, DeletePluggableDatabaseResponse> forDeletePluggableDatabase( DeletePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeletePluggableDatabaseResponse call() throws Exception { final DeletePluggableDatabaseResponse response = client.deletePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteScheduledAction(DeleteScheduledActionRequest request) { return forDeleteScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteScheduledAction( DeleteScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteScheduledActionResponse call() throws Exception { final DeleteScheduledActionResponse response = client.deleteScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteSchedulingPlan(DeleteSchedulingPlanRequest request) { return forDeleteSchedulingPlan( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteSchedulingPlan( DeleteSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteSchedulingPlanResponse call() throws Exception { final DeleteSchedulingPlanResponse response = client.deleteSchedulingPlan(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteVmCluster(DeleteVmClusterRequest request) { return forDeleteVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDeleteVmCluster( DeleteVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteVmClusterResponse call() throws Exception { final DeleteVmClusterResponse response = client.deleteVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> forDeleteVmClusterNetwork(DeleteVmClusterNetworkRequest request) { return forDeleteVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeleteVmClusterNetworkRequest, DeleteVmClusterNetworkResponse> forDeleteVmClusterNetwork( DeleteVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeleteVmClusterNetworkResponse call() throws Exception { final DeleteVmClusterNetworkResponse response = client.deleteVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeregisterAutonomousDatabaseDataSafeRequest, DeregisterAutonomousDatabaseDataSafeResponse> forDeregisterAutonomousDatabaseDataSafe( DeregisterAutonomousDatabaseDataSafeRequest request) { return forDeregisterAutonomousDatabaseDataSafe( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DeregisterAutonomousDatabaseDataSafeRequest, DeregisterAutonomousDatabaseDataSafeResponse> forDeregisterAutonomousDatabaseDataSafe( DeregisterAutonomousDatabaseDataSafeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DeregisterAutonomousDatabaseDataSafeResponse call() throws Exception { final DeregisterAutonomousDatabaseDataSafeResponse response = client.deregisterAutonomousDatabaseDataSafe(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableAutonomousDatabaseManagementRequest, DisableAutonomousDatabaseManagementResponse> forDisableAutonomousDatabaseManagement( DisableAutonomousDatabaseManagementRequest request) { return forDisableAutonomousDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableAutonomousDatabaseManagementRequest, DisableAutonomousDatabaseManagementResponse> forDisableAutonomousDatabaseManagement( DisableAutonomousDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DisableAutonomousDatabaseManagementResponse call() throws Exception { final DisableAutonomousDatabaseManagementResponse response = client.disableAutonomousDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableAutonomousDatabaseOperationsInsightsRequest, DisableAutonomousDatabaseOperationsInsightsResponse> forDisableAutonomousDatabaseOperationsInsights( DisableAutonomousDatabaseOperationsInsightsRequest request) { return forDisableAutonomousDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableAutonomousDatabaseOperationsInsightsRequest, DisableAutonomousDatabaseOperationsInsightsResponse> forDisableAutonomousDatabaseOperationsInsights( DisableAutonomousDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableAutonomousDatabaseOperationsInsightsResponse>() { @Override public DisableAutonomousDatabaseOperationsInsightsResponse call() throws Exception { final DisableAutonomousDatabaseOperationsInsightsResponse response = client.disableAutonomousDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> forDisableDatabaseManagement(DisableDatabaseManagementRequest request) { return forDisableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableDatabaseManagementRequest, DisableDatabaseManagementResponse> forDisableDatabaseManagement( DisableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DisableDatabaseManagementResponse call() throws Exception { final DisableDatabaseManagementResponse response = client.disableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalContainerDatabaseDatabaseManagementRequest, DisableExternalContainerDatabaseDatabaseManagementResponse> forDisableExternalContainerDatabaseDatabaseManagement( DisableExternalContainerDatabaseDatabaseManagementRequest request) { return forDisableExternalContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalContainerDatabaseDatabaseManagementRequest, DisableExternalContainerDatabaseDatabaseManagementResponse> forDisableExternalContainerDatabaseDatabaseManagement( DisableExternalContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalContainerDatabaseDatabaseManagementResponse>() { @Override public DisableExternalContainerDatabaseDatabaseManagementResponse call() throws Exception { final DisableExternalContainerDatabaseDatabaseManagementResponse response = client.disableExternalContainerDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalContainerDatabaseStackMonitoringRequest, DisableExternalContainerDatabaseStackMonitoringResponse> forDisableExternalContainerDatabaseStackMonitoring( DisableExternalContainerDatabaseStackMonitoringRequest request) { return forDisableExternalContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalContainerDatabaseStackMonitoringRequest, DisableExternalContainerDatabaseStackMonitoringResponse> forDisableExternalContainerDatabaseStackMonitoring( DisableExternalContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalContainerDatabaseStackMonitoringResponse>() { @Override public DisableExternalContainerDatabaseStackMonitoringResponse call() throws Exception { final DisableExternalContainerDatabaseStackMonitoringResponse response = client.disableExternalContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseDatabaseManagementRequest, DisableExternalNonContainerDatabaseDatabaseManagementResponse> forDisableExternalNonContainerDatabaseDatabaseManagement( DisableExternalNonContainerDatabaseDatabaseManagementRequest request) { return forDisableExternalNonContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseDatabaseManagementRequest, DisableExternalNonContainerDatabaseDatabaseManagementResponse> forDisableExternalNonContainerDatabaseDatabaseManagement( DisableExternalNonContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalNonContainerDatabaseDatabaseManagementResponse>() { @Override public DisableExternalNonContainerDatabaseDatabaseManagementResponse call() throws Exception { final DisableExternalNonContainerDatabaseDatabaseManagementResponse response = client .disableExternalNonContainerDatabaseDatabaseManagement( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseOperationsInsightsRequest, DisableExternalNonContainerDatabaseOperationsInsightsResponse> forDisableExternalNonContainerDatabaseOperationsInsights( DisableExternalNonContainerDatabaseOperationsInsightsRequest request) { return forDisableExternalNonContainerDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseOperationsInsightsRequest, DisableExternalNonContainerDatabaseOperationsInsightsResponse> forDisableExternalNonContainerDatabaseOperationsInsights( DisableExternalNonContainerDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalNonContainerDatabaseOperationsInsightsResponse>() { @Override public DisableExternalNonContainerDatabaseOperationsInsightsResponse call() throws Exception { final DisableExternalNonContainerDatabaseOperationsInsightsResponse response = client .disableExternalNonContainerDatabaseOperationsInsights( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseStackMonitoringRequest, DisableExternalNonContainerDatabaseStackMonitoringResponse> forDisableExternalNonContainerDatabaseStackMonitoring( DisableExternalNonContainerDatabaseStackMonitoringRequest request) { return forDisableExternalNonContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalNonContainerDatabaseStackMonitoringRequest, DisableExternalNonContainerDatabaseStackMonitoringResponse> forDisableExternalNonContainerDatabaseStackMonitoring( DisableExternalNonContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalNonContainerDatabaseStackMonitoringResponse>() { @Override public DisableExternalNonContainerDatabaseStackMonitoringResponse call() throws Exception { final DisableExternalNonContainerDatabaseStackMonitoringResponse response = client.disableExternalNonContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseDatabaseManagementRequest, DisableExternalPluggableDatabaseDatabaseManagementResponse> forDisableExternalPluggableDatabaseDatabaseManagement( DisableExternalPluggableDatabaseDatabaseManagementRequest request) { return forDisableExternalPluggableDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseDatabaseManagementRequest, DisableExternalPluggableDatabaseDatabaseManagementResponse> forDisableExternalPluggableDatabaseDatabaseManagement( DisableExternalPluggableDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalPluggableDatabaseDatabaseManagementResponse>() { @Override public DisableExternalPluggableDatabaseDatabaseManagementResponse call() throws Exception { final DisableExternalPluggableDatabaseDatabaseManagementResponse response = client.disableExternalPluggableDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseOperationsInsightsRequest, DisableExternalPluggableDatabaseOperationsInsightsResponse> forDisableExternalPluggableDatabaseOperationsInsights( DisableExternalPluggableDatabaseOperationsInsightsRequest request) { return forDisableExternalPluggableDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseOperationsInsightsRequest, DisableExternalPluggableDatabaseOperationsInsightsResponse> forDisableExternalPluggableDatabaseOperationsInsights( DisableExternalPluggableDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalPluggableDatabaseOperationsInsightsResponse>() { @Override public DisableExternalPluggableDatabaseOperationsInsightsResponse call() throws Exception { final DisableExternalPluggableDatabaseOperationsInsightsResponse response = client.disableExternalPluggableDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseStackMonitoringRequest, DisableExternalPluggableDatabaseStackMonitoringResponse> forDisableExternalPluggableDatabaseStackMonitoring( DisableExternalPluggableDatabaseStackMonitoringRequest request) { return forDisableExternalPluggableDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisableExternalPluggableDatabaseStackMonitoringRequest, DisableExternalPluggableDatabaseStackMonitoringResponse> forDisableExternalPluggableDatabaseStackMonitoring( DisableExternalPluggableDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< DisableExternalPluggableDatabaseStackMonitoringResponse>() { @Override public DisableExternalPluggableDatabaseStackMonitoringResponse call() throws Exception { final DisableExternalPluggableDatabaseStackMonitoringResponse response = client.disableExternalPluggableDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisablePluggableDatabaseManagementRequest, DisablePluggableDatabaseManagementResponse> forDisablePluggableDatabaseManagement( DisablePluggableDatabaseManagementRequest request) { return forDisablePluggableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< DisablePluggableDatabaseManagementRequest, DisablePluggableDatabaseManagementResponse> forDisablePluggableDatabaseManagement( DisablePluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public DisablePluggableDatabaseManagementResponse call() throws Exception { final DisablePluggableDatabaseManagementResponse response = client.disablePluggableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableAutonomousDatabaseManagementRequest, EnableAutonomousDatabaseManagementResponse> forEnableAutonomousDatabaseManagement( EnableAutonomousDatabaseManagementRequest request) { return forEnableAutonomousDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableAutonomousDatabaseManagementRequest, EnableAutonomousDatabaseManagementResponse> forEnableAutonomousDatabaseManagement( EnableAutonomousDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public EnableAutonomousDatabaseManagementResponse call() throws Exception { final EnableAutonomousDatabaseManagementResponse response = client.enableAutonomousDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableAutonomousDatabaseOperationsInsightsRequest, EnableAutonomousDatabaseOperationsInsightsResponse> forEnableAutonomousDatabaseOperationsInsights( EnableAutonomousDatabaseOperationsInsightsRequest request) { return forEnableAutonomousDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableAutonomousDatabaseOperationsInsightsRequest, EnableAutonomousDatabaseOperationsInsightsResponse> forEnableAutonomousDatabaseOperationsInsights( EnableAutonomousDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableAutonomousDatabaseOperationsInsightsResponse>() { @Override public EnableAutonomousDatabaseOperationsInsightsResponse call() throws Exception { final EnableAutonomousDatabaseOperationsInsightsResponse response = client.enableAutonomousDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> forEnableDatabaseManagement(EnableDatabaseManagementRequest request) { return forEnableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableDatabaseManagementRequest, EnableDatabaseManagementResponse> forEnableDatabaseManagement( EnableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public EnableDatabaseManagementResponse call() throws Exception { final EnableDatabaseManagementResponse response = client.enableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalContainerDatabaseDatabaseManagementRequest, EnableExternalContainerDatabaseDatabaseManagementResponse> forEnableExternalContainerDatabaseDatabaseManagement( EnableExternalContainerDatabaseDatabaseManagementRequest request) { return forEnableExternalContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalContainerDatabaseDatabaseManagementRequest, EnableExternalContainerDatabaseDatabaseManagementResponse> forEnableExternalContainerDatabaseDatabaseManagement( EnableExternalContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalContainerDatabaseDatabaseManagementResponse>() { @Override public EnableExternalContainerDatabaseDatabaseManagementResponse call() throws Exception { final EnableExternalContainerDatabaseDatabaseManagementResponse response = client.enableExternalContainerDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalContainerDatabaseStackMonitoringRequest, EnableExternalContainerDatabaseStackMonitoringResponse> forEnableExternalContainerDatabaseStackMonitoring( EnableExternalContainerDatabaseStackMonitoringRequest request) { return forEnableExternalContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalContainerDatabaseStackMonitoringRequest, EnableExternalContainerDatabaseStackMonitoringResponse> forEnableExternalContainerDatabaseStackMonitoring( EnableExternalContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalContainerDatabaseStackMonitoringResponse>() { @Override public EnableExternalContainerDatabaseStackMonitoringResponse call() throws Exception { final EnableExternalContainerDatabaseStackMonitoringResponse response = client.enableExternalContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseDatabaseManagementRequest, EnableExternalNonContainerDatabaseDatabaseManagementResponse> forEnableExternalNonContainerDatabaseDatabaseManagement( EnableExternalNonContainerDatabaseDatabaseManagementRequest request) { return forEnableExternalNonContainerDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseDatabaseManagementRequest, EnableExternalNonContainerDatabaseDatabaseManagementResponse> forEnableExternalNonContainerDatabaseDatabaseManagement( EnableExternalNonContainerDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalNonContainerDatabaseDatabaseManagementResponse>() { @Override public EnableExternalNonContainerDatabaseDatabaseManagementResponse call() throws Exception { final EnableExternalNonContainerDatabaseDatabaseManagementResponse response = client.enableExternalNonContainerDatabaseDatabaseManagement( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseOperationsInsightsRequest, EnableExternalNonContainerDatabaseOperationsInsightsResponse> forEnableExternalNonContainerDatabaseOperationsInsights( EnableExternalNonContainerDatabaseOperationsInsightsRequest request) { return forEnableExternalNonContainerDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseOperationsInsightsRequest, EnableExternalNonContainerDatabaseOperationsInsightsResponse> forEnableExternalNonContainerDatabaseOperationsInsights( EnableExternalNonContainerDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalNonContainerDatabaseOperationsInsightsResponse>() { @Override public EnableExternalNonContainerDatabaseOperationsInsightsResponse call() throws Exception { final EnableExternalNonContainerDatabaseOperationsInsightsResponse response = client.enableExternalNonContainerDatabaseOperationsInsights( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseStackMonitoringRequest, EnableExternalNonContainerDatabaseStackMonitoringResponse> forEnableExternalNonContainerDatabaseStackMonitoring( EnableExternalNonContainerDatabaseStackMonitoringRequest request) { return forEnableExternalNonContainerDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalNonContainerDatabaseStackMonitoringRequest, EnableExternalNonContainerDatabaseStackMonitoringResponse> forEnableExternalNonContainerDatabaseStackMonitoring( EnableExternalNonContainerDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalNonContainerDatabaseStackMonitoringResponse>() { @Override public EnableExternalNonContainerDatabaseStackMonitoringResponse call() throws Exception { final EnableExternalNonContainerDatabaseStackMonitoringResponse response = client.enableExternalNonContainerDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseDatabaseManagementRequest, EnableExternalPluggableDatabaseDatabaseManagementResponse> forEnableExternalPluggableDatabaseDatabaseManagement( EnableExternalPluggableDatabaseDatabaseManagementRequest request) { return forEnableExternalPluggableDatabaseDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseDatabaseManagementRequest, EnableExternalPluggableDatabaseDatabaseManagementResponse> forEnableExternalPluggableDatabaseDatabaseManagement( EnableExternalPluggableDatabaseDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalPluggableDatabaseDatabaseManagementResponse>() { @Override public EnableExternalPluggableDatabaseDatabaseManagementResponse call() throws Exception { final EnableExternalPluggableDatabaseDatabaseManagementResponse response = client.enableExternalPluggableDatabaseDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseOperationsInsightsRequest, EnableExternalPluggableDatabaseOperationsInsightsResponse> forEnableExternalPluggableDatabaseOperationsInsights( EnableExternalPluggableDatabaseOperationsInsightsRequest request) { return forEnableExternalPluggableDatabaseOperationsInsights( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseOperationsInsightsRequest, EnableExternalPluggableDatabaseOperationsInsightsResponse> forEnableExternalPluggableDatabaseOperationsInsights( EnableExternalPluggableDatabaseOperationsInsightsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalPluggableDatabaseOperationsInsightsResponse>() { @Override public EnableExternalPluggableDatabaseOperationsInsightsResponse call() throws Exception { final EnableExternalPluggableDatabaseOperationsInsightsResponse response = client.enableExternalPluggableDatabaseOperationsInsights(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseStackMonitoringRequest, EnableExternalPluggableDatabaseStackMonitoringResponse> forEnableExternalPluggableDatabaseStackMonitoring( EnableExternalPluggableDatabaseStackMonitoringRequest request) { return forEnableExternalPluggableDatabaseStackMonitoring( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnableExternalPluggableDatabaseStackMonitoringRequest, EnableExternalPluggableDatabaseStackMonitoringResponse> forEnableExternalPluggableDatabaseStackMonitoring( EnableExternalPluggableDatabaseStackMonitoringRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< EnableExternalPluggableDatabaseStackMonitoringResponse>() { @Override public EnableExternalPluggableDatabaseStackMonitoringResponse call() throws Exception { final EnableExternalPluggableDatabaseStackMonitoringResponse response = client.enableExternalPluggableDatabaseStackMonitoring(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnablePluggableDatabaseManagementRequest, EnablePluggableDatabaseManagementResponse> forEnablePluggableDatabaseManagement(EnablePluggableDatabaseManagementRequest request) { return forEnablePluggableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< EnablePluggableDatabaseManagementRequest, EnablePluggableDatabaseManagementResponse> forEnablePluggableDatabaseManagement( EnablePluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public EnablePluggableDatabaseManagementResponse call() throws Exception { final EnablePluggableDatabaseManagementResponse response = client.enablePluggableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> forFailOverAutonomousDatabase(FailOverAutonomousDatabaseRequest request) { return forFailOverAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailOverAutonomousDatabaseRequest, FailOverAutonomousDatabaseResponse> forFailOverAutonomousDatabase( FailOverAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public FailOverAutonomousDatabaseResponse call() throws Exception { final FailOverAutonomousDatabaseResponse response = client.failOverAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailoverAutonomousContainerDatabaseDataguardAssociationRequest, FailoverAutonomousContainerDatabaseDataguardAssociationResponse> forFailoverAutonomousContainerDatabaseDataguardAssociation( FailoverAutonomousContainerDatabaseDataguardAssociationRequest request) { return forFailoverAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailoverAutonomousContainerDatabaseDataguardAssociationRequest, FailoverAutonomousContainerDatabaseDataguardAssociationResponse> forFailoverAutonomousContainerDatabaseDataguardAssociation( FailoverAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< FailoverAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public FailoverAutonomousContainerDatabaseDataguardAssociationResponse call() throws Exception { final FailoverAutonomousContainerDatabaseDataguardAssociationResponse response = client .failoverAutonomousContainerDatabaseDataguardAssociation( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> forFailoverDataGuardAssociation(FailoverDataGuardAssociationRequest request) { return forFailoverDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< FailoverDataGuardAssociationRequest, FailoverDataGuardAssociationResponse> forFailoverDataGuardAssociation( FailoverDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public FailoverDataGuardAssociationResponse call() throws Exception { final FailoverDataGuardAssociationResponse response = client.failoverDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forApplicationVip( GetApplicationVipRequest request, com.oracle.bmc.database.model.ApplicationVip.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forApplicationVip( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forApplicationVip( GetApplicationVipRequest request, com.oracle.bmc.database.model.ApplicationVip.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forApplicationVip( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forApplicationVip( GetApplicationVipRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ApplicationVip.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forApplicationVip( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ApplicationVip. private com.oracle.bmc.waiter.Waiter forApplicationVip( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetApplicationVipRequest request, final com.oracle.bmc.database.model.ApplicationVip.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetApplicationVipRequest, GetApplicationVipResponse>() { @Override public GetApplicationVipResponse apply( GetApplicationVipRequest request) { return client.getApplicationVip(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetApplicationVipResponse response) { return targetStatesSet.contains( response.getApplicationVip().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ApplicationVip.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> forAutonomousContainerDatabase( GetAutonomousContainerDatabaseRequest request, com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> forAutonomousContainerDatabase( GetAutonomousContainerDatabaseRequest request, com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> forAutonomousContainerDatabase( GetAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousContainerDatabase. private com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse> forAutonomousContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousContainerDatabaseRequest request, final com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.AutonomousContainerDatabase.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousContainerDatabaseRequest, GetAutonomousContainerDatabaseResponse>() { @Override public GetAutonomousContainerDatabaseResponse apply( GetAutonomousContainerDatabaseRequest request) { return client.getAutonomousContainerDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousContainerDatabaseResponse response) { return targetStatesSet.contains( response.getAutonomousContainerDatabase() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousContainerDatabase .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseDataguardAssociationRequest, GetAutonomousContainerDatabaseDataguardAssociationResponse> forAutonomousContainerDatabaseDataguardAssociation( GetAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation .LifecycleState ... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseDataguardAssociationRequest, GetAutonomousContainerDatabaseDataguardAssociationResponse> forAutonomousContainerDatabaseDataguardAssociation( GetAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation .LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseDataguardAssociationRequest, GetAutonomousContainerDatabaseDataguardAssociationResponse> forAutonomousContainerDatabaseDataguardAssociation( GetAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousContainerDatabaseDataguardAssociation .LifecycleState ... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousContainerDatabaseDataguardAssociation. private com.oracle.bmc.waiter.Waiter< GetAutonomousContainerDatabaseDataguardAssociationRequest, GetAutonomousContainerDatabaseDataguardAssociationResponse> forAutonomousContainerDatabaseDataguardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousContainerDatabaseDataguardAssociationRequest request, final com.oracle.bmc.database.model .AutonomousContainerDatabaseDataguardAssociation .LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model .AutonomousContainerDatabaseDataguardAssociation.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousContainerDatabaseDataguardAssociationRequest, GetAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public GetAutonomousContainerDatabaseDataguardAssociationResponse apply( GetAutonomousContainerDatabaseDataguardAssociationRequest request) { return client.getAutonomousContainerDatabaseDataguardAssociation( request); } }, new java.util.function.Predicate< GetAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public boolean test( GetAutonomousContainerDatabaseDataguardAssociationResponse response) { return targetStatesSet.contains( response.getAutonomousContainerDatabaseDataguardAssociation() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model .AutonomousContainerDatabaseDataguardAssociation .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousDatabase( GetAutonomousDatabaseRequest request, com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousDatabase( GetAutonomousDatabaseRequest request, com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousDatabase( GetAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousDatabase. private com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse> forAutonomousDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousDatabaseRequest request, final com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousDatabaseRequest, GetAutonomousDatabaseResponse>() { @Override public GetAutonomousDatabaseResponse apply( GetAutonomousDatabaseRequest request) { return client.getAutonomousDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousDatabaseResponse response) { return targetStatesSet.contains( response.getAutonomousDatabase().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousDatabase.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> forAutonomousDatabaseBackup( GetAutonomousDatabaseBackupRequest request, com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> forAutonomousDatabaseBackup( GetAutonomousDatabaseBackupRequest request, com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> forAutonomousDatabaseBackup( GetAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousDatabaseBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousDatabaseBackup. private com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse> forAutonomousDatabaseBackup( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousDatabaseBackupRequest request, final com.oracle.bmc.database.model.AutonomousDatabaseBackup.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousDatabaseBackupRequest, GetAutonomousDatabaseBackupResponse>() { @Override public GetAutonomousDatabaseBackupResponse apply( GetAutonomousDatabaseBackupRequest request) { return client.getAutonomousDatabaseBackup(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousDatabaseBackupResponse response) { return targetStatesSet.contains( response.getAutonomousDatabaseBackup().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousDatabaseBackup .LifecycleState.Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseDataguardAssociationRequest, GetAutonomousDatabaseDataguardAssociationResponse> forAutonomousDatabaseDataguardAssociation( GetAutonomousDatabaseDataguardAssociationRequest request, com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState ... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseDataguardAssociationRequest, GetAutonomousDatabaseDataguardAssociationResponse> forAutonomousDatabaseDataguardAssociation( GetAutonomousDatabaseDataguardAssociationRequest request, com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseDataguardAssociationRequest, GetAutonomousDatabaseDataguardAssociationResponse> forAutonomousDatabaseDataguardAssociation( GetAutonomousDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState ... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousDatabaseDataguardAssociation. private com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseDataguardAssociationRequest, GetAutonomousDatabaseDataguardAssociationResponse> forAutonomousDatabaseDataguardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousDatabaseDataguardAssociationRequest request, final com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousDatabaseDataguardAssociationRequest, GetAutonomousDatabaseDataguardAssociationResponse>() { @Override public GetAutonomousDatabaseDataguardAssociationResponse apply( GetAutonomousDatabaseDataguardAssociationRequest request) { return client.getAutonomousDatabaseDataguardAssociation(request); } }, new java.util.function.Predicate< GetAutonomousDatabaseDataguardAssociationResponse>() { @Override public boolean test( GetAutonomousDatabaseDataguardAssociationResponse response) { return targetStatesSet.contains( response.getAutonomousDatabaseDataguardAssociation() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousDatabaseDataguardAssociation .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseSoftwareImageRequest, GetAutonomousDatabaseSoftwareImageResponse> forAutonomousDatabaseSoftwareImage( GetAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseSoftwareImageRequest, GetAutonomousDatabaseSoftwareImageResponse> forAutonomousDatabaseSoftwareImage( GetAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseSoftwareImageRequest, GetAutonomousDatabaseSoftwareImageResponse> forAutonomousDatabaseSoftwareImage( GetAutonomousDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousDatabaseSoftwareImage. private com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseSoftwareImageRequest, GetAutonomousDatabaseSoftwareImageResponse> forAutonomousDatabaseSoftwareImage( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousDatabaseSoftwareImageRequest request, final com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage .LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousDatabaseSoftwareImageRequest, GetAutonomousDatabaseSoftwareImageResponse>() { @Override public GetAutonomousDatabaseSoftwareImageResponse apply( GetAutonomousDatabaseSoftwareImageRequest request) { return client.getAutonomousDatabaseSoftwareImage(request); } }, new java.util.function.Predicate< GetAutonomousDatabaseSoftwareImageResponse>() { @Override public boolean test( GetAutonomousDatabaseSoftwareImageResponse response) { return targetStatesSet.contains( response.getAutonomousDatabaseSoftwareImage() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousDatabaseSoftwareImage .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> forAutonomousDatabaseWallet( GetAutonomousDatabaseWalletRequest request, com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> forAutonomousDatabaseWallet( GetAutonomousDatabaseWalletRequest request, com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> forAutonomousDatabaseWallet( GetAutonomousDatabaseWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousDatabaseWallet( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousDatabaseWallet. private com.oracle.bmc.waiter.Waiter< GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse> forAutonomousDatabaseWallet( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousDatabaseWalletRequest request, final com.oracle.bmc.database.model.AutonomousDatabaseWallet.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousDatabaseWalletRequest, GetAutonomousDatabaseWalletResponse>() { @Override public GetAutonomousDatabaseWalletResponse apply( GetAutonomousDatabaseWalletRequest request) { return client.getAutonomousDatabaseWallet(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousDatabaseWalletResponse response) { return targetStatesSet.contains( response.getAutonomousDatabaseWallet().getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousExadataInfrastructureRequest, GetAutonomousExadataInfrastructureResponse> forAutonomousExadataInfrastructure( GetAutonomousExadataInfrastructureRequest request, com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousExadataInfrastructureRequest, GetAutonomousExadataInfrastructureResponse> forAutonomousExadataInfrastructure( GetAutonomousExadataInfrastructureRequest request, com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousExadataInfrastructureRequest, GetAutonomousExadataInfrastructureResponse> forAutonomousExadataInfrastructure( GetAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< GetAutonomousExadataInfrastructureRequest, GetAutonomousExadataInfrastructureResponse> forAutonomousExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousExadataInfrastructureRequest request, final com.oracle.bmc.database.model.AutonomousExadataInfrastructure .LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.AutonomousExadataInfrastructure .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousExadataInfrastructureRequest, GetAutonomousExadataInfrastructureResponse>() { @Override public GetAutonomousExadataInfrastructureResponse apply( GetAutonomousExadataInfrastructureRequest request) { return client.getAutonomousExadataInfrastructure(request); } }, new java.util.function.Predicate< GetAutonomousExadataInfrastructureResponse>() { @Override public boolean test( GetAutonomousExadataInfrastructureResponse response) { return targetStatesSet.contains( response.getAutonomousExadataInfrastructure() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousExadataInfrastructure .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousPatch( GetAutonomousPatchRequest request, com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousPatch( GetAutonomousPatchRequest request, com.oracle.bmc.database.model.AutonomousPatch.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forAutonomousPatch( GetAutonomousPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousPatch. private com.oracle.bmc.waiter.Waiter forAutonomousPatch( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousPatchRequest request, final com.oracle.bmc.database.model.AutonomousPatch.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousPatchRequest, GetAutonomousPatchResponse>() { @Override public GetAutonomousPatchResponse apply( GetAutonomousPatchRequest request) { return client.getAutonomousPatch(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousPatchResponse response) { return targetStatesSet.contains( response.getAutonomousPatch().getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> forAutonomousVirtualMachine( GetAutonomousVirtualMachineRequest request, com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> forAutonomousVirtualMachine( GetAutonomousVirtualMachineRequest request, com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> forAutonomousVirtualMachine( GetAutonomousVirtualMachineRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousVirtualMachine( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousVirtualMachine. private com.oracle.bmc.waiter.Waiter< GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse> forAutonomousVirtualMachine( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousVirtualMachineRequest request, final com.oracle.bmc.database.model.AutonomousVirtualMachine.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousVirtualMachineRequest, GetAutonomousVirtualMachineResponse>() { @Override public GetAutonomousVirtualMachineResponse apply( GetAutonomousVirtualMachineRequest request) { return client.getAutonomousVirtualMachine(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousVirtualMachineResponse response) { return targetStatesSet.contains( response.getAutonomousVirtualMachine().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousVirtualMachine .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> forAutonomousVmCluster( GetAutonomousVmClusterRequest request, com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> forAutonomousVmCluster( GetAutonomousVmClusterRequest request, com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> forAutonomousVmCluster( GetAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for AutonomousVmCluster. private com.oracle.bmc.waiter.Waiter< GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse> forAutonomousVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetAutonomousVmClusterRequest request, final com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetAutonomousVmClusterRequest, GetAutonomousVmClusterResponse>() { @Override public GetAutonomousVmClusterResponse apply( GetAutonomousVmClusterRequest request) { return client.getAutonomousVmCluster(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetAutonomousVmClusterResponse response) { return targetStatesSet.contains( response.getAutonomousVmCluster().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.AutonomousVmCluster.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackup( GetBackupRequest request, com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forBackup( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackup( GetBackupRequest request, com.oracle.bmc.database.model.Backup.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackup( GetBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forBackup( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for Backup. private com.oracle.bmc.waiter.Waiter forBackup( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetBackupRequest request, final com.oracle.bmc.database.model.Backup.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetBackupResponse apply(GetBackupRequest request) { return client.getBackup(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetBackupResponse response) { return targetStatesSet.contains( response.getBackup().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.Backup.LifecycleState.Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackupDestination( GetBackupDestinationRequest request, com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forBackupDestination( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackupDestination( GetBackupDestinationRequest request, com.oracle.bmc.database.model.BackupDestination.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forBackupDestination( GetBackupDestinationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forBackupDestination( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for BackupDestination. private com.oracle.bmc.waiter.Waiter forBackupDestination( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetBackupDestinationRequest request, final com.oracle.bmc.database.model.BackupDestination.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetBackupDestinationRequest, GetBackupDestinationResponse>() { @Override public GetBackupDestinationResponse apply( GetBackupDestinationRequest request) { return client.getBackupDestination(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetBackupDestinationResponse response) { return targetStatesSet.contains( response.getBackupDestination().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.BackupDestination.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> forCloudAutonomousVmCluster( GetCloudAutonomousVmClusterRequest request, com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> forCloudAutonomousVmCluster( GetCloudAutonomousVmClusterRequest request, com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> forCloudAutonomousVmCluster( GetCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forCloudAutonomousVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for CloudAutonomousVmCluster. private com.oracle.bmc.waiter.Waiter< GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse> forCloudAutonomousVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetCloudAutonomousVmClusterRequest request, final com.oracle.bmc.database.model.CloudAutonomousVmCluster.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetCloudAutonomousVmClusterRequest, GetCloudAutonomousVmClusterResponse>() { @Override public GetCloudAutonomousVmClusterResponse apply( GetCloudAutonomousVmClusterRequest request) { return client.getCloudAutonomousVmCluster(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetCloudAutonomousVmClusterResponse response) { return targetStatesSet.contains( response.getCloudAutonomousVmCluster().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.CloudAutonomousVmCluster .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> forCloudExadataInfrastructure( GetCloudExadataInfrastructureRequest request, com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> forCloudExadataInfrastructure( GetCloudExadataInfrastructureRequest request, com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> forCloudExadataInfrastructure( GetCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forCloudExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for CloudExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse> forCloudExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetCloudExadataInfrastructureRequest request, final com.oracle.bmc.database.model.CloudExadataInfrastructure.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetCloudExadataInfrastructureRequest, GetCloudExadataInfrastructureResponse>() { @Override public GetCloudExadataInfrastructureResponse apply( GetCloudExadataInfrastructureRequest request) { return client.getCloudExadataInfrastructure(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetCloudExadataInfrastructureResponse response) { return targetStatesSet.contains( response.getCloudExadataInfrastructure() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.CloudExadataInfrastructure .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCloudVmCluster( GetCloudVmClusterRequest request, com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCloudVmCluster( GetCloudVmClusterRequest request, com.oracle.bmc.database.model.CloudVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forCloudVmCluster( GetCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forCloudVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for CloudVmCluster. private com.oracle.bmc.waiter.Waiter forCloudVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetCloudVmClusterRequest request, final com.oracle.bmc.database.model.CloudVmCluster.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetCloudVmClusterRequest, GetCloudVmClusterResponse>() { @Override public GetCloudVmClusterResponse apply( GetCloudVmClusterRequest request) { return client.getCloudVmCluster(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetCloudVmClusterResponse response) { return targetStatesSet.contains( response.getCloudVmCluster().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.CloudVmCluster.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleConnection( GetConsoleConnectionRequest request, com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forConsoleConnection( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleConnection( GetConsoleConnectionRequest request, com.oracle.bmc.database.model.ConsoleConnection.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleConnection( GetConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forConsoleConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ConsoleConnection. private com.oracle.bmc.waiter.Waiter forConsoleConnection( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetConsoleConnectionRequest request, final com.oracle.bmc.database.model.ConsoleConnection.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetConsoleConnectionRequest, GetConsoleConnectionResponse>() { @Override public GetConsoleConnectionResponse apply( GetConsoleConnectionRequest request) { return client.getConsoleConnection(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetConsoleConnectionResponse response) { return targetStatesSet.contains( response.getConsoleConnection().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ConsoleConnection.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleHistory( GetConsoleHistoryRequest request, com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forConsoleHistory( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleHistory( GetConsoleHistoryRequest request, com.oracle.bmc.database.model.ConsoleHistory.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forConsoleHistory( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConsoleHistory( GetConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forConsoleHistory( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ConsoleHistory. private com.oracle.bmc.waiter.Waiter forConsoleHistory( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetConsoleHistoryRequest request, final com.oracle.bmc.database.model.ConsoleHistory.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetConsoleHistoryRequest, GetConsoleHistoryResponse>() { @Override public GetConsoleHistoryResponse apply( GetConsoleHistoryRequest request) { return client.getConsoleHistory(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetConsoleHistoryResponse response) { return targetStatesSet.contains( response.getConsoleHistory().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ConsoleHistory.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> forDataGuardAssociation( GetDataGuardAssociationRequest request, com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> forDataGuardAssociation( GetDataGuardAssociationRequest request, com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> forDataGuardAssociation( GetDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDataGuardAssociation( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DataGuardAssociation. private com.oracle.bmc.waiter.Waiter< GetDataGuardAssociationRequest, GetDataGuardAssociationResponse> forDataGuardAssociation( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDataGuardAssociationRequest request, final com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetDataGuardAssociationRequest, GetDataGuardAssociationResponse>() { @Override public GetDataGuardAssociationResponse apply( GetDataGuardAssociationRequest request) { return client.getDataGuardAssociation(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDataGuardAssociationResponse response) { return targetStatesSet.contains( response.getDataGuardAssociation().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DataGuardAssociation.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDatabase( GetDatabaseRequest request, com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDatabase( GetDatabaseRequest request, com.oracle.bmc.database.model.Database.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDatabase( GetDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for Database. private com.oracle.bmc.waiter.Waiter forDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDatabaseRequest request, final com.oracle.bmc.database.model.Database.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetDatabaseResponse apply(GetDatabaseRequest request) { return client.getDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDatabaseResponse response) { return targetStatesSet.contains( response.getDatabase().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.Database.LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> forDatabaseSoftwareImage( GetDatabaseSoftwareImageRequest request, com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> forDatabaseSoftwareImage( GetDatabaseSoftwareImageRequest request, com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> forDatabaseSoftwareImage( GetDatabaseSoftwareImageRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDatabaseSoftwareImage( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DatabaseSoftwareImage. private com.oracle.bmc.waiter.Waiter< GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse> forDatabaseSoftwareImage( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDatabaseSoftwareImageRequest request, final com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetDatabaseSoftwareImageRequest, GetDatabaseSoftwareImageResponse>() { @Override public GetDatabaseSoftwareImageResponse apply( GetDatabaseSoftwareImageRequest request) { return client.getDatabaseSoftwareImage(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDatabaseSoftwareImageResponse response) { return targetStatesSet.contains( response.getDatabaseSoftwareImage().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DatabaseSoftwareImage.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> forDatabaseUpgradeHistoryEntry( GetDatabaseUpgradeHistoryEntryRequest request, com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> forDatabaseUpgradeHistoryEntry( GetDatabaseUpgradeHistoryEntryRequest request, com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> forDatabaseUpgradeHistoryEntry( GetDatabaseUpgradeHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DatabaseUpgradeHistoryEntry. private com.oracle.bmc.waiter.Waiter< GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse> forDatabaseUpgradeHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDatabaseUpgradeHistoryEntryRequest request, final com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.DatabaseUpgradeHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetDatabaseUpgradeHistoryEntryRequest, GetDatabaseUpgradeHistoryEntryResponse>() { @Override public GetDatabaseUpgradeHistoryEntryResponse apply( GetDatabaseUpgradeHistoryEntryRequest request) { return client.getDatabaseUpgradeHistoryEntry(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDatabaseUpgradeHistoryEntryResponse response) { return targetStatesSet.contains( response.getDatabaseUpgradeHistoryEntry() .getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbHome( GetDbHomeRequest request, com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDbHome( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbHome( GetDbHomeRequest request, com.oracle.bmc.database.model.DbHome.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbHome( GetDbHomeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDbHome( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DbHome. private com.oracle.bmc.waiter.Waiter forDbHome( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDbHomeRequest request, final com.oracle.bmc.database.model.DbHome.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetDbHomeResponse apply(GetDbHomeRequest request) { return client.getDbHome(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDbHomeResponse response) { return targetStatesSet.contains( response.getDbHome().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DbHome.LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbNode( GetDbNodeRequest request, com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDbNode( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbNode( GetDbNodeRequest request, com.oracle.bmc.database.model.DbNode.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbNode( GetDbNodeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDbNode( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DbNode. private com.oracle.bmc.waiter.Waiter forDbNode( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDbNodeRequest request, final com.oracle.bmc.database.model.DbNode.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetDbNodeResponse apply(GetDbNodeRequest request) { return client.getDbNode(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDbNodeResponse response) { return targetStatesSet.contains( response.getDbNode().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DbNode.LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbServer( GetDbServerRequest request, com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDbServer( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbServer( GetDbServerRequest request, com.oracle.bmc.database.model.DbServer.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDbServer( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbServer( GetDbServerRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDbServer( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DbServer. private com.oracle.bmc.waiter.Waiter forDbServer( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDbServerRequest request, final com.oracle.bmc.database.model.DbServer.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetDbServerResponse apply(GetDbServerRequest request) { return client.getDbServer(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDbServerResponse response) { return targetStatesSet.contains( response.getDbServer().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DbServer.LifecycleState.Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbSystem( GetDbSystemRequest request, com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDbSystem( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbSystem( GetDbSystemRequest request, com.oracle.bmc.database.model.DbSystem.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forDbSystem( GetDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDbSystem( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DbSystem. private com.oracle.bmc.waiter.Waiter forDbSystem( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDbSystemRequest request, final com.oracle.bmc.database.model.DbSystem.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetDbSystemResponse apply(GetDbSystemRequest request) { return client.getDbSystem(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDbSystemResponse response) { return targetStatesSet.contains( response.getDbSystem().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.DbSystem.LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> forDbSystemUpgradeHistoryEntry( GetDbSystemUpgradeHistoryEntryRequest request, com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> forDbSystemUpgradeHistoryEntry( GetDbSystemUpgradeHistoryEntryRequest request, com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> forDbSystemUpgradeHistoryEntry( GetDbSystemUpgradeHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for DbSystemUpgradeHistoryEntry. private com.oracle.bmc.waiter.Waiter< GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse> forDbSystemUpgradeHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetDbSystemUpgradeHistoryEntryRequest request, final com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.DbSystemUpgradeHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetDbSystemUpgradeHistoryEntryRequest, GetDbSystemUpgradeHistoryEntryResponse>() { @Override public GetDbSystemUpgradeHistoryEntryResponse apply( GetDbSystemUpgradeHistoryEntryRequest request) { return client.getDbSystemUpgradeHistoryEntry(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetDbSystemUpgradeHistoryEntryResponse response) { return targetStatesSet.contains( response.getDbSystemUpgradeHistoryEntry() .getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> forExadataInfrastructure( GetExadataInfrastructureRequest request, com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> forExadataInfrastructure( GetExadataInfrastructureRequest request, com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> forExadataInfrastructure( GetExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExadataInfrastructure( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExadataInfrastructure. private com.oracle.bmc.waiter.Waiter< GetExadataInfrastructureRequest, GetExadataInfrastructureResponse> forExadataInfrastructure( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExadataInfrastructureRequest request, final com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExadataInfrastructureRequest, GetExadataInfrastructureResponse>() { @Override public GetExadataInfrastructureResponse apply( GetExadataInfrastructureRequest request) { return client.getExadataInfrastructure(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExadataInfrastructureResponse response) { return targetStatesSet.contains( response.getExadataInfrastructure().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExadataInfrastructure.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadataIormConfig( GetExadataIormConfigRequest request, com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadataIormConfig( GetExadataIormConfigRequest request, com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadataIormConfig( GetExadataIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExadataIormConfig( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExadataIormConfig. private com.oracle.bmc.waiter.Waiter forExadataIormConfig( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExadataIormConfigRequest request, final com.oracle.bmc.database.model.ExadataIormConfig.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExadataIormConfigRequest, GetExadataIormConfigResponse>() { @Override public GetExadataIormConfigResponse apply( GetExadataIormConfigRequest request) { return client.getExadataIormConfig(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExadataIormConfigResponse response) { return targetStatesSet.contains( response.getExadataIormConfig().getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadbVmCluster( GetExadbVmClusterRequest request, com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadbVmCluster( GetExadbVmClusterRequest request, com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExadbVmCluster( GetExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExadbVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExadbVmCluster. private com.oracle.bmc.waiter.Waiter forExadbVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExadbVmClusterRequest request, final com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExadbVmClusterRequest, GetExadbVmClusterResponse>() { @Override public GetExadbVmClusterResponse apply( GetExadbVmClusterRequest request) { return client.getExadbVmCluster(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExadbVmClusterResponse response) { return targetStatesSet.contains( response.getExadbVmCluster().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExadbVmCluster.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> forExadbVmClusterUpdate( GetExadbVmClusterUpdateRequest request, com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> forExadbVmClusterUpdate( GetExadbVmClusterUpdateRequest request, com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> forExadbVmClusterUpdate( GetExadbVmClusterUpdateRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExadbVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExadbVmClusterUpdate. private com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse> forExadbVmClusterUpdate( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExadbVmClusterUpdateRequest request, final com.oracle.bmc.database.model.ExadbVmClusterUpdate.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExadbVmClusterUpdateRequest, GetExadbVmClusterUpdateResponse>() { @Override public GetExadbVmClusterUpdateResponse apply( GetExadbVmClusterUpdateRequest request) { return client.getExadbVmClusterUpdate(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExadbVmClusterUpdateResponse response) { return targetStatesSet.contains( response.getExadbVmClusterUpdate().getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateHistoryEntryRequest, GetExadbVmClusterUpdateHistoryEntryResponse> forExadbVmClusterUpdateHistoryEntry( GetExadbVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateHistoryEntryRequest, GetExadbVmClusterUpdateHistoryEntryResponse> forExadbVmClusterUpdateHistoryEntry( GetExadbVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateHistoryEntryRequest, GetExadbVmClusterUpdateHistoryEntryResponse> forExadbVmClusterUpdateHistoryEntry( GetExadbVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExadbVmClusterUpdateHistoryEntry. private com.oracle.bmc.waiter.Waiter< GetExadbVmClusterUpdateHistoryEntryRequest, GetExadbVmClusterUpdateHistoryEntryResponse> forExadbVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExadbVmClusterUpdateHistoryEntryRequest request, final com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry .LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.ExadbVmClusterUpdateHistoryEntry .LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExadbVmClusterUpdateHistoryEntryRequest, GetExadbVmClusterUpdateHistoryEntryResponse>() { @Override public GetExadbVmClusterUpdateHistoryEntryResponse apply( GetExadbVmClusterUpdateHistoryEntryRequest request) { return client.getExadbVmClusterUpdateHistoryEntry(request); } }, new java.util.function.Predicate< GetExadbVmClusterUpdateHistoryEntryResponse>() { @Override public boolean test( GetExadbVmClusterUpdateHistoryEntryResponse response) { return targetStatesSet.contains( response.getExadbVmClusterUpdateHistoryEntry() .getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> forExascaleDbStorageVault( GetExascaleDbStorageVaultRequest request, com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> forExascaleDbStorageVault( GetExascaleDbStorageVaultRequest request, com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> forExascaleDbStorageVault( GetExascaleDbStorageVaultRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExascaleDbStorageVault( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExascaleDbStorageVault. private com.oracle.bmc.waiter.Waiter< GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse> forExascaleDbStorageVault( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExascaleDbStorageVaultRequest request, final com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExascaleDbStorageVaultRequest, GetExascaleDbStorageVaultResponse>() { @Override public GetExascaleDbStorageVaultResponse apply( GetExascaleDbStorageVaultRequest request) { return client.getExascaleDbStorageVault(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExascaleDbStorageVaultResponse response) { return targetStatesSet.contains( response.getExascaleDbStorageVault().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExascaleDbStorageVault.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionAction( GetExecutionActionRequest request, com.oracle.bmc.database.model.ExecutionAction.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExecutionAction( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionAction( GetExecutionActionRequest request, com.oracle.bmc.database.model.ExecutionAction.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExecutionAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionAction( GetExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExecutionAction.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExecutionAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExecutionAction. private com.oracle.bmc.waiter.Waiter forExecutionAction( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExecutionActionRequest request, final com.oracle.bmc.database.model.ExecutionAction.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExecutionActionRequest, GetExecutionActionResponse>() { @Override public GetExecutionActionResponse apply( GetExecutionActionRequest request) { return client.getExecutionAction(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExecutionActionResponse response) { return targetStatesSet.contains( response.getExecutionAction().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExecutionAction.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionWindow( GetExecutionWindowRequest request, com.oracle.bmc.database.model.ExecutionWindow.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExecutionWindow( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionWindow( GetExecutionWindowRequest request, com.oracle.bmc.database.model.ExecutionWindow.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExecutionWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forExecutionWindow( GetExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExecutionWindow.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExecutionWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExecutionWindow. private com.oracle.bmc.waiter.Waiter forExecutionWindow( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExecutionWindowRequest request, final com.oracle.bmc.database.model.ExecutionWindow.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExecutionWindowRequest, GetExecutionWindowResponse>() { @Override public GetExecutionWindowResponse apply( GetExecutionWindowRequest request) { return client.getExecutionWindow(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExecutionWindowResponse response) { return targetStatesSet.contains( response.getExecutionWindow().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExecutionWindow.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> forExternalContainerDatabase( GetExternalContainerDatabaseRequest request, com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> forExternalContainerDatabase( GetExternalContainerDatabaseRequest request, com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> forExternalContainerDatabase( GetExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExternalContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExternalContainerDatabase. private com.oracle.bmc.waiter.Waiter< GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse> forExternalContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExternalContainerDatabaseRequest request, final com.oracle.bmc.database.model.ExternalContainerDatabase.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExternalContainerDatabaseRequest, GetExternalContainerDatabaseResponse>() { @Override public GetExternalContainerDatabaseResponse apply( GetExternalContainerDatabaseRequest request) { return client.getExternalContainerDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExternalContainerDatabaseResponse response) { return targetStatesSet.contains( response.getExternalContainerDatabase() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExternalContainerDatabase .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> forExternalDatabaseConnector( GetExternalDatabaseConnectorRequest request, com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> forExternalDatabaseConnector( GetExternalDatabaseConnectorRequest request, com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> forExternalDatabaseConnector( GetExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExternalDatabaseConnector( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExternalDatabaseConnector. private com.oracle.bmc.waiter.Waiter< GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse> forExternalDatabaseConnector( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExternalDatabaseConnectorRequest request, final com.oracle.bmc.database.model.ExternalDatabaseConnector.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExternalDatabaseConnectorRequest, GetExternalDatabaseConnectorResponse>() { @Override public GetExternalDatabaseConnectorResponse apply( GetExternalDatabaseConnectorRequest request) { return client.getExternalDatabaseConnector(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExternalDatabaseConnectorResponse response) { return targetStatesSet.contains( response.getExternalDatabaseConnector() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExternalDatabaseConnector .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> forExternalNonContainerDatabase( GetExternalNonContainerDatabaseRequest request, com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> forExternalNonContainerDatabase( GetExternalNonContainerDatabaseRequest request, com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> forExternalNonContainerDatabase( GetExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExternalNonContainerDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExternalNonContainerDatabase. private com.oracle.bmc.waiter.Waiter< GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse> forExternalNonContainerDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExternalNonContainerDatabaseRequest request, final com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.ExternalNonContainerDatabase.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExternalNonContainerDatabaseRequest, GetExternalNonContainerDatabaseResponse>() { @Override public GetExternalNonContainerDatabaseResponse apply( GetExternalNonContainerDatabaseRequest request) { return client.getExternalNonContainerDatabase(request); } }, new java.util.function.Predicate< GetExternalNonContainerDatabaseResponse>() { @Override public boolean test(GetExternalNonContainerDatabaseResponse response) { return targetStatesSet.contains( response.getExternalNonContainerDatabase() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExternalNonContainerDatabase .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> forExternalPluggableDatabase( GetExternalPluggableDatabaseRequest request, com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> forExternalPluggableDatabase( GetExternalPluggableDatabaseRequest request, com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> forExternalPluggableDatabase( GetExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forExternalPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ExternalPluggableDatabase. private com.oracle.bmc.waiter.Waiter< GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse> forExternalPluggableDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetExternalPluggableDatabaseRequest request, final com.oracle.bmc.database.model.ExternalPluggableDatabase.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetExternalPluggableDatabaseRequest, GetExternalPluggableDatabaseResponse>() { @Override public GetExternalPluggableDatabaseResponse apply( GetExternalPluggableDatabaseRequest request) { return client.getExternalPluggableDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetExternalPluggableDatabaseResponse response) { return targetStatesSet.contains( response.getExternalPluggableDatabase() .getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ExternalPluggableDatabase .LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forKeyStore( GetKeyStoreRequest request, com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forKeyStore( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forKeyStore( GetKeyStoreRequest request, com.oracle.bmc.database.model.KeyStore.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forKeyStore( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forKeyStore( GetKeyStoreRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forKeyStore( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for KeyStore. private com.oracle.bmc.waiter.Waiter forKeyStore( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetKeyStoreRequest request, final com.oracle.bmc.database.model.KeyStore.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function() { @Override public GetKeyStoreResponse apply(GetKeyStoreRequest request) { return client.getKeyStore(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetKeyStoreResponse response) { return targetStatesSet.contains( response.getKeyStore().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.KeyStore.LifecycleState.Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forMaintenanceRun( GetMaintenanceRunRequest request, com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forMaintenanceRun( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forMaintenanceRun( GetMaintenanceRunRequest request, com.oracle.bmc.database.model.MaintenanceRun.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forMaintenanceRun( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forMaintenanceRun( GetMaintenanceRunRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forMaintenanceRun( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for MaintenanceRun. private com.oracle.bmc.waiter.Waiter forMaintenanceRun( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetMaintenanceRunRequest request, final com.oracle.bmc.database.model.MaintenanceRun.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetMaintenanceRunRequest, GetMaintenanceRunResponse>() { @Override public GetMaintenanceRunResponse apply( GetMaintenanceRunRequest request) { return client.getMaintenanceRun(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetMaintenanceRunResponse response) { return targetStatesSet.contains( response.getMaintenanceRun().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.MaintenanceRun.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forOneoffPatch( GetOneoffPatchRequest request, com.oracle.bmc.database.model.OneoffPatch.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forOneoffPatch( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forOneoffPatch( GetOneoffPatchRequest request, com.oracle.bmc.database.model.OneoffPatch.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forOneoffPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forOneoffPatch( GetOneoffPatchRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.OneoffPatch.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forOneoffPatch( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for OneoffPatch. private com.oracle.bmc.waiter.Waiter forOneoffPatch( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetOneoffPatchRequest request, final com.oracle.bmc.database.model.OneoffPatch.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetOneoffPatchRequest, GetOneoffPatchResponse>() { @Override public GetOneoffPatchResponse apply(GetOneoffPatchRequest request) { return client.getOneoffPatch(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetOneoffPatchResponse response) { return targetStatesSet.contains( response.getOneoffPatch().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.OneoffPatch.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> forPdbConversionHistoryEntry( GetPdbConversionHistoryEntryRequest request, com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forPdbConversionHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> forPdbConversionHistoryEntry( GetPdbConversionHistoryEntryRequest request, com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forPdbConversionHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> forPdbConversionHistoryEntry( GetPdbConversionHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forPdbConversionHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for PdbConversionHistoryEntry. private com.oracle.bmc.waiter.Waiter< GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse> forPdbConversionHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetPdbConversionHistoryEntryRequest request, final com.oracle.bmc.database.model.PdbConversionHistoryEntry.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetPdbConversionHistoryEntryRequest, GetPdbConversionHistoryEntryResponse>() { @Override public GetPdbConversionHistoryEntryResponse apply( GetPdbConversionHistoryEntryRequest request) { return client.getPdbConversionHistoryEntry(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetPdbConversionHistoryEntryResponse response) { return targetStatesSet.contains( response.getPdbConversionHistoryEntry() .getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forPluggableDatabase( GetPluggableDatabaseRequest request, com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forPluggableDatabase( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forPluggableDatabase( GetPluggableDatabaseRequest request, com.oracle.bmc.database.model.PluggableDatabase.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forPluggableDatabase( GetPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forPluggableDatabase( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for PluggableDatabase. private com.oracle.bmc.waiter.Waiter forPluggableDatabase( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetPluggableDatabaseRequest request, final com.oracle.bmc.database.model.PluggableDatabase.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetPluggableDatabaseRequest, GetPluggableDatabaseResponse>() { @Override public GetPluggableDatabaseResponse apply( GetPluggableDatabaseRequest request) { return client.getPluggableDatabase(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetPluggableDatabaseResponse response) { return targetStatesSet.contains( response.getPluggableDatabase().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.PluggableDatabase.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forScheduledAction( GetScheduledActionRequest request, com.oracle.bmc.database.model.ScheduledAction.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forScheduledAction( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forScheduledAction( GetScheduledActionRequest request, com.oracle.bmc.database.model.ScheduledAction.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forScheduledAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forScheduledAction( GetScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.ScheduledAction.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forScheduledAction( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for ScheduledAction. private com.oracle.bmc.waiter.Waiter forScheduledAction( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetScheduledActionRequest request, final com.oracle.bmc.database.model.ScheduledAction.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetScheduledActionRequest, GetScheduledActionResponse>() { @Override public GetScheduledActionResponse apply( GetScheduledActionRequest request) { return client.getScheduledAction(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetScheduledActionResponse response) { return targetStatesSet.contains( response.getScheduledAction().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.ScheduledAction.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPlan( GetSchedulingPlanRequest request, com.oracle.bmc.database.model.SchedulingPlan.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forSchedulingPlan( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPlan( GetSchedulingPlanRequest request, com.oracle.bmc.database.model.SchedulingPlan.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forSchedulingPlan( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPlan( GetSchedulingPlanRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.SchedulingPlan.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forSchedulingPlan( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for SchedulingPlan. private com.oracle.bmc.waiter.Waiter forSchedulingPlan( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetSchedulingPlanRequest request, final com.oracle.bmc.database.model.SchedulingPlan.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetSchedulingPlanRequest, GetSchedulingPlanResponse>() { @Override public GetSchedulingPlanResponse apply( GetSchedulingPlanRequest request) { return client.getSchedulingPlan(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetSchedulingPlanResponse response) { return targetStatesSet.contains( response.getSchedulingPlan().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.SchedulingPlan.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPolicy( GetSchedulingPolicyRequest request, com.oracle.bmc.database.model.SchedulingPolicy.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forSchedulingPolicy( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPolicy( GetSchedulingPolicyRequest request, com.oracle.bmc.database.model.SchedulingPolicy.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forSchedulingPolicy( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingPolicy( GetSchedulingPolicyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.SchedulingPolicy.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forSchedulingPolicy( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for SchedulingPolicy. private com.oracle.bmc.waiter.Waiter forSchedulingPolicy( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetSchedulingPolicyRequest request, final com.oracle.bmc.database.model.SchedulingPolicy.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetSchedulingPolicyRequest, GetSchedulingPolicyResponse>() { @Override public GetSchedulingPolicyResponse apply( GetSchedulingPolicyRequest request) { return client.getSchedulingPolicy(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetSchedulingPolicyResponse response) { return targetStatesSet.contains( response.getSchedulingPolicy().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.SchedulingPolicy.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingWindow( GetSchedulingWindowRequest request, com.oracle.bmc.database.model.SchedulingWindow.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forSchedulingWindow( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingWindow( GetSchedulingWindowRequest request, com.oracle.bmc.database.model.SchedulingWindow.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forSchedulingWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSchedulingWindow( GetSchedulingWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.SchedulingWindow.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forSchedulingWindow( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for SchedulingWindow. private com.oracle.bmc.waiter.Waiter forSchedulingWindow( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetSchedulingWindowRequest request, final com.oracle.bmc.database.model.SchedulingWindow.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetSchedulingWindowRequest, GetSchedulingWindowResponse>() { @Override public GetSchedulingWindowResponse apply( GetSchedulingWindowRequest request) { return client.getSchedulingWindow(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetSchedulingWindowResponse response) { return targetStatesSet.contains( response.getSchedulingWindow().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.SchedulingWindow.LifecycleState .Deleted)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmCluster( GetVmClusterRequest request, com.oracle.bmc.database.model.VmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forVmCluster( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmCluster( GetVmClusterRequest request, com.oracle.bmc.database.model.VmCluster.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmCluster( GetVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.VmCluster.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forVmCluster( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for VmCluster. private com.oracle.bmc.waiter.Waiter forVmCluster( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetVmClusterRequest request, final com.oracle.bmc.database.model.VmCluster.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetVmClusterRequest, GetVmClusterResponse>() { @Override public GetVmClusterResponse apply(GetVmClusterRequest request) { return client.getVmCluster(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetVmClusterResponse response) { return targetStatesSet.contains( response.getVmCluster().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.VmCluster.LifecycleState.Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterNetwork( GetVmClusterNetworkRequest request, com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forVmClusterNetwork( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterNetwork( GetVmClusterNetworkRequest request, com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forVmClusterNetwork( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterNetwork( GetVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forVmClusterNetwork( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for VmClusterNetwork. private com.oracle.bmc.waiter.Waiter forVmClusterNetwork( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetVmClusterNetworkRequest request, final com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetVmClusterNetworkRequest, GetVmClusterNetworkResponse>() { @Override public GetVmClusterNetworkResponse apply( GetVmClusterNetworkRequest request) { return client.getVmClusterNetwork(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetVmClusterNetworkResponse response) { return targetStatesSet.contains( response.getVmClusterNetwork().getLifecycleState()); } }, targetStatesSet.contains( com.oracle.bmc.database.model.VmClusterNetwork.LifecycleState .Terminated)), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterUpdate( GetVmClusterUpdateRequest request, com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forVmClusterUpdate( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterUpdate( GetVmClusterUpdateRequest request, com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forVmClusterUpdate( GetVmClusterUpdateRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forVmClusterUpdate( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for VmClusterUpdate. private com.oracle.bmc.waiter.Waiter forVmClusterUpdate( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetVmClusterUpdateRequest request, final com.oracle.bmc.database.model.VmClusterUpdate.LifecycleState... targetStates) { final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetVmClusterUpdateRequest, GetVmClusterUpdateResponse>() { @Override public GetVmClusterUpdateResponse apply( GetVmClusterUpdateRequest request) { return client.getVmClusterUpdate(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetVmClusterUpdateResponse response) { return targetStatesSet.contains( response.getVmClusterUpdate().getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @param targetStates 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 * @return a new {@code Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> forVmClusterUpdateHistoryEntry( GetVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null targetState values are not permitted"); return forVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_WAITER, request, targetStates); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param targetState the desired state to wait for * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> forVmClusterUpdateHistoryEntry( GetVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( targetState, "The targetState cannot be null"); return forVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetState); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> forVmClusterUpdateHistoryEntry( GetVmClusterUpdateHistoryEntryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( targetStates, "Null target states are not permitted"); return forVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), request, targetStates); } // Helper method to create a new Waiter for VmClusterUpdateHistoryEntry. private com.oracle.bmc.waiter.Waiter< GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse> forVmClusterUpdateHistoryEntry( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetVmClusterUpdateHistoryEntryRequest request, final com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState ... targetStates) { final java.util.Set< com.oracle.bmc.database.model.VmClusterUpdateHistoryEntry.LifecycleState> targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, waiter.toCallable( () -> request, new java.util.function.Function< GetVmClusterUpdateHistoryEntryRequest, GetVmClusterUpdateHistoryEntryResponse>() { @Override public GetVmClusterUpdateHistoryEntryResponse apply( GetVmClusterUpdateHistoryEntryRequest request) { return client.getVmClusterUpdateHistoryEntry(request); } }, new java.util.function.Predicate() { @Override public boolean test(GetVmClusterUpdateHistoryEntryResponse response) { return targetStatesSet.contains( response.getVmClusterUpdateHistoryEntry() .getLifecycleState()); } }, false), request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< LaunchAutonomousExadataInfrastructureRequest, LaunchAutonomousExadataInfrastructureResponse> forLaunchAutonomousExadataInfrastructure( LaunchAutonomousExadataInfrastructureRequest request) { return forLaunchAutonomousExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< LaunchAutonomousExadataInfrastructureRequest, LaunchAutonomousExadataInfrastructureResponse> forLaunchAutonomousExadataInfrastructure( LaunchAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public LaunchAutonomousExadataInfrastructureResponse call() throws Exception { final LaunchAutonomousExadataInfrastructureResponse response = client.launchAutonomousExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forLaunchDbSystem(LaunchDbSystemRequest request) { return forLaunchDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forLaunchDbSystem( LaunchDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public LaunchDbSystemResponse call() throws Exception { final LaunchDbSystemResponse response = client.launchDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> forLocalClonePluggableDatabase(LocalClonePluggableDatabaseRequest request) { return forLocalClonePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< LocalClonePluggableDatabaseRequest, LocalClonePluggableDatabaseResponse> forLocalClonePluggableDatabase( LocalClonePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public LocalClonePluggableDatabaseResponse call() throws Exception { final LocalClonePluggableDatabaseResponse response = client.localClonePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< MigrateExadataDbSystemResourceModelRequest, MigrateExadataDbSystemResourceModelResponse> forMigrateExadataDbSystemResourceModel( MigrateExadataDbSystemResourceModelRequest request) { return forMigrateExadataDbSystemResourceModel( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< MigrateExadataDbSystemResourceModelRequest, MigrateExadataDbSystemResourceModelResponse> forMigrateExadataDbSystemResourceModel( MigrateExadataDbSystemResourceModelRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public MigrateExadataDbSystemResourceModelResponse call() throws Exception { final MigrateExadataDbSystemResourceModelResponse response = client.migrateExadataDbSystemResourceModel(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forMigrateVaultKey(MigrateVaultKeyRequest request) { return forMigrateVaultKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forMigrateVaultKey( MigrateVaultKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public MigrateVaultKeyResponse call() throws Exception { final MigrateVaultKeyResponse response = client.migrateVaultKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> forModifyDatabaseManagement(ModifyDatabaseManagementRequest request) { return forModifyDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ModifyDatabaseManagementRequest, ModifyDatabaseManagementResponse> forModifyDatabaseManagement( ModifyDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ModifyDatabaseManagementResponse call() throws Exception { final ModifyDatabaseManagementResponse response = client.modifyDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ModifyPluggableDatabaseManagementRequest, ModifyPluggableDatabaseManagementResponse> forModifyPluggableDatabaseManagement(ModifyPluggableDatabaseManagementRequest request) { return forModifyPluggableDatabaseManagement( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ModifyPluggableDatabaseManagementRequest, ModifyPluggableDatabaseManagementResponse> forModifyPluggableDatabaseManagement( ModifyPluggableDatabaseManagementRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ModifyPluggableDatabaseManagementResponse call() throws Exception { final ModifyPluggableDatabaseManagementResponse response = client.modifyPluggableDatabaseManagement(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> forMoveExecutionActionMember(MoveExecutionActionMemberRequest request) { return forMoveExecutionActionMember( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< MoveExecutionActionMemberRequest, MoveExecutionActionMemberResponse> forMoveExecutionActionMember( MoveExecutionActionMemberRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public MoveExecutionActionMemberResponse call() throws Exception { final MoveExecutionActionMemberResponse response = client.moveExecutionActionMember(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> forRefreshPluggableDatabase(RefreshPluggableDatabaseRequest request) { return forRefreshPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RefreshPluggableDatabaseRequest, RefreshPluggableDatabaseResponse> forRefreshPluggableDatabase( RefreshPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RefreshPluggableDatabaseResponse call() throws Exception { final RefreshPluggableDatabaseResponse response = client.refreshPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RegisterAutonomousDatabaseDataSafeRequest, RegisterAutonomousDatabaseDataSafeResponse> forRegisterAutonomousDatabaseDataSafe( RegisterAutonomousDatabaseDataSafeRequest request) { return forRegisterAutonomousDatabaseDataSafe( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RegisterAutonomousDatabaseDataSafeRequest, RegisterAutonomousDatabaseDataSafeResponse> forRegisterAutonomousDatabaseDataSafe( RegisterAutonomousDatabaseDataSafeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RegisterAutonomousDatabaseDataSafeResponse call() throws Exception { final RegisterAutonomousDatabaseDataSafeResponse response = client.registerAutonomousDatabaseDataSafe(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> forReinstateAutonomousContainerDatabaseDataguardAssociation( ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request) { return forReinstateAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReinstateAutonomousContainerDatabaseDataguardAssociationRequest, ReinstateAutonomousContainerDatabaseDataguardAssociationResponse> forReinstateAutonomousContainerDatabaseDataguardAssociation( ReinstateAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ReinstateAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public ReinstateAutonomousContainerDatabaseDataguardAssociationResponse call() throws Exception { final ReinstateAutonomousContainerDatabaseDataguardAssociationResponse response = client .reinstateAutonomousContainerDatabaseDataguardAssociation( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> forReinstateDataGuardAssociation(ReinstateDataGuardAssociationRequest request) { return forReinstateDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReinstateDataGuardAssociationRequest, ReinstateDataGuardAssociationResponse> forReinstateDataGuardAssociation( ReinstateDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ReinstateDataGuardAssociationResponse call() throws Exception { final ReinstateDataGuardAssociationResponse response = client.reinstateDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> forRemoteClonePluggableDatabase(RemoteClonePluggableDatabaseRequest request) { return forRemoteClonePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoteClonePluggableDatabaseRequest, RemoteClonePluggableDatabaseResponse> forRemoteClonePluggableDatabase( RemoteClonePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RemoteClonePluggableDatabaseResponse call() throws Exception { final RemoteClonePluggableDatabaseResponse response = client.remoteClonePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromCloudVmClusterRequest, RemoveVirtualMachineFromCloudVmClusterResponse> forRemoveVirtualMachineFromCloudVmCluster( RemoveVirtualMachineFromCloudVmClusterRequest request) { return forRemoveVirtualMachineFromCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromCloudVmClusterRequest, RemoveVirtualMachineFromCloudVmClusterResponse> forRemoveVirtualMachineFromCloudVmCluster( RemoveVirtualMachineFromCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< RemoveVirtualMachineFromCloudVmClusterResponse>() { @Override public RemoveVirtualMachineFromCloudVmClusterResponse call() throws Exception { final RemoveVirtualMachineFromCloudVmClusterResponse response = client.removeVirtualMachineFromCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromExadbVmClusterRequest, RemoveVirtualMachineFromExadbVmClusterResponse> forRemoveVirtualMachineFromExadbVmCluster( RemoveVirtualMachineFromExadbVmClusterRequest request) { return forRemoveVirtualMachineFromExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromExadbVmClusterRequest, RemoveVirtualMachineFromExadbVmClusterResponse> forRemoveVirtualMachineFromExadbVmCluster( RemoveVirtualMachineFromExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< RemoveVirtualMachineFromExadbVmClusterResponse>() { @Override public RemoveVirtualMachineFromExadbVmClusterResponse call() throws Exception { final RemoveVirtualMachineFromExadbVmClusterResponse response = client.removeVirtualMachineFromExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromVmClusterRequest, RemoveVirtualMachineFromVmClusterResponse> forRemoveVirtualMachineFromVmCluster(RemoveVirtualMachineFromVmClusterRequest request) { return forRemoveVirtualMachineFromVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RemoveVirtualMachineFromVmClusterRequest, RemoveVirtualMachineFromVmClusterResponse> forRemoveVirtualMachineFromVmCluster( RemoveVirtualMachineFromVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RemoveVirtualMachineFromVmClusterResponse call() throws Exception { final RemoveVirtualMachineFromVmClusterResponse response = client.removeVirtualMachineFromVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> forReorderExecutionActions(ReorderExecutionActionsRequest request) { return forReorderExecutionActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReorderExecutionActionsRequest, ReorderExecutionActionsResponse> forReorderExecutionActions( ReorderExecutionActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ReorderExecutionActionsResponse call() throws Exception { final ReorderExecutionActionsResponse response = client.reorderExecutionActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> forReorderScheduledActions(ReorderScheduledActionsRequest request) { return forReorderScheduledActions( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ReorderScheduledActionsRequest, ReorderScheduledActionsResponse> forReorderScheduledActions( ReorderScheduledActionsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ReorderScheduledActionsResponse call() throws Exception { final ReorderScheduledActionsResponse response = client.reorderScheduledActions(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> forResizeVmClusterNetwork(ResizeVmClusterNetworkRequest request) { return forResizeVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ResizeVmClusterNetworkRequest, ResizeVmClusterNetworkResponse> forResizeVmClusterNetwork( ResizeVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ResizeVmClusterNetworkResponse call() throws Exception { final ResizeVmClusterNetworkResponse response = client.resizeVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestartAutonomousContainerDatabaseRequest, RestartAutonomousContainerDatabaseResponse> forRestartAutonomousContainerDatabase( RestartAutonomousContainerDatabaseRequest request) { return forRestartAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestartAutonomousContainerDatabaseRequest, RestartAutonomousContainerDatabaseResponse> forRestartAutonomousContainerDatabase( RestartAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RestartAutonomousContainerDatabaseResponse call() throws Exception { final RestartAutonomousContainerDatabaseResponse response = client.restartAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> forRestartAutonomousDatabase(RestartAutonomousDatabaseRequest request) { return forRestartAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestartAutonomousDatabaseRequest, RestartAutonomousDatabaseResponse> forRestartAutonomousDatabase( RestartAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RestartAutonomousDatabaseResponse call() throws Exception { final RestartAutonomousDatabaseResponse response = client.restartAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> forRestoreAutonomousDatabase(RestoreAutonomousDatabaseRequest request) { return forRestoreAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RestoreAutonomousDatabaseRequest, RestoreAutonomousDatabaseResponse> forRestoreAutonomousDatabase( RestoreAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RestoreAutonomousDatabaseResponse call() throws Exception { final RestoreAutonomousDatabaseResponse response = client.restoreAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRestoreDatabase(RestoreDatabaseRequest request) { return forRestoreDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRestoreDatabase( RestoreDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RestoreDatabaseResponse call() throws Exception { final RestoreDatabaseResponse response = client.restoreDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousContainerDatabaseEncryptionKeyRequest, RotateAutonomousContainerDatabaseEncryptionKeyResponse> forRotateAutonomousContainerDatabaseEncryptionKey( RotateAutonomousContainerDatabaseEncryptionKeyRequest request) { return forRotateAutonomousContainerDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousContainerDatabaseEncryptionKeyRequest, RotateAutonomousContainerDatabaseEncryptionKeyResponse> forRotateAutonomousContainerDatabaseEncryptionKey( RotateAutonomousContainerDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< RotateAutonomousContainerDatabaseEncryptionKeyResponse>() { @Override public RotateAutonomousContainerDatabaseEncryptionKeyResponse call() throws Exception { final RotateAutonomousContainerDatabaseEncryptionKeyResponse response = client.rotateAutonomousContainerDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousDatabaseEncryptionKeyRequest, RotateAutonomousDatabaseEncryptionKeyResponse> forRotateAutonomousDatabaseEncryptionKey( RotateAutonomousDatabaseEncryptionKeyRequest request) { return forRotateAutonomousDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousDatabaseEncryptionKeyRequest, RotateAutonomousDatabaseEncryptionKeyResponse> forRotateAutonomousDatabaseEncryptionKey( RotateAutonomousDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateAutonomousDatabaseEncryptionKeyResponse call() throws Exception { final RotateAutonomousDatabaseEncryptionKeyResponse response = client.rotateAutonomousDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousVmClusterOrdsCertsRequest, RotateAutonomousVmClusterOrdsCertsResponse> forRotateAutonomousVmClusterOrdsCerts( RotateAutonomousVmClusterOrdsCertsRequest request) { return forRotateAutonomousVmClusterOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousVmClusterOrdsCertsRequest, RotateAutonomousVmClusterOrdsCertsResponse> forRotateAutonomousVmClusterOrdsCerts( RotateAutonomousVmClusterOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateAutonomousVmClusterOrdsCertsResponse call() throws Exception { final RotateAutonomousVmClusterOrdsCertsResponse response = client.rotateAutonomousVmClusterOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousVmClusterSslCertsRequest, RotateAutonomousVmClusterSslCertsResponse> forRotateAutonomousVmClusterSslCerts(RotateAutonomousVmClusterSslCertsRequest request) { return forRotateAutonomousVmClusterSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateAutonomousVmClusterSslCertsRequest, RotateAutonomousVmClusterSslCertsResponse> forRotateAutonomousVmClusterSslCerts( RotateAutonomousVmClusterSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateAutonomousVmClusterSslCertsResponse call() throws Exception { final RotateAutonomousVmClusterSslCertsResponse response = client.rotateAutonomousVmClusterSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateCloudAutonomousVmClusterOrdsCertsRequest, RotateCloudAutonomousVmClusterOrdsCertsResponse> forRotateCloudAutonomousVmClusterOrdsCerts( RotateCloudAutonomousVmClusterOrdsCertsRequest request) { return forRotateCloudAutonomousVmClusterOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateCloudAutonomousVmClusterOrdsCertsRequest, RotateCloudAutonomousVmClusterOrdsCertsResponse> forRotateCloudAutonomousVmClusterOrdsCerts( RotateCloudAutonomousVmClusterOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< RotateCloudAutonomousVmClusterOrdsCertsResponse>() { @Override public RotateCloudAutonomousVmClusterOrdsCertsResponse call() throws Exception { final RotateCloudAutonomousVmClusterOrdsCertsResponse response = client.rotateCloudAutonomousVmClusterOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateCloudAutonomousVmClusterSslCertsRequest, RotateCloudAutonomousVmClusterSslCertsResponse> forRotateCloudAutonomousVmClusterSslCerts( RotateCloudAutonomousVmClusterSslCertsRequest request) { return forRotateCloudAutonomousVmClusterSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotateCloudAutonomousVmClusterSslCertsRequest, RotateCloudAutonomousVmClusterSslCertsResponse> forRotateCloudAutonomousVmClusterSslCerts( RotateCloudAutonomousVmClusterSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< RotateCloudAutonomousVmClusterSslCertsResponse>() { @Override public RotateCloudAutonomousVmClusterSslCertsResponse call() throws Exception { final RotateCloudAutonomousVmClusterSslCertsResponse response = client.rotateCloudAutonomousVmClusterSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateOrdsCerts(RotateOrdsCertsRequest request) { return forRotateOrdsCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateOrdsCerts( RotateOrdsCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateOrdsCertsResponse call() throws Exception { final RotateOrdsCertsResponse response = client.rotateOrdsCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotatePluggableDatabaseEncryptionKeyRequest, RotatePluggableDatabaseEncryptionKeyResponse> forRotatePluggableDatabaseEncryptionKey( RotatePluggableDatabaseEncryptionKeyRequest request) { return forRotatePluggableDatabaseEncryptionKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< RotatePluggableDatabaseEncryptionKeyRequest, RotatePluggableDatabaseEncryptionKeyResponse> forRotatePluggableDatabaseEncryptionKey( RotatePluggableDatabaseEncryptionKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotatePluggableDatabaseEncryptionKeyResponse call() throws Exception { final RotatePluggableDatabaseEncryptionKeyResponse response = client.rotatePluggableDatabaseEncryptionKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateSslCerts(RotateSslCertsRequest request) { return forRotateSslCerts( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateSslCerts( RotateSslCertsRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateSslCertsResponse call() throws Exception { final RotateSslCertsResponse response = client.rotateSslCerts(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateVaultKey(RotateVaultKeyRequest request) { return forRotateVaultKey( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forRotateVaultKey( RotateVaultKeyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public RotateVaultKeyResponse call() throws Exception { final RotateVaultKeyResponse response = client.rotateVaultKey(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ScanExternalContainerDatabasePluggableDatabasesRequest, ScanExternalContainerDatabasePluggableDatabasesResponse> forScanExternalContainerDatabasePluggableDatabases( ScanExternalContainerDatabasePluggableDatabasesRequest request) { return forScanExternalContainerDatabasePluggableDatabases( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ScanExternalContainerDatabasePluggableDatabasesRequest, ScanExternalContainerDatabasePluggableDatabasesResponse> forScanExternalContainerDatabasePluggableDatabases( ScanExternalContainerDatabasePluggableDatabasesRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< ScanExternalContainerDatabasePluggableDatabasesResponse>() { @Override public ScanExternalContainerDatabasePluggableDatabasesResponse call() throws Exception { final ScanExternalContainerDatabasePluggableDatabasesResponse response = client.scanExternalContainerDatabasePluggableDatabases(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSetDbKeyVersion(SetDbKeyVersionRequest request) { return forSetDbKeyVersion( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSetDbKeyVersion( SetDbKeyVersionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public SetDbKeyVersionResponse call() throws Exception { final SetDbKeyVersionResponse response = client.setDbKeyVersion(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSetPdbKeyVersion(SetPdbKeyVersionRequest request) { return forSetPdbKeyVersion( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forSetPdbKeyVersion( SetPdbKeyVersionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public SetPdbKeyVersionResponse call() throws Exception { final SetPdbKeyVersionResponse response = client.setPdbKeyVersion(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> forShrinkAutonomousDatabase(ShrinkAutonomousDatabaseRequest request) { return forShrinkAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ShrinkAutonomousDatabaseRequest, ShrinkAutonomousDatabaseResponse> forShrinkAutonomousDatabase( ShrinkAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ShrinkAutonomousDatabaseResponse call() throws Exception { final ShrinkAutonomousDatabaseResponse response = client.shrinkAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> forStartAutonomousDatabase(StartAutonomousDatabaseRequest request) { return forStartAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StartAutonomousDatabaseRequest, StartAutonomousDatabaseResponse> forStartAutonomousDatabase( StartAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public StartAutonomousDatabaseResponse call() throws Exception { final StartAutonomousDatabaseResponse response = client.startAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> forStartPluggableDatabase(StartPluggableDatabaseRequest request) { return forStartPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StartPluggableDatabaseRequest, StartPluggableDatabaseResponse> forStartPluggableDatabase( StartPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public StartPluggableDatabaseResponse call() throws Exception { final StartPluggableDatabaseResponse response = client.startPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> forStopAutonomousDatabase(StopAutonomousDatabaseRequest request) { return forStopAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< StopAutonomousDatabaseRequest, StopAutonomousDatabaseResponse> forStopAutonomousDatabase( StopAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public StopAutonomousDatabaseResponse call() throws Exception { final StopAutonomousDatabaseResponse response = client.stopAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forStopPluggableDatabase(StopPluggableDatabaseRequest request) { return forStopPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forStopPluggableDatabase( StopPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public StopPluggableDatabaseResponse call() throws Exception { final StopPluggableDatabaseResponse response = client.stopPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> forSwitchoverAutonomousContainerDatabaseDataguardAssociation( SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request) { return forSwitchoverAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest, SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse> forSwitchoverAutonomousContainerDatabaseDataguardAssociation( SwitchoverAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse call() throws Exception { final SwitchoverAutonomousContainerDatabaseDataguardAssociationResponse response = client .switchoverAutonomousContainerDatabaseDataguardAssociation( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> forSwitchoverAutonomousDatabase(SwitchoverAutonomousDatabaseRequest request) { return forSwitchoverAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverAutonomousDatabaseRequest, SwitchoverAutonomousDatabaseResponse> forSwitchoverAutonomousDatabase( SwitchoverAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public SwitchoverAutonomousDatabaseResponse call() throws Exception { final SwitchoverAutonomousDatabaseResponse response = client.switchoverAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> forSwitchoverDataGuardAssociation(SwitchoverDataGuardAssociationRequest request) { return forSwitchoverDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< SwitchoverDataGuardAssociationRequest, SwitchoverDataGuardAssociationResponse> forSwitchoverDataGuardAssociation( SwitchoverDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public SwitchoverDataGuardAssociationResponse call() throws Exception { final SwitchoverDataGuardAssociationResponse response = client.switchoverDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< TerminateAutonomousContainerDatabaseRequest, TerminateAutonomousContainerDatabaseResponse> forTerminateAutonomousContainerDatabase( TerminateAutonomousContainerDatabaseRequest request) { return forTerminateAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< TerminateAutonomousContainerDatabaseRequest, TerminateAutonomousContainerDatabaseResponse> forTerminateAutonomousContainerDatabase( TerminateAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public TerminateAutonomousContainerDatabaseResponse call() throws Exception { final TerminateAutonomousContainerDatabaseResponse response = client.terminateAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< TerminateAutonomousExadataInfrastructureRequest, TerminateAutonomousExadataInfrastructureResponse> forTerminateAutonomousExadataInfrastructure( TerminateAutonomousExadataInfrastructureRequest request) { return forTerminateAutonomousExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< TerminateAutonomousExadataInfrastructureRequest, TerminateAutonomousExadataInfrastructureResponse> forTerminateAutonomousExadataInfrastructure( TerminateAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< TerminateAutonomousExadataInfrastructureResponse>() { @Override public TerminateAutonomousExadataInfrastructureResponse call() throws Exception { final TerminateAutonomousExadataInfrastructureResponse response = client.terminateAutonomousExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forTerminateDbSystem(TerminateDbSystemRequest request) { return forTerminateDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forTerminateDbSystem( TerminateDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public TerminateDbSystemResponse call() throws Exception { final TerminateDbSystemResponse response = client.terminateDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousContainerDatabaseRequest, UpdateAutonomousContainerDatabaseResponse> forUpdateAutonomousContainerDatabase(UpdateAutonomousContainerDatabaseRequest request) { return forUpdateAutonomousContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousContainerDatabaseRequest, UpdateAutonomousContainerDatabaseResponse> forUpdateAutonomousContainerDatabase( UpdateAutonomousContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousContainerDatabaseResponse call() throws Exception { final UpdateAutonomousContainerDatabaseResponse response = client.updateAutonomousContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousContainerDatabaseDataguardAssociationRequest, UpdateAutonomousContainerDatabaseDataguardAssociationResponse> forUpdateAutonomousContainerDatabaseDataguardAssociation( UpdateAutonomousContainerDatabaseDataguardAssociationRequest request) { return forUpdateAutonomousContainerDatabaseDataguardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousContainerDatabaseDataguardAssociationRequest, UpdateAutonomousContainerDatabaseDataguardAssociationResponse> forUpdateAutonomousContainerDatabaseDataguardAssociation( UpdateAutonomousContainerDatabaseDataguardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< UpdateAutonomousContainerDatabaseDataguardAssociationResponse>() { @Override public UpdateAutonomousContainerDatabaseDataguardAssociationResponse call() throws Exception { final UpdateAutonomousContainerDatabaseDataguardAssociationResponse response = client .updateAutonomousContainerDatabaseDataguardAssociation( request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> forUpdateAutonomousDatabase(UpdateAutonomousDatabaseRequest request) { return forUpdateAutonomousDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseRequest, UpdateAutonomousDatabaseResponse> forUpdateAutonomousDatabase( UpdateAutonomousDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousDatabaseResponse call() throws Exception { final UpdateAutonomousDatabaseResponse response = client.updateAutonomousDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> forUpdateAutonomousDatabaseBackup(UpdateAutonomousDatabaseBackupRequest request) { return forUpdateAutonomousDatabaseBackup( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseBackupRequest, UpdateAutonomousDatabaseBackupResponse> forUpdateAutonomousDatabaseBackup( UpdateAutonomousDatabaseBackupRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousDatabaseBackupResponse call() throws Exception { final UpdateAutonomousDatabaseBackupResponse response = client.updateAutonomousDatabaseBackup(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseRegionalWalletRequest, UpdateAutonomousDatabaseRegionalWalletResponse> forUpdateAutonomousDatabaseRegionalWallet( UpdateAutonomousDatabaseRegionalWalletRequest request) { return forUpdateAutonomousDatabaseRegionalWallet( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseRegionalWalletRequest, UpdateAutonomousDatabaseRegionalWalletResponse> forUpdateAutonomousDatabaseRegionalWallet( UpdateAutonomousDatabaseRegionalWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable< UpdateAutonomousDatabaseRegionalWalletResponse>() { @Override public UpdateAutonomousDatabaseRegionalWalletResponse call() throws Exception { final UpdateAutonomousDatabaseRegionalWalletResponse response = client.updateAutonomousDatabaseRegionalWallet(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> forUpdateAutonomousDatabaseWallet(UpdateAutonomousDatabaseWalletRequest request) { return forUpdateAutonomousDatabaseWallet( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousDatabaseWalletRequest, UpdateAutonomousDatabaseWalletResponse> forUpdateAutonomousDatabaseWallet( UpdateAutonomousDatabaseWalletRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousDatabaseWalletResponse call() throws Exception { final UpdateAutonomousDatabaseWalletResponse response = client.updateAutonomousDatabaseWallet(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousExadataInfrastructureRequest, UpdateAutonomousExadataInfrastructureResponse> forUpdateAutonomousExadataInfrastructure( UpdateAutonomousExadataInfrastructureRequest request) { return forUpdateAutonomousExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousExadataInfrastructureRequest, UpdateAutonomousExadataInfrastructureResponse> forUpdateAutonomousExadataInfrastructure( UpdateAutonomousExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousExadataInfrastructureResponse call() throws Exception { final UpdateAutonomousExadataInfrastructureResponse response = client.updateAutonomousExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> forUpdateAutonomousVmCluster(UpdateAutonomousVmClusterRequest request) { return forUpdateAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateAutonomousVmClusterRequest, UpdateAutonomousVmClusterResponse> forUpdateAutonomousVmCluster( UpdateAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateAutonomousVmClusterResponse call() throws Exception { final UpdateAutonomousVmClusterResponse response = client.updateAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> forUpdateCloudAutonomousVmCluster(UpdateCloudAutonomousVmClusterRequest request) { return forUpdateCloudAutonomousVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudAutonomousVmClusterRequest, UpdateCloudAutonomousVmClusterResponse> forUpdateCloudAutonomousVmCluster( UpdateCloudAutonomousVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateCloudAutonomousVmClusterResponse call() throws Exception { final UpdateCloudAutonomousVmClusterResponse response = client.updateCloudAutonomousVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudExadataInfrastructureRequest, UpdateCloudExadataInfrastructureResponse> forUpdateCloudExadataInfrastructure(UpdateCloudExadataInfrastructureRequest request) { return forUpdateCloudExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudExadataInfrastructureRequest, UpdateCloudExadataInfrastructureResponse> forUpdateCloudExadataInfrastructure( UpdateCloudExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateCloudExadataInfrastructureResponse call() throws Exception { final UpdateCloudExadataInfrastructureResponse response = client.updateCloudExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateCloudVmCluster(UpdateCloudVmClusterRequest request) { return forUpdateCloudVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateCloudVmCluster( UpdateCloudVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateCloudVmClusterResponse call() throws Exception { final UpdateCloudVmClusterResponse response = client.updateCloudVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> forUpdateCloudVmClusterIormConfig(UpdateCloudVmClusterIormConfigRequest request) { return forUpdateCloudVmClusterIormConfig( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateCloudVmClusterIormConfigRequest, UpdateCloudVmClusterIormConfigResponse> forUpdateCloudVmClusterIormConfig( UpdateCloudVmClusterIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateCloudVmClusterIormConfigResponse call() throws Exception { final UpdateCloudVmClusterIormConfigResponse response = client.updateCloudVmClusterIormConfig(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> forUpdateConsoleConnection(UpdateConsoleConnectionRequest request) { return forUpdateConsoleConnection( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateConsoleConnectionRequest, UpdateConsoleConnectionResponse> forUpdateConsoleConnection( UpdateConsoleConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateConsoleConnectionResponse call() throws Exception { final UpdateConsoleConnectionResponse response = client.updateConsoleConnection(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateConsoleHistory(UpdateConsoleHistoryRequest request) { return forUpdateConsoleHistory( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateConsoleHistory( UpdateConsoleHistoryRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateConsoleHistoryResponse call() throws Exception { final UpdateConsoleHistoryResponse response = client.updateConsoleHistory(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> forUpdateDataGuardAssociation(UpdateDataGuardAssociationRequest request) { return forUpdateDataGuardAssociation( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateDataGuardAssociationRequest, UpdateDataGuardAssociationResponse> forUpdateDataGuardAssociation( UpdateDataGuardAssociationRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateDataGuardAssociationResponse call() throws Exception { final UpdateDataGuardAssociationResponse response = client.updateDataGuardAssociation(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDatabase(UpdateDatabaseRequest request) { return forUpdateDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDatabase( UpdateDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateDatabaseResponse call() throws Exception { final UpdateDatabaseResponse response = client.updateDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbHome( UpdateDbHomeRequest request) { return forUpdateDbHome( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbHome( UpdateDbHomeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateDbHomeResponse call() throws Exception { final UpdateDbHomeResponse response = client.updateDbHome(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbNode( UpdateDbNodeRequest request) { return forUpdateDbNode( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbNode( UpdateDbNodeRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateDbNodeResponse call() throws Exception { final UpdateDbNodeResponse response = client.updateDbNode(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbSystem(UpdateDbSystemRequest request) { return forUpdateDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateDbSystem( UpdateDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateDbSystemResponse call() throws Exception { final UpdateDbSystemResponse response = client.updateDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> forUpdateExadataInfrastructure(UpdateExadataInfrastructureRequest request) { return forUpdateExadataInfrastructure( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExadataInfrastructureRequest, UpdateExadataInfrastructureResponse> forUpdateExadataInfrastructure( UpdateExadataInfrastructureRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExadataInfrastructureResponse call() throws Exception { final UpdateExadataInfrastructureResponse response = client.updateExadataInfrastructure(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> forUpdateExadataIormConfig(UpdateExadataIormConfigRequest request) { return forUpdateExadataIormConfig( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExadataIormConfigRequest, UpdateExadataIormConfigResponse> forUpdateExadataIormConfig( UpdateExadataIormConfigRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExadataIormConfigResponse call() throws Exception { final UpdateExadataIormConfigResponse response = client.updateExadataIormConfig(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExadbVmCluster(UpdateExadbVmClusterRequest request) { return forUpdateExadbVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExadbVmCluster( UpdateExadbVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExadbVmClusterResponse call() throws Exception { final UpdateExadbVmClusterResponse response = client.updateExadbVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> forUpdateExascaleDbStorageVault(UpdateExascaleDbStorageVaultRequest request) { return forUpdateExascaleDbStorageVault( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExascaleDbStorageVaultRequest, UpdateExascaleDbStorageVaultResponse> forUpdateExascaleDbStorageVault( UpdateExascaleDbStorageVaultRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExascaleDbStorageVaultResponse call() throws Exception { final UpdateExascaleDbStorageVaultResponse response = client.updateExascaleDbStorageVault(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExecutionAction(UpdateExecutionActionRequest request) { return forUpdateExecutionAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExecutionAction( UpdateExecutionActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExecutionActionResponse call() throws Exception { final UpdateExecutionActionResponse response = client.updateExecutionAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExecutionWindow(UpdateExecutionWindowRequest request) { return forUpdateExecutionWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateExecutionWindow( UpdateExecutionWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExecutionWindowResponse call() throws Exception { final UpdateExecutionWindowResponse response = client.updateExecutionWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> forUpdateExternalContainerDatabase(UpdateExternalContainerDatabaseRequest request) { return forUpdateExternalContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalContainerDatabaseRequest, UpdateExternalContainerDatabaseResponse> forUpdateExternalContainerDatabase( UpdateExternalContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExternalContainerDatabaseResponse call() throws Exception { final UpdateExternalContainerDatabaseResponse response = client.updateExternalContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> forUpdateExternalDatabaseConnector(UpdateExternalDatabaseConnectorRequest request) { return forUpdateExternalDatabaseConnector( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalDatabaseConnectorRequest, UpdateExternalDatabaseConnectorResponse> forUpdateExternalDatabaseConnector( UpdateExternalDatabaseConnectorRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExternalDatabaseConnectorResponse call() throws Exception { final UpdateExternalDatabaseConnectorResponse response = client.updateExternalDatabaseConnector(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalNonContainerDatabaseRequest, UpdateExternalNonContainerDatabaseResponse> forUpdateExternalNonContainerDatabase( UpdateExternalNonContainerDatabaseRequest request) { return forUpdateExternalNonContainerDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalNonContainerDatabaseRequest, UpdateExternalNonContainerDatabaseResponse> forUpdateExternalNonContainerDatabase( UpdateExternalNonContainerDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExternalNonContainerDatabaseResponse call() throws Exception { final UpdateExternalNonContainerDatabaseResponse response = client.updateExternalNonContainerDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> forUpdateExternalPluggableDatabase(UpdateExternalPluggableDatabaseRequest request) { return forUpdateExternalPluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateExternalPluggableDatabaseRequest, UpdateExternalPluggableDatabaseResponse> forUpdateExternalPluggableDatabase( UpdateExternalPluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateExternalPluggableDatabaseResponse call() throws Exception { final UpdateExternalPluggableDatabaseResponse response = client.updateExternalPluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> forUpdatePluggableDatabase(UpdatePluggableDatabaseRequest request) { return forUpdatePluggableDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdatePluggableDatabaseRequest, UpdatePluggableDatabaseResponse> forUpdatePluggableDatabase( UpdatePluggableDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdatePluggableDatabaseResponse call() throws Exception { final UpdatePluggableDatabaseResponse response = client.updatePluggableDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateScheduledAction(UpdateScheduledActionRequest request) { return forUpdateScheduledAction( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateScheduledAction( UpdateScheduledActionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateScheduledActionResponse call() throws Exception { final UpdateScheduledActionResponse response = client.updateScheduledAction(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> forUpdateSchedulingPolicy(UpdateSchedulingPolicyRequest request) { return forUpdateSchedulingPolicy( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateSchedulingPolicyRequest, UpdateSchedulingPolicyResponse> forUpdateSchedulingPolicy( UpdateSchedulingPolicyRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateSchedulingPolicyResponse call() throws Exception { final UpdateSchedulingPolicyResponse response = client.updateSchedulingPolicy(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> forUpdateSchedulingWindow(UpdateSchedulingWindowRequest request) { return forUpdateSchedulingWindow( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateSchedulingWindowRequest, UpdateSchedulingWindowResponse> forUpdateSchedulingWindow( UpdateSchedulingWindowRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateSchedulingWindowResponse call() throws Exception { final UpdateSchedulingWindowResponse response = client.updateSchedulingWindow(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateVmCluster(UpdateVmClusterRequest request) { return forUpdateVmCluster( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpdateVmCluster( UpdateVmClusterRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateVmClusterResponse call() throws Exception { final UpdateVmClusterResponse response = client.updateVmCluster(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> forUpdateVmClusterNetwork(UpdateVmClusterNetworkRequest request) { return forUpdateVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< UpdateVmClusterNetworkRequest, UpdateVmClusterNetworkResponse> forUpdateVmClusterNetwork( UpdateVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpdateVmClusterNetworkResponse call() throws Exception { final UpdateVmClusterNetworkResponse response = client.updateVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpgradeDatabase(UpgradeDatabaseRequest request) { return forUpgradeDatabase( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpgradeDatabase( UpgradeDatabaseRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpgradeDatabaseResponse call() throws Exception { final UpgradeDatabaseResponse response = client.upgradeDatabase(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpgradeDbSystem(UpgradeDbSystemRequest request) { return forUpgradeDbSystem( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forUpgradeDbSystem( UpgradeDbSystemRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public UpgradeDbSystemResponse call() throws Exception { final UpgradeDbSystemResponse response = client.upgradeDbSystem(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> forValidateVmClusterNetwork(ValidateVmClusterNetworkRequest request) { return forValidateVmClusterNetwork( request, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_TERMINATION_STRATEGY, com.oracle.bmc.waiter.Waiters.DEFAULT_POLLING_DELAY_STRATEGY); } /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. * * @param request the request to send * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @return a new {@link com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter< ValidateVmClusterNetworkRequest, ValidateVmClusterNetworkResponse> forValidateVmClusterNetwork( ValidateVmClusterNetworkRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { if (workRequestClient == null) { throw new IllegalStateException( "A WorkRequestClient must be supplied to this waiter for this operation"); } return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( executorService, new java.util.concurrent.Callable() { @Override public ValidateVmClusterNetworkResponse call() throws Exception { final ValidateVmClusterNetworkResponse response = client.validateVmClusterNetwork(request); if (response.getOpcWorkRequestId() != null) { final com.oracle.bmc.workrequests.requests.GetWorkRequestRequest getWorkRequestRequest = com.oracle.bmc.workrequests.requests .GetWorkRequestRequest.builder() .workRequestId(response.getOpcWorkRequestId()) .build(); workRequestClient .getWaiters() .forWorkRequest( getWorkRequestRequest, terminationStrategy, delayStrategy) .execute(); } return response; } }, request); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy