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

com.oracle.bmc.recovery.DatabaseRecoveryAsyncClient Maven / Gradle / Ivy

Go to download

This project contains the SDK distribution used for Oracle Cloud Infrastructure, and all the dependencies that can be shaded. It also has Maven dependencies that cannot be shaded. Therefore, use this module to depend on the shaded distribution via Maven -- it will shade everything that can be shaded, and automatically pull in the other dependencies.

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

import com.oracle.bmc.util.internal.Validate;
import com.oracle.bmc.recovery.requests.*;
import com.oracle.bmc.recovery.responses.*;

import java.util.Objects;

/**
 * Async client implementation for DatabaseRecovery service. 
* There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response * to the call is an {@link java.io.InputStream}, like getObject Api in object storage service, * developers need to process the stream in AsyncHandler, and not anywhere else, because the stream * will be closed right after the AsyncHandler is invoked.
* 2. Use Java Future: using Java Future, developers need to close the stream after they are done * with the Java Future.
* Accessing the result should be done in a mutually exclusive manner, either through the Future or * the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the * AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine * whether or not the request was completed via Future.isDone/isCancelled.
* Please refer to * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") public class DatabaseRecoveryAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements DatabaseRecoveryAsync { /** Service instance for DatabaseRecovery. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() .serviceName("DATABASERECOVERY") .serviceEndpointPrefix("") .serviceEndpointTemplate("https://recovery.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(DatabaseRecoveryAsyncClient.class); DatabaseRecoveryAsyncClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder, authenticationDetailsProvider, true); } DatabaseRecoveryAsyncClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, boolean isStreamWarningEnabled) { super(builder, authenticationDetailsProvider); if (isStreamWarningEnabled && com.oracle.bmc.util.StreamUtils.isExtraStreamLogsEnabled()) { LOG.warn( com.oracle.bmc.util.StreamUtils.getStreamWarningMessage( "DatabaseRecoveryAsyncClient", "fetchProtectedDatabaseConfiguration")); } } /** * Create a builder for this client. * * @return builder */ public static Builder builder() { return new Builder(SERVICE); } /** * Builder class for this client. The "authenticationDetailsProvider" is required and must be * passed to the {@link #build(AbstractAuthenticationDetailsProvider)} method. */ public static class Builder extends com.oracle.bmc.common.RegionalClientBuilder< Builder, DatabaseRecoveryAsyncClient> { private boolean isStreamWarningEnabled = true; private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "recovery"; com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); requestSignerFactory = new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } /** * Enable/disable the stream warnings for the client * * @param isStreamWarningEnabled executorService * @return this builder */ public Builder isStreamWarningEnabled(boolean isStreamWarningEnabled) { this.isStreamWarningEnabled = isStreamWarningEnabled; return this; } /** * Build the client. * * @param authenticationDetailsProvider authentication details provider * @return the client */ public DatabaseRecoveryAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { return new DatabaseRecoveryAsyncClient( this, authenticationDetailsProvider, isStreamWarningEnabled); } } @Override public void setRegion(com.oracle.bmc.Region region) { super.setRegion(region); } @Override public void setRegion(String regionId) { super.setRegion(regionId); } @Override public java.util.concurrent.Future cancelProtectedDatabaseDeletion( CancelProtectedDatabaseDeletionRequest request, final com.oracle.bmc.responses.AsyncHandler< CancelProtectedDatabaseDeletionRequest, CancelProtectedDatabaseDeletionResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); return clientCall(request, CancelProtectedDatabaseDeletionResponse::builder) .logger(LOG, "cancelProtectedDatabaseDeletion") .serviceDetails( "DatabaseRecovery", "CancelProtectedDatabaseDeletion", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/CancelProtectedDatabaseDeletion") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CancelProtectedDatabaseDeletionRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendPathParam("actions") .appendPathParam("cancelDeletion") .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-request-id", CancelProtectedDatabaseDeletionResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future changeProtectedDatabaseCompartment( ChangeProtectedDatabaseCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< ChangeProtectedDatabaseCompartmentRequest, ChangeProtectedDatabaseCompartmentResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); Objects.requireNonNull( request.getChangeProtectedDatabaseCompartmentDetails(), "changeProtectedDatabaseCompartmentDetails is required"); return clientCall(request, ChangeProtectedDatabaseCompartmentResponse::builder) .logger(LOG, "changeProtectedDatabaseCompartment") .serviceDetails( "DatabaseRecovery", "ChangeProtectedDatabaseCompartment", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ChangeProtectedDatabaseCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeProtectedDatabaseCompartmentRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", ChangeProtectedDatabaseCompartmentResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", ChangeProtectedDatabaseCompartmentResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future changeProtectedDatabaseSubscription( ChangeProtectedDatabaseSubscriptionRequest request, final com.oracle.bmc.responses.AsyncHandler< ChangeProtectedDatabaseSubscriptionRequest, ChangeProtectedDatabaseSubscriptionResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); Objects.requireNonNull( request.getChangeProtectedDatabaseSubscriptionDetails(), "changeProtectedDatabaseSubscriptionDetails is required"); return clientCall(request, ChangeProtectedDatabaseSubscriptionResponse::builder) .logger(LOG, "changeProtectedDatabaseSubscription") .serviceDetails( "DatabaseRecovery", "ChangeProtectedDatabaseSubscription", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ChangeProtectedDatabaseSubscription") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeProtectedDatabaseSubscriptionRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendPathParam("actions") .appendPathParam("changeSubscription") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", ChangeProtectedDatabaseSubscriptionResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", ChangeProtectedDatabaseSubscriptionResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future changeProtectionPolicyCompartment( ChangeProtectionPolicyCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< ChangeProtectionPolicyCompartmentRequest, ChangeProtectionPolicyCompartmentResponse> handler) { Validate.notBlank(request.getProtectionPolicyId(), "protectionPolicyId must not be blank"); Objects.requireNonNull( request.getChangeProtectionPolicyCompartmentDetails(), "changeProtectionPolicyCompartmentDetails is required"); return clientCall(request, ChangeProtectionPolicyCompartmentResponse::builder) .logger(LOG, "changeProtectionPolicyCompartment") .serviceDetails( "DatabaseRecovery", "ChangeProtectionPolicyCompartment", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicy/ChangeProtectionPolicyCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeProtectionPolicyCompartmentRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .appendPathParam(request.getProtectionPolicyId()) .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", ChangeProtectionPolicyCompartmentResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", ChangeProtectionPolicyCompartmentResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future changeRecoveryServiceSubnetCompartment( ChangeRecoveryServiceSubnetCompartmentRequest request, final com.oracle.bmc.responses.AsyncHandler< ChangeRecoveryServiceSubnetCompartmentRequest, ChangeRecoveryServiceSubnetCompartmentResponse> handler) { Validate.notBlank( request.getRecoveryServiceSubnetId(), "recoveryServiceSubnetId must not be blank"); Objects.requireNonNull( request.getChangeRecoveryServiceSubnetCompartmentDetails(), "changeRecoveryServiceSubnetCompartmentDetails is required"); return clientCall(request, ChangeRecoveryServiceSubnetCompartmentResponse::builder) .logger(LOG, "changeRecoveryServiceSubnetCompartment") .serviceDetails( "DatabaseRecovery", "ChangeRecoveryServiceSubnetCompartment", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnet/ChangeRecoveryServiceSubnetCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeRecoveryServiceSubnetCompartmentRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .appendPathParam(request.getRecoveryServiceSubnetId()) .appendPathParam("actions") .appendPathParam("changeCompartment") .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", ChangeRecoveryServiceSubnetCompartmentResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", ChangeRecoveryServiceSubnetCompartmentResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future createProtectedDatabase( CreateProtectedDatabaseRequest request, final com.oracle.bmc.responses.AsyncHandler< CreateProtectedDatabaseRequest, CreateProtectedDatabaseResponse> handler) { Objects.requireNonNull( request.getCreateProtectedDatabaseDetails(), "createProtectedDatabaseDetails is required"); return clientCall(request, CreateProtectedDatabaseResponse::builder) .logger(LOG, "createProtectedDatabase") .serviceDetails( "DatabaseRecovery", "CreateProtectedDatabase", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/CreateProtectedDatabase") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateProtectedDatabaseRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-dry-run", request.getOpcDryRun()) .hasBody() .handleBody( com.oracle.bmc.recovery.model.ProtectedDatabase.class, CreateProtectedDatabaseResponse.Builder::protectedDatabase) .handleResponseHeaderString( "location", CreateProtectedDatabaseResponse.Builder::location) .handleResponseHeaderString("etag", CreateProtectedDatabaseResponse.Builder::etag) .handleResponseHeaderString( "opc-work-request-id", CreateProtectedDatabaseResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", CreateProtectedDatabaseResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future createProtectionPolicy( CreateProtectionPolicyRequest request, final com.oracle.bmc.responses.AsyncHandler< CreateProtectionPolicyRequest, CreateProtectionPolicyResponse> handler) { Objects.requireNonNull( request.getCreateProtectionPolicyDetails(), "createProtectionPolicyDetails is required"); return clientCall(request, CreateProtectionPolicyResponse::builder) .logger(LOG, "createProtectionPolicy") .serviceDetails( "DatabaseRecovery", "CreateProtectionPolicy", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicy/CreateProtectionPolicy") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateProtectionPolicyRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleBody( com.oracle.bmc.recovery.model.ProtectionPolicy.class, CreateProtectionPolicyResponse.Builder::protectionPolicy) .handleResponseHeaderString( "location", CreateProtectionPolicyResponse.Builder::location) .handleResponseHeaderString("etag", CreateProtectionPolicyResponse.Builder::etag) .handleResponseHeaderString( "opc-work-request-id", CreateProtectionPolicyResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", CreateProtectionPolicyResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future createRecoveryServiceSubnet( CreateRecoveryServiceSubnetRequest request, final com.oracle.bmc.responses.AsyncHandler< CreateRecoveryServiceSubnetRequest, CreateRecoveryServiceSubnetResponse> handler) { Objects.requireNonNull( request.getCreateRecoveryServiceSubnetDetails(), "createRecoveryServiceSubnetDetails is required"); return clientCall(request, CreateRecoveryServiceSubnetResponse::builder) .logger(LOG, "createRecoveryServiceSubnet") .serviceDetails( "DatabaseRecovery", "CreateRecoveryServiceSubnet", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnet/CreateRecoveryServiceSubnet") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateRecoveryServiceSubnetRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleBody( com.oracle.bmc.recovery.model.RecoveryServiceSubnet.class, CreateRecoveryServiceSubnetResponse.Builder::recoveryServiceSubnet) .handleResponseHeaderString( "location", CreateRecoveryServiceSubnetResponse.Builder::location) .handleResponseHeaderString( "etag", CreateRecoveryServiceSubnetResponse.Builder::etag) .handleResponseHeaderString( "opc-work-request-id", CreateRecoveryServiceSubnetResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", CreateRecoveryServiceSubnetResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future deleteProtectedDatabase( DeleteProtectedDatabaseRequest request, final com.oracle.bmc.responses.AsyncHandler< DeleteProtectedDatabaseRequest, DeleteProtectedDatabaseResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); return clientCall(request, DeleteProtectedDatabaseResponse::builder) .logger(LOG, "deleteProtectedDatabase") .serviceDetails( "DatabaseRecovery", "DeleteProtectedDatabase", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/DeleteProtectedDatabase") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteProtectedDatabaseRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendEnumQueryParam("deletionSchedule", request.getDeletionSchedule()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", DeleteProtectedDatabaseResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", DeleteProtectedDatabaseResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future deleteProtectionPolicy( DeleteProtectionPolicyRequest request, final com.oracle.bmc.responses.AsyncHandler< DeleteProtectionPolicyRequest, DeleteProtectionPolicyResponse> handler) { Validate.notBlank(request.getProtectionPolicyId(), "protectionPolicyId must not be blank"); return clientCall(request, DeleteProtectionPolicyResponse::builder) .logger(LOG, "deleteProtectionPolicy") .serviceDetails( "DatabaseRecovery", "DeleteProtectionPolicy", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicy/DeleteProtectionPolicy") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteProtectionPolicyRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .appendPathParam(request.getProtectionPolicyId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", DeleteProtectionPolicyResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", DeleteProtectionPolicyResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future deleteRecoveryServiceSubnet( DeleteRecoveryServiceSubnetRequest request, final com.oracle.bmc.responses.AsyncHandler< DeleteRecoveryServiceSubnetRequest, DeleteRecoveryServiceSubnetResponse> handler) { Validate.notBlank( request.getRecoveryServiceSubnetId(), "recoveryServiceSubnetId must not be blank"); return clientCall(request, DeleteRecoveryServiceSubnetResponse::builder) .logger(LOG, "deleteRecoveryServiceSubnet") .serviceDetails( "DatabaseRecovery", "DeleteRecoveryServiceSubnet", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnet/DeleteRecoveryServiceSubnet") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteRecoveryServiceSubnetRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .appendPathParam(request.getRecoveryServiceSubnetId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-work-request-id", DeleteRecoveryServiceSubnetResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", DeleteRecoveryServiceSubnetResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future fetchProtectedDatabaseConfiguration( FetchProtectedDatabaseConfigurationRequest request, final com.oracle.bmc.responses.AsyncHandler< FetchProtectedDatabaseConfigurationRequest, FetchProtectedDatabaseConfigurationResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); return clientCall(request, FetchProtectedDatabaseConfigurationResponse::builder) .logger(LOG, "fetchProtectedDatabaseConfiguration") .serviceDetails( "DatabaseRecovery", "FetchProtectedDatabaseConfiguration", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/FetchProtectedDatabaseConfiguration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(FetchProtectedDatabaseConfigurationRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendPathParam("actions") .appendPathParam("getConfiguration") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() .handleBody( java.io.InputStream.class, FetchProtectedDatabaseConfigurationResponse.Builder::inputStream) .handleResponseHeaderString( "etag", FetchProtectedDatabaseConfigurationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", FetchProtectedDatabaseConfigurationResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-filename", FetchProtectedDatabaseConfigurationResponse.Builder::opcFilename) .handleResponseHeaderString( "opc-checksum", FetchProtectedDatabaseConfigurationResponse.Builder::opcChecksum) .callAsync(handler); } @Override public java.util.concurrent.Future getProtectedDatabase( GetProtectedDatabaseRequest request, final com.oracle.bmc.responses.AsyncHandler< GetProtectedDatabaseRequest, GetProtectedDatabaseResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); return clientCall(request, GetProtectedDatabaseResponse::builder) .logger(LOG, "getProtectedDatabase") .serviceDetails( "DatabaseRecovery", "GetProtectedDatabase", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/GetProtectedDatabase") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetProtectedDatabaseRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.ProtectedDatabase.class, GetProtectedDatabaseResponse.Builder::protectedDatabase) .handleResponseHeaderString("etag", GetProtectedDatabaseResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetProtectedDatabaseResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getProtectionPolicy( GetProtectionPolicyRequest request, final com.oracle.bmc.responses.AsyncHandler< GetProtectionPolicyRequest, GetProtectionPolicyResponse> handler) { Validate.notBlank(request.getProtectionPolicyId(), "protectionPolicyId must not be blank"); return clientCall(request, GetProtectionPolicyResponse::builder) .logger(LOG, "getProtectionPolicy") .serviceDetails( "DatabaseRecovery", "GetProtectionPolicy", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicy/GetProtectionPolicy") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetProtectionPolicyRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .appendPathParam(request.getProtectionPolicyId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.ProtectionPolicy.class, GetProtectionPolicyResponse.Builder::protectionPolicy) .handleResponseHeaderString("etag", GetProtectionPolicyResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetProtectionPolicyResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getRecoveryServiceSubnet( GetRecoveryServiceSubnetRequest request, final com.oracle.bmc.responses.AsyncHandler< GetRecoveryServiceSubnetRequest, GetRecoveryServiceSubnetResponse> handler) { Validate.notBlank( request.getRecoveryServiceSubnetId(), "recoveryServiceSubnetId must not be blank"); return clientCall(request, GetRecoveryServiceSubnetResponse::builder) .logger(LOG, "getRecoveryServiceSubnet") .serviceDetails( "DatabaseRecovery", "GetRecoveryServiceSubnet", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnet/GetRecoveryServiceSubnet") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetRecoveryServiceSubnetRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .appendPathParam(request.getRecoveryServiceSubnetId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.RecoveryServiceSubnet.class, GetRecoveryServiceSubnetResponse.Builder::recoveryServiceSubnet) .handleResponseHeaderString("etag", GetRecoveryServiceSubnetResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetRecoveryServiceSubnetResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getWorkRequest( GetWorkRequestRequest request, final com.oracle.bmc.responses.AsyncHandler< GetWorkRequestRequest, GetWorkRequestResponse> handler) { Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); return clientCall(request, GetWorkRequestResponse::builder) .logger(LOG, "getWorkRequest") .serviceDetails( "DatabaseRecovery", "GetWorkRequest", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20210216") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.WorkRequest.class, GetWorkRequestResponse.Builder::workRequest) .handleResponseHeaderString( "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) .handleResponseHeaderInteger( "retry-after", GetWorkRequestResponse.Builder::retryAfter) .callAsync(handler); } @Override public java.util.concurrent.Future listProtectedDatabases( ListProtectedDatabasesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListProtectedDatabasesRequest, ListProtectedDatabasesResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectedDatabasesResponse::builder) .logger(LOG, "listProtectedDatabases") .serviceDetails( "DatabaseRecovery", "ListProtectedDatabases", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabaseCollection/ListProtectedDatabases") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListProtectedDatabasesRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("id", request.getId()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendQueryParam("recoveryServiceSubnetId", request.getRecoveryServiceSubnetId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.ProtectedDatabaseCollection.class, ListProtectedDatabasesResponse.Builder::protectedDatabaseCollection) .handleResponseHeaderString( "opc-request-id", ListProtectedDatabasesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProtectedDatabasesResponse.Builder::opcNextPage) .callAsync(handler); } @Override public java.util.concurrent.Future listProtectionPolicies( ListProtectionPoliciesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListProtectionPoliciesRequest, ListProtectionPoliciesResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProtectionPoliciesResponse::builder) .logger(LOG, "listProtectionPolicies") .serviceDetails( "DatabaseRecovery", "ListProtectionPolicies", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicyCollection/ListProtectionPolicies") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListProtectionPoliciesRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("protectionPolicyId", request.getProtectionPolicyId()) .appendEnumQueryParam("owner", request.getOwner()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.ProtectionPolicyCollection.class, ListProtectionPoliciesResponse.Builder::protectionPolicyCollection) .handleResponseHeaderString( "opc-request-id", ListProtectionPoliciesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProtectionPoliciesResponse.Builder::opcNextPage) .callAsync(handler); } @Override public java.util.concurrent.Future listRecoveryServiceSubnets( ListRecoveryServiceSubnetsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListRecoveryServiceSubnetsRequest, ListRecoveryServiceSubnetsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListRecoveryServiceSubnetsResponse::builder) .logger(LOG, "listRecoveryServiceSubnets") .serviceDetails( "DatabaseRecovery", "ListRecoveryServiceSubnets", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnetCollection/ListRecoveryServiceSubnets") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListRecoveryServiceSubnetsRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("id", request.getId()) .appendQueryParam("vcnId", request.getVcnId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.RecoveryServiceSubnetCollection.class, ListRecoveryServiceSubnetsResponse.Builder::recoveryServiceSubnetCollection) .handleResponseHeaderString( "opc-request-id", ListRecoveryServiceSubnetsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListRecoveryServiceSubnetsResponse.Builder::opcNextPage) .callAsync(handler); } @Override public java.util.concurrent.Future listWorkRequestErrors( ListWorkRequestErrorsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListWorkRequestErrorsRequest, ListWorkRequestErrorsResponse> handler) { Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); return clientCall(request, ListWorkRequestErrorsResponse::builder) .logger(LOG, "listWorkRequestErrors") .serviceDetails( "DatabaseRecovery", "ListWorkRequestErrors", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/WorkRequestErrorCollection/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20210216") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.WorkRequestErrorCollection.class, ListWorkRequestErrorsResponse.Builder::workRequestErrorCollection) .handleResponseHeaderString( "opc-next-page", ListWorkRequestErrorsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestErrorsResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future listWorkRequestLogs( ListWorkRequestLogsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListWorkRequestLogsRequest, ListWorkRequestLogsResponse> handler) { Validate.notBlank(request.getWorkRequestId(), "workRequestId must not be blank"); return clientCall(request, ListWorkRequestLogsResponse::builder) .logger(LOG, "listWorkRequestLogs") .serviceDetails( "DatabaseRecovery", "ListWorkRequestLogs", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/WorkRequestLogEntryCollection/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20210216") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.WorkRequestLogEntryCollection.class, ListWorkRequestLogsResponse.Builder::workRequestLogEntryCollection) .handleResponseHeaderString( "opc-next-page", ListWorkRequestLogsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-request-id", ListWorkRequestLogsResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future listWorkRequests( ListWorkRequestsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListWorkRequestsRequest, ListWorkRequestsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListWorkRequestsResponse::builder) .logger(LOG, "listWorkRequests") .serviceDetails( "DatabaseRecovery", "ListWorkRequests", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/WorkRequestSummaryCollection/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20210216") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("workRequestId", request.getWorkRequestId()) .appendEnumQueryParam("status", request.getStatus()) .appendQueryParam("resourceId", request.getResourceId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.recovery.model.WorkRequestSummaryCollection.class, ListWorkRequestsResponse.Builder::workRequestSummaryCollection) .handleResponseHeaderString( "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) .callAsync(handler); } @Override public java.util.concurrent.Future scheduleProtectedDatabaseDeletion( ScheduleProtectedDatabaseDeletionRequest request, final com.oracle.bmc.responses.AsyncHandler< ScheduleProtectedDatabaseDeletionRequest, ScheduleProtectedDatabaseDeletionResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); return clientCall(request, ScheduleProtectedDatabaseDeletionResponse::builder) .logger(LOG, "scheduleProtectedDatabaseDeletion") .serviceDetails( "DatabaseRecovery", "ScheduleProtectedDatabaseDeletion", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ScheduleProtectedDatabaseDeletion") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ScheduleProtectedDatabaseDeletionRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .appendPathParam("actions") .appendPathParam("scheduleDeletion") .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", ScheduleProtectedDatabaseDeletionResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", ScheduleProtectedDatabaseDeletionResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateProtectedDatabase( UpdateProtectedDatabaseRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateProtectedDatabaseRequest, UpdateProtectedDatabaseResponse> handler) { Validate.notBlank( request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); Objects.requireNonNull( request.getUpdateProtectedDatabaseDetails(), "updateProtectedDatabaseDetails is required"); return clientCall(request, UpdateProtectedDatabaseResponse::builder) .logger(LOG, "updateProtectedDatabase") .serviceDetails( "DatabaseRecovery", "UpdateProtectedDatabase", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/UpdateProtectedDatabase") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateProtectedDatabaseRequest::builder) .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", UpdateProtectedDatabaseResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", UpdateProtectedDatabaseResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateProtectionPolicy( UpdateProtectionPolicyRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateProtectionPolicyRequest, UpdateProtectionPolicyResponse> handler) { Validate.notBlank(request.getProtectionPolicyId(), "protectionPolicyId must not be blank"); Objects.requireNonNull( request.getUpdateProtectionPolicyDetails(), "updateProtectionPolicyDetails is required"); return clientCall(request, UpdateProtectionPolicyResponse::builder) .logger(LOG, "updateProtectionPolicy") .serviceDetails( "DatabaseRecovery", "UpdateProtectionPolicy", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectionPolicy/UpdateProtectionPolicy") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateProtectionPolicyRequest::builder) .basePath("/20210216") .appendPathParam("protectionPolicies") .appendPathParam(request.getProtectionPolicyId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", UpdateProtectionPolicyResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", UpdateProtectionPolicyResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateRecoveryServiceSubnet( UpdateRecoveryServiceSubnetRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateRecoveryServiceSubnetRequest, UpdateRecoveryServiceSubnetResponse> handler) { Validate.notBlank( request.getRecoveryServiceSubnetId(), "recoveryServiceSubnetId must not be blank"); Objects.requireNonNull( request.getUpdateRecoveryServiceSubnetDetails(), "updateRecoveryServiceSubnetDetails is required"); return clientCall(request, UpdateRecoveryServiceSubnetResponse::builder) .logger(LOG, "updateRecoveryServiceSubnet") .serviceDetails( "DatabaseRecovery", "UpdateRecoveryServiceSubnet", "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/RecoveryServiceSubnet/UpdateRecoveryServiceSubnet") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateRecoveryServiceSubnetRequest::builder) .basePath("/20210216") .appendPathParam("recoveryServiceSubnets") .appendPathParam(request.getRecoveryServiceSubnetId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleResponseHeaderString( "opc-work-request-id", UpdateRecoveryServiceSubnetResponse.Builder::opcWorkRequestId) .handleResponseHeaderString( "opc-request-id", UpdateRecoveryServiceSubnetResponse.Builder::opcRequestId) .callAsync(handler); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider) { this(builder(), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration) { this(builder().configuration(configuration), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @param clientConfigurator {@link Builder#clientConfigurator} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.BasicAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator) { this( builder().configuration(configuration).clientConfigurator(clientConfigurator), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @param clientConfigurator {@link Builder#clientConfigurator} * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory) { this( builder() .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @param clientConfigurator {@link Builder#clientConfigurator} * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, java.util.List additionalClientConfigurators) { this( builder() .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @param clientConfigurator {@link Builder#clientConfigurator} * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} * @param endpoint {@link Builder#endpoint} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, java.util.List additionalClientConfigurators, String endpoint) { this( builder() .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators) .endpoint(endpoint), authenticationDetailsProvider); } /** * Create a new client instance. * * @param authenticationDetailsProvider The authentication details (see {@link Builder#build}) * @param configuration {@link Builder#configuration} * @param clientConfigurator {@link Builder#clientConfigurator} * @param defaultRequestSignerFactory {@link Builder#requestSignerFactory} * @param additionalClientConfigurators {@link Builder#additionalClientConfigurators} * @param endpoint {@link Builder#endpoint} * @param signingStrategyRequestSignerFactories {@link * Builder#signingStrategyRequestSignerFactories} * @deprecated Use the {@link #builder() builder} instead. */ @Deprecated public DatabaseRecoveryAsyncClient( com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider, com.oracle.bmc.ClientConfiguration configuration, com.oracle.bmc.http.ClientConfigurator clientConfigurator, com.oracle.bmc.http.signing.RequestSignerFactory defaultRequestSignerFactory, java.util.Map< com.oracle.bmc.http.signing.SigningStrategy, com.oracle.bmc.http.signing.RequestSignerFactory> signingStrategyRequestSignerFactories, java.util.List additionalClientConfigurators, String endpoint) { this( builder() .configuration(configuration) .clientConfigurator(clientConfigurator) .requestSignerFactory(defaultRequestSignerFactory) .additionalClientConfigurators(additionalClientConfigurators) .endpoint(endpoint) .signingStrategyRequestSignerFactories( signingStrategyRequestSignerFactories), authenticationDetailsProvider); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy