@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public interface OptimizerAsync extends AutoCloseable
Use the Cloud Advisor API to find potential inefficiencies in your tenancy and address them. Cloud Advisor can help you save money, improve performance, strengthen system resilience, and improve security. For more information, see Cloud Advisor.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<BulkApplyRecommendationsResponse> bulkApplyRecommendations(BulkApplyRecommendationsRequest request, AsyncHandler<BulkApplyRecommendationsRequest,BulkApplyRecommendationsResponse> handler)
Applies the specified recommendations to the resources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateProfileResponse> createProfile(CreateProfileRequest request, AsyncHandler<CreateProfileRequest,CreateProfileResponse> handler)
Creates a new profile.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteProfileResponse> deleteProfile(DeleteProfileRequest request, AsyncHandler<DeleteProfileRequest,DeleteProfileResponse> handler)
Deletes the specified profile. Uses the profile’s OCID to determine which profile to delete.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<FilterResourceActionsResponse> filterResourceActions(FilterResourceActionsRequest request, AsyncHandler<FilterResourceActionsRequest,FilterResourceActionsResponse> handler)
Queries the Cloud Advisor resource actions that are supported.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetCategoryResponse> getCategory(GetCategoryRequest request, AsyncHandler<GetCategoryRequest,GetCategoryResponse> handler)
Gets the category that corresponds to the specified OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetEnrollmentStatusResponse> getEnrollmentStatus(GetEnrollmentStatusRequest request, AsyncHandler<GetEnrollmentStatusRequest,GetEnrollmentStatusResponse> handler)
Gets the Cloud Advisor enrollment status.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetProfileResponse> getProfile(GetProfileRequest request, AsyncHandler<GetProfileRequest,GetProfileResponse> handler)
Gets the specified profile’s information. Uses the profile’s OCID to determine which profile to retrieve.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetRecommendationResponse> getRecommendation(GetRecommendationRequest request, AsyncHandler<GetRecommendationRequest,GetRecommendationResponse> handler)
Gets the recommendation for the specified OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetResourceActionResponse> getResourceAction(GetResourceActionRequest request, AsyncHandler<GetResourceActionRequest,GetResourceActionResponse> handler)
Gets the resource action that corresponds to the specified OCID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the status of the work request associated with the specified ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListCategoriesResponse> listCategories(ListCategoriesRequest request, AsyncHandler<ListCategoriesRequest,ListCategoriesResponse> handler)
Lists the supported Cloud Advisor categories.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListEnrollmentStatusesResponse> listEnrollmentStatuses(ListEnrollmentStatusesRequest request, AsyncHandler<ListEnrollmentStatusesRequest,ListEnrollmentStatusesResponse> handler)
Lists the Cloud Advisor enrollment statuses.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListHistoriesResponse> listHistories(ListHistoriesRequest request, AsyncHandler<ListHistoriesRequest,ListHistoriesResponse> handler)
Lists changes to the recommendations based on user activity. For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListProfileLevelsResponse> listProfileLevels(ListProfileLevelsRequest request, AsyncHandler<ListProfileLevelsRequest,ListProfileLevelsResponse> handler)
Lists the existing profile levels.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListProfilesResponse> listProfiles(ListProfilesRequest request, AsyncHandler<ListProfilesRequest,ListProfilesResponse> handler)
Lists the existing profiles.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListRecommendationStrategiesResponse> listRecommendationStrategies(ListRecommendationStrategiesRequest request, AsyncHandler<ListRecommendationStrategiesRequest,ListRecommendationStrategiesResponse> handler)
Lists the existing strategies.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListRecommendationsResponse> listRecommendations(ListRecommendationsRequest request, AsyncHandler<ListRecommendationsRequest,ListRecommendationsResponse> handler)
Lists the Cloud Advisor recommendations that are currently supported.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListResourceActionQueryableFieldsResponse> listResourceActionQueryableFields(ListResourceActionQueryableFieldsRequest request, AsyncHandler<ListResourceActionQueryableFieldsRequest,ListResourceActionQueryableFieldsResponse> handler)
Lists the fields that are indexed for querying and their associated value types.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListResourceActionsResponse> listResourceActions(ListResourceActionsRequest request, AsyncHandler<ListResourceActionsRequest,ListResourceActionsResponse> handler)
Lists the Cloud Advisor resource actions that are supported.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Lists errors associated with the specified work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Lists the logs associated with the specified work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in the tenancy. The tenancy is the root compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateEnrollmentStatusResponse> updateEnrollmentStatus(UpdateEnrollmentStatusRequest request, AsyncHandler<UpdateEnrollmentStatusRequest,UpdateEnrollmentStatusResponse> handler)
Updates the enrollment status of the tenancy.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateProfileResponse> updateProfile(UpdateProfileRequest request, AsyncHandler<UpdateProfileRequest,UpdateProfileResponse> handler)
Updates the specified profile. Uses the profile’s OCID to determine which profile to update.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateRecommendationResponse> updateRecommendation(UpdateRecommendationRequest request, AsyncHandler<UpdateRecommendationRequest,UpdateRecommendationResponse> handler)
Updates the recommendation that corresponds to the specified OCID. Use this operation to implement the following actions:
Postpone recommendation * Dismiss recommendation * Reactivate recommendation
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateResourceActionResponse> updateResourceAction(UpdateResourceActionRequest request, AsyncHandler<UpdateResourceActionRequest,UpdateResourceActionResponse> handler)
Updates the resource action that corresponds to the specified OCID. Use this operation to implement the following actions:
Postpone resource action * Ignore resource action * Reactivate resource action
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2024. All rights reserved.