com.oracle.bmc.database.DatabaseWaiters Maven / Gradle / Ivy
Show all versions of oci-java-sdk-database Show documentation
/**
* 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