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

com.oracle.bmc.optimizer.OptimizerAsyncClient Maven / Gradle / Ivy

There is a newer version: 3.54.0
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.optimizer;

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

import java.util.Objects;

/**
 * Async client implementation for Optimizer 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: 20200606") public class OptimizerAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements OptimizerAsync { /** Service instance for Optimizer. */ public static final com.oracle.bmc.Service SERVICE = com.oracle.bmc.Services.serviceBuilder() .serviceName("OPTIMIZER") .serviceEndpointPrefix("") .serviceEndpointTemplate("https://optimizer.{region}.oci.{secondLevelDomain}") .build(); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(OptimizerAsyncClient.class); OptimizerAsyncClient( com.oracle.bmc.common.ClientBuilderBase builder, com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { super(builder, authenticationDetailsProvider); } /** * 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 { private Builder(com.oracle.bmc.Service service) { super(service); final String packageName = "optimizer"; com.oracle.bmc.internal.Alloy.throwDisabledServiceExceptionIfAppropriate(packageName); requestSignerFactory = new com.oracle.bmc.http.signing.internal.DefaultRequestSignerFactory( com.oracle.bmc.http.signing.SigningStrategy.STANDARD); } /** * Build the client. * * @param authenticationDetailsProvider authentication details provider * @return the client */ public OptimizerAsyncClient build( @jakarta.annotation.Nonnull com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider authenticationDetailsProvider) { return new OptimizerAsyncClient(this, authenticationDetailsProvider); } } @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 bulkApplyRecommendations( BulkApplyRecommendationsRequest request, final com.oracle.bmc.responses.AsyncHandler< BulkApplyRecommendationsRequest, BulkApplyRecommendationsResponse> handler) { Validate.notBlank(request.getRecommendationId(), "recommendationId must not be blank"); Objects.requireNonNull( request.getBulkApplyRecommendationsDetails(), "bulkApplyRecommendationsDetails is required"); return clientCall(request, BulkApplyRecommendationsResponse::builder) .logger(LOG, "bulkApplyRecommendations") .serviceDetails( "Optimizer", "BulkApplyRecommendations", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/BulkApplyRecommendations") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(BulkApplyRecommendationsRequest::builder) .basePath("/20200606") .appendPathParam("recommendations") .appendPathParam(request.getRecommendationId()) .appendPathParam("actions") .appendPathParam("bulkApplyRecommendations") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) .hasBody() .handleResponseHeaderString( "opc-request-id", BulkApplyRecommendationsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-work-request-id", BulkApplyRecommendationsResponse.Builder::opcWorkRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future createProfile( CreateProfileRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Objects.requireNonNull( request.getCreateProfileDetails(), "createProfileDetails is required"); return clientCall(request, CreateProfileResponse::builder) .logger(LOG, "createProfile") .serviceDetails( "Optimizer", "CreateProfile", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/CreateProfile") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateProfileRequest::builder) .basePath("/20200606") .appendPathParam("profiles") .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("opc-retry-token", request.getOpcRetryToken()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.Profile.class, CreateProfileResponse.Builder::profile) .handleResponseHeaderString("etag", CreateProfileResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", CreateProfileResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future deleteProfile( DeleteProfileRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Validate.notBlank(request.getProfileId(), "profileId must not be blank"); return clientCall(request, DeleteProfileResponse::builder) .logger(LOG, "deleteProfile") .serviceDetails( "Optimizer", "DeleteProfile", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/DeleteProfile") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteProfileRequest::builder) .basePath("/20200606") .appendPathParam("profiles") .appendPathParam(request.getProfileId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .handleResponseHeaderString( "opc-request-id", DeleteProfileResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future filterResourceActions( FilterResourceActionsRequest request, final com.oracle.bmc.responses.AsyncHandler< FilterResourceActionsRequest, FilterResourceActionsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); Objects.requireNonNull(request.getQueryDetails(), "queryDetails is required"); return clientCall(request, FilterResourceActionsResponse::builder) .logger(LOG, "filterResourceActions") .serviceDetails( "Optimizer", "FilterResourceActions", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceActionSummary/FilterResourceActions") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(FilterResourceActionsRequest::builder) .basePath("/20200606") .appendPathParam("actions") .appendPathParam("filterResourceActions") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("recommendationId", request.getRecommendationId()) .appendQueryParam("recommendationName", request.getRecommendationName()) .appendListQueryParam( "childTenancyIds", request.getChildTenancyIds(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("includeOrganization", request.getIncludeOrganization()) .appendQueryParam("includeResourceMetadata", request.getIncludeResourceMetadata()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.ResourceActionCollection.class, FilterResourceActionsResponse.Builder::resourceActionCollection) .handleResponseHeaderString( "opc-request-id", FilterResourceActionsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", FilterResourceActionsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", FilterResourceActionsResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future getCategory( GetCategoryRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Validate.notBlank(request.getCategoryId(), "categoryId must not be blank"); return clientCall(request, GetCategoryResponse::builder) .logger(LOG, "getCategory") .serviceDetails( "Optimizer", "GetCategory", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Category/GetCategory") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetCategoryRequest::builder) .basePath("/20200606") .appendPathParam("categories") .appendPathParam(request.getCategoryId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.Category.class, GetCategoryResponse.Builder::category) .handleResponseHeaderString( "opc-request-id", GetCategoryResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getEnrollmentStatus( GetEnrollmentStatusRequest request, final com.oracle.bmc.responses.AsyncHandler< GetEnrollmentStatusRequest, GetEnrollmentStatusResponse> handler) { Validate.notBlank(request.getEnrollmentStatusId(), "enrollmentStatusId must not be blank"); return clientCall(request, GetEnrollmentStatusResponse::builder) .logger(LOG, "getEnrollmentStatus") .serviceDetails( "Optimizer", "GetEnrollmentStatus", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatus/GetEnrollmentStatus") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetEnrollmentStatusRequest::builder) .basePath("/20200606") .appendPathParam("enrollmentStatus") .appendPathParam(request.getEnrollmentStatusId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.EnrollmentStatus.class, GetEnrollmentStatusResponse.Builder::enrollmentStatus) .handleResponseHeaderString("etag", GetEnrollmentStatusResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetEnrollmentStatusResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getProfile( GetProfileRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Validate.notBlank(request.getProfileId(), "profileId must not be blank"); return clientCall(request, GetProfileResponse::builder) .logger(LOG, "getProfile") .serviceDetails( "Optimizer", "GetProfile", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/GetProfile") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetProfileRequest::builder) .basePath("/20200606") .appendPathParam("profiles") .appendPathParam(request.getProfileId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.Profile.class, GetProfileResponse.Builder::profile) .handleResponseHeaderString("etag", GetProfileResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetProfileResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getRecommendation( GetRecommendationRequest request, final com.oracle.bmc.responses.AsyncHandler< GetRecommendationRequest, GetRecommendationResponse> handler) { Validate.notBlank(request.getRecommendationId(), "recommendationId must not be blank"); return clientCall(request, GetRecommendationResponse::builder) .logger(LOG, "getRecommendation") .serviceDetails( "Optimizer", "GetRecommendation", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/GetRecommendation") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetRecommendationRequest::builder) .basePath("/20200606") .appendPathParam("recommendations") .appendPathParam(request.getRecommendationId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.Recommendation.class, GetRecommendationResponse.Builder::recommendation) .handleResponseHeaderString("etag", GetRecommendationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetRecommendationResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future getResourceAction( GetResourceActionRequest request, final com.oracle.bmc.responses.AsyncHandler< GetResourceActionRequest, GetResourceActionResponse> handler) { Validate.notBlank(request.getResourceActionId(), "resourceActionId must not be blank"); return clientCall(request, GetResourceActionResponse::builder) .logger(LOG, "getResourceAction") .serviceDetails( "Optimizer", "GetResourceAction", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceAction/GetResourceAction") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetResourceActionRequest::builder) .basePath("/20200606") .appendPathParam("resourceActions") .appendPathParam(request.getResourceActionId()) .appendQueryParam("includeResourceMetadata", request.getIncludeResourceMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.ResourceAction.class, GetResourceActionResponse.Builder::resourceAction) .handleResponseHeaderString("etag", GetResourceActionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", GetResourceActionResponse.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( "Optimizer", "GetWorkRequest", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) .basePath("/20200606") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.WorkRequest.class, GetWorkRequestResponse.Builder::workRequest) .handleResponseHeaderString( "opc-request-id", GetWorkRequestResponse.Builder::opcRequestId) .handleResponseHeaderFloat( "retry-after", GetWorkRequestResponse.Builder::retryAfter) .callAsync(handler); } @Override public java.util.concurrent.Future listCategories( ListCategoriesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListCategoriesRequest, ListCategoriesResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListCategoriesResponse::builder) .logger(LOG, "listCategories") .serviceDetails( "Optimizer", "ListCategories", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/CategorySummary/ListCategories") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListCategoriesRequest::builder) .basePath("/20200606") .appendPathParam("categories") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendListQueryParam( "childTenancyIds", request.getChildTenancyIds(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("includeOrganization", request.getIncludeOrganization()) .appendQueryParam("name", request.getName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.CategoryCollection.class, ListCategoriesResponse.Builder::categoryCollection) .handleResponseHeaderString( "opc-request-id", ListCategoriesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListCategoriesResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListCategoriesResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listEnrollmentStatuses( ListEnrollmentStatusesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListEnrollmentStatusesRequest, ListEnrollmentStatusesResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListEnrollmentStatusesResponse::builder) .logger(LOG, "listEnrollmentStatuses") .serviceDetails( "Optimizer", "ListEnrollmentStatuses", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatusSummary/ListEnrollmentStatuses") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListEnrollmentStatusesRequest::builder) .basePath("/20200606") .appendPathParam("enrollmentStatus") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("status", request.getStatus()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.EnrollmentStatusCollection.class, ListEnrollmentStatusesResponse.Builder::enrollmentStatusCollection) .handleResponseHeaderString( "opc-request-id", ListEnrollmentStatusesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListEnrollmentStatusesResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListEnrollmentStatusesResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listHistories( ListHistoriesRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListHistoriesResponse::builder) .logger(LOG, "listHistories") .serviceDetails( "Optimizer", "ListHistories", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/HistorySummary/ListHistories") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListHistoriesRequest::builder) .basePath("/20200606") .appendPathParam("histories") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("name", request.getName()) .appendQueryParam("recommendationName", request.getRecommendationName()) .appendQueryParam("recommendationId", request.getRecommendationId()) .appendQueryParam("resourceType", request.getResourceType()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("status", request.getStatus()) .appendQueryParam("includeResourceMetadata", request.getIncludeResourceMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.HistoryCollection.class, ListHistoriesResponse.Builder::historyCollection) .handleResponseHeaderString( "opc-request-id", ListHistoriesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListHistoriesResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListHistoriesResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listProfileLevels( ListProfileLevelsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListProfileLevelsRequest, ListProfileLevelsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListProfileLevelsResponse::builder) .logger(LOG, "listProfileLevels") .serviceDetails( "Optimizer", "ListProfileLevels", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ProfileLevelSummary/ListProfileLevels") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListProfileLevelsRequest::builder) .basePath("/20200606") .appendPathParam("profileLevels") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("name", request.getName()) .appendQueryParam("recommendationName", request.getRecommendationName()) .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.optimizer.model.ProfileLevelCollection.class, ListProfileLevelsResponse.Builder::profileLevelCollection) .handleResponseHeaderString( "opc-request-id", ListProfileLevelsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProfileLevelsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListProfileLevelsResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listProfiles( ListProfilesRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); return clientCall(request, ListProfilesResponse::builder) .logger(LOG, "listProfiles") .serviceDetails( "Optimizer", "ListProfiles", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ProfileSummary/ListProfiles") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListProfilesRequest::builder) .basePath("/20200606") .appendPathParam("profiles") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("name", request.getName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.ProfileCollection.class, ListProfilesResponse.Builder::profileCollection) .handleResponseHeaderString( "opc-request-id", ListProfilesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListProfilesResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListProfilesResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listRecommendationStrategies( ListRecommendationStrategiesRequest request, final com.oracle.bmc.responses.AsyncHandler< ListRecommendationStrategiesRequest, ListRecommendationStrategiesResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListRecommendationStrategiesResponse::builder) .logger(LOG, "listRecommendationStrategies") .serviceDetails( "Optimizer", "ListRecommendationStrategies", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/RecommendationStrategySummary/ListRecommendationStrategies") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListRecommendationStrategiesRequest::builder) .basePath("/20200606") .appendPathParam("recommendationStrategies") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("name", request.getName()) .appendQueryParam("recommendationName", request.getRecommendationName()) .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.optimizer.model.RecommendationStrategyCollection.class, ListRecommendationStrategiesResponse.Builder ::recommendationStrategyCollection) .handleResponseHeaderString( "opc-request-id", ListRecommendationStrategiesResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListRecommendationStrategiesResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListRecommendationStrategiesResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listRecommendations( ListRecommendationsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListRecommendationsRequest, ListRecommendationsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListRecommendationsResponse::builder) .logger(LOG, "listRecommendations") .serviceDetails( "Optimizer", "ListRecommendations", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/RecommendationSummary/ListRecommendations") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListRecommendationsRequest::builder) .basePath("/20200606") .appendPathParam("recommendations") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("categoryId", request.getCategoryId()) .appendQueryParam("categoryName", request.getCategoryName()) .appendListQueryParam( "childTenancyIds", request.getChildTenancyIds(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("includeOrganization", request.getIncludeOrganization()) .appendQueryParam("name", request.getName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("status", request.getStatus()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.RecommendationCollection.class, ListRecommendationsResponse.Builder::recommendationCollection) .handleResponseHeaderString( "opc-request-id", ListRecommendationsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListRecommendationsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListRecommendationsResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listResourceActionQueryableFields( ListResourceActionQueryableFieldsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListResourceActionQueryableFieldsRequest, ListResourceActionQueryableFieldsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListResourceActionQueryableFieldsResponse::builder) .logger(LOG, "listResourceActionQueryableFields") .serviceDetails( "Optimizer", "ListResourceActionQueryableFields", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/QueryableFieldSummary/ListResourceActionQueryableFields") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListResourceActionQueryableFieldsRequest::builder) .basePath("/20200606") .appendPathParam("resourceActions") .appendPathParam("actions") .appendPathParam("getQueryableFields") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.QueryableFieldCollection.class, ListResourceActionQueryableFieldsResponse.Builder::queryableFieldCollection) .handleResponseHeaderString( "opc-request-id", ListResourceActionQueryableFieldsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListResourceActionQueryableFieldsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListResourceActionQueryableFieldsResponse.Builder::opcPrevPage) .callAsync(handler); } @Override public java.util.concurrent.Future listResourceActions( ListResourceActionsRequest request, final com.oracle.bmc.responses.AsyncHandler< ListResourceActionsRequest, ListResourceActionsResponse> handler) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); Objects.requireNonNull( request.getCompartmentIdInSubtree(), "compartmentIdInSubtree is required"); return clientCall(request, ListResourceActionsResponse::builder) .logger(LOG, "listResourceActions") .serviceDetails( "Optimizer", "ListResourceActions", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceActionSummary/ListResourceActions") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListResourceActionsRequest::builder) .basePath("/20200606") .appendPathParam("resourceActions") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) .appendQueryParam("recommendationId", request.getRecommendationId()) .appendQueryParam("recommendationName", request.getRecommendationName()) .appendListQueryParam( "childTenancyIds", request.getChildTenancyIds(), com.oracle.bmc.util.internal.CollectionFormatType.Multi) .appendQueryParam("includeOrganization", request.getIncludeOrganization()) .appendQueryParam("name", request.getName()) .appendQueryParam("resourceType", request.getResourceType()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) .appendEnumQueryParam("status", request.getStatus()) .appendQueryParam("includeResourceMetadata", request.getIncludeResourceMetadata()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.ResourceActionCollection.class, ListResourceActionsResponse.Builder::resourceActionCollection) .handleResponseHeaderString( "opc-request-id", ListResourceActionsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListResourceActionsResponse.Builder::opcNextPage) .handleResponseHeaderString( "opc-prev-page", ListResourceActionsResponse.Builder::opcPrevPage) .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( "Optimizer", "ListWorkRequestErrors", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) .basePath("/20200606") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.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( "Optimizer", "ListWorkRequestLogs", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) .basePath("/20200606") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.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( "Optimizer", "ListWorkRequests", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/WorkRequest/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) .basePath("/20200606") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( com.oracle.bmc.optimizer.model.WorkRequestCollection.class, ListWorkRequestsResponse.Builder::workRequestCollection) .handleResponseHeaderString( "opc-request-id", ListWorkRequestsResponse.Builder::opcRequestId) .handleResponseHeaderString( "opc-next-page", ListWorkRequestsResponse.Builder::opcNextPage) .callAsync(handler); } @Override public java.util.concurrent.Future updateEnrollmentStatus( UpdateEnrollmentStatusRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateEnrollmentStatusRequest, UpdateEnrollmentStatusResponse> handler) { Validate.notBlank(request.getEnrollmentStatusId(), "enrollmentStatusId must not be blank"); Objects.requireNonNull( request.getUpdateEnrollmentStatusDetails(), "updateEnrollmentStatusDetails is required"); return clientCall(request, UpdateEnrollmentStatusResponse::builder) .logger(LOG, "updateEnrollmentStatus") .serviceDetails( "Optimizer", "UpdateEnrollmentStatus", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/EnrollmentStatus/UpdateEnrollmentStatus") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateEnrollmentStatusRequest::builder) .basePath("/20200606") .appendPathParam("enrollmentStatus") .appendPathParam(request.getEnrollmentStatusId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.EnrollmentStatus.class, UpdateEnrollmentStatusResponse.Builder::enrollmentStatus) .handleResponseHeaderString("etag", UpdateEnrollmentStatusResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateEnrollmentStatusResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateProfile( UpdateProfileRequest request, final com.oracle.bmc.responses.AsyncHandler handler) { Validate.notBlank(request.getProfileId(), "profileId must not be blank"); Objects.requireNonNull( request.getUpdateProfileDetails(), "updateProfileDetails is required"); return clientCall(request, UpdateProfileResponse::builder) .logger(LOG, "updateProfile") .serviceDetails( "Optimizer", "UpdateProfile", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Profile/UpdateProfile") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateProfileRequest::builder) .basePath("/20200606") .appendPathParam("profiles") .appendPathParam(request.getProfileId()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.Profile.class, UpdateProfileResponse.Builder::profile) .handleResponseHeaderString("etag", UpdateProfileResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateProfileResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateRecommendation( UpdateRecommendationRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateRecommendationRequest, UpdateRecommendationResponse> handler) { Validate.notBlank(request.getRecommendationId(), "recommendationId must not be blank"); Objects.requireNonNull( request.getUpdateRecommendationDetails(), "updateRecommendationDetails is required"); return clientCall(request, UpdateRecommendationResponse::builder) .logger(LOG, "updateRecommendation") .serviceDetails( "Optimizer", "UpdateRecommendation", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/Recommendation/UpdateRecommendation") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateRecommendationRequest::builder) .basePath("/20200606") .appendPathParam("recommendations") .appendPathParam(request.getRecommendationId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.Recommendation.class, UpdateRecommendationResponse.Builder::recommendation) .handleResponseHeaderString("etag", UpdateRecommendationResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateRecommendationResponse.Builder::opcRequestId) .callAsync(handler); } @Override public java.util.concurrent.Future updateResourceAction( UpdateResourceActionRequest request, final com.oracle.bmc.responses.AsyncHandler< UpdateResourceActionRequest, UpdateResourceActionResponse> handler) { Validate.notBlank(request.getResourceActionId(), "resourceActionId must not be blank"); Objects.requireNonNull( request.getUpdateResourceActionDetails(), "updateResourceActionDetails is required"); return clientCall(request, UpdateResourceActionResponse::builder) .logger(LOG, "updateResourceAction") .serviceDetails( "Optimizer", "UpdateResourceAction", "https://docs.oracle.com/iaas/api/#/en/advisor/20200606/ResourceAction/UpdateResourceAction") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateResourceActionRequest::builder) .basePath("/20200606") .appendPathParam("resourceActions") .appendPathParam(request.getResourceActionId()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .appendHeader("if-match", request.getIfMatch()) .hasBody() .handleBody( com.oracle.bmc.optimizer.model.ResourceAction.class, UpdateResourceActionResponse.Builder::resourceAction) .handleResponseHeaderString("etag", UpdateResourceActionResponse.Builder::etag) .handleResponseHeaderString( "opc-request-id", UpdateResourceActionResponse.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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 OptimizerAsyncClient( 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 - 2024 Weber Informatics LLC | Privacy Policy