@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public interface Optimizer extends AutoCloseable
APIs for managing Cloud Advisor. Cloud Advisor provides recommendations that help you maximize cost savings and improve the security posture of your tenancy.
| Modifier and Type | Method and Description |
|---|---|
BulkApplyRecommendationsResponse |
bulkApplyRecommendations(BulkApplyRecommendationsRequest request)
Applies the specified recommendations to the resources.
|
CreateProfileResponse |
createProfile(CreateProfileRequest request)
Creates a new profile.
|
DeleteProfileResponse |
deleteProfile(DeleteProfileRequest request)
Deletes the specified profile.
|
GetCategoryResponse |
getCategory(GetCategoryRequest request)
Gets the category that corresponds to the specified OCID.
|
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
GetEnrollmentStatusResponse |
getEnrollmentStatus(GetEnrollmentStatusRequest request)
Gets the Cloud Advisor enrollment status.
|
OptimizerPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple
pages of data.
|
GetProfileResponse |
getProfile(GetProfileRequest request)
Gets the specified profile’s information.
|
GetRecommendationResponse |
getRecommendation(GetRecommendationRequest request)
Gets the recommendation for the specified OCID.
|
GetResourceActionResponse |
getResourceAction(GetResourceActionRequest request)
Gets the resource action that corresponds to the specified OCID.
|
OptimizerWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request associated with the specified ID.
|
ListCategoriesResponse |
listCategories(ListCategoriesRequest request)
Lists the supported Cloud Advisor categories.
|
ListEnrollmentStatusesResponse |
listEnrollmentStatuses(ListEnrollmentStatusesRequest request)
Lists the Cloud Advisor enrollment statuses.
|
ListHistoriesResponse |
listHistories(ListHistoriesRequest request)
Lists changes to the recommendations based on user activity.
|
ListProfilesResponse |
listProfiles(ListProfilesRequest request)
Lists the existing profiles.
|
ListRecommendationsResponse |
listRecommendations(ListRecommendationsRequest request)
Lists the Cloud Advisor recommendations that are currently supported in the specified category.
|
ListRecommendationStrategiesResponse |
listRecommendationStrategies(ListRecommendationStrategiesRequest request)
Lists the existing strategies.
|
ListResourceActionsResponse |
listResourceActions(ListResourceActionsRequest request)
Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Lists errors associated with the specified work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Lists the logs associated with the specified work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in the tenancy.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
UpdateEnrollmentStatusResponse |
updateEnrollmentStatus(UpdateEnrollmentStatusRequest request)
Updates the enrollment status of the tenancy.
|
UpdateProfileResponse |
updateProfile(UpdateProfileRequest request)
Updates the specified profile.
|
UpdateRecommendationResponse |
updateRecommendation(UpdateRecommendationRequest request)
Updates the recommendation that corresponds to the specified OCID.
|
UpdateResourceActionResponse |
updateResourceAction(UpdateResourceActionRequest request)
Updates the resource action that corresponds to the specified OCID.
|
closevoid setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint - The endpoint of the service.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.BulkApplyRecommendationsResponse bulkApplyRecommendations(BulkApplyRecommendationsRequest request)
Applies the specified recommendations to the resources.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use BulkApplyRecommendations API.
CreateProfileResponse createProfile(CreateProfileRequest request)
Creates a new profile.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use CreateProfile API.
DeleteProfileResponse deleteProfile(DeleteProfileRequest request)
Deletes the specified profile. Uses the profile’s OCID to determine which profile to delete.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use DeleteProfile API.
GetCategoryResponse getCategory(GetCategoryRequest request)
Gets the category that corresponds to the specified OCID.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use GetCategory API.
GetEnrollmentStatusResponse getEnrollmentStatus(GetEnrollmentStatusRequest request)
Gets the Cloud Advisor enrollment status.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use GetEnrollmentStatus API.
GetProfileResponse getProfile(GetProfileRequest request)
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 sendBmcException - when an error occurs.
Example: Click here to see how to use GetProfile API.
GetRecommendationResponse getRecommendation(GetRecommendationRequest request)
Gets the recommendation for the specified OCID.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use GetRecommendation API.
GetResourceActionResponse getResourceAction(GetResourceActionRequest request)
Gets the resource action that corresponds to the specified OCID.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use GetResourceAction API.
GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request associated with the specified ID.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use GetWorkRequest API.
ListCategoriesResponse listCategories(ListCategoriesRequest request)
Lists the supported Cloud Advisor categories.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListCategories API.
ListEnrollmentStatusesResponse listEnrollmentStatuses(ListEnrollmentStatusesRequest request)
Lists the Cloud Advisor enrollment statuses.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListEnrollmentStatuses API.
ListHistoriesResponse listHistories(ListHistoriesRequest request)
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 sendBmcException - when an error occurs.
Example: Click here to see how to use ListHistories API.
ListProfilesResponse listProfiles(ListProfilesRequest request)
Lists the existing profiles.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListProfiles API.
ListRecommendationStrategiesResponse listRecommendationStrategies(ListRecommendationStrategiesRequest request)
Lists the existing strategies.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListRecommendationStrategies API.
ListRecommendationsResponse listRecommendations(ListRecommendationsRequest request)
Lists the Cloud Advisor recommendations that are currently supported in the specified category.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListRecommendations API.
ListResourceActionsResponse listResourceActions(ListResourceActionsRequest request)
Lists the Cloud Advisor resource actions that are supported by the specified recommendation.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListResourceActions API.
ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Lists errors associated with the specified work request.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListWorkRequestErrors API.
ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Lists the logs associated with the specified work request.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListWorkRequestLogs API.
ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in the tenancy. The tenancy is the root compartment.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use ListWorkRequests API.
UpdateEnrollmentStatusResponse updateEnrollmentStatus(UpdateEnrollmentStatusRequest request)
Updates the enrollment status of the tenancy.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use UpdateEnrollmentStatus API.
UpdateProfileResponse updateProfile(UpdateProfileRequest request)
Updates the specified profile. Uses the profile’s OCID to determine which profile to update.
request - The request object containing the details to sendBmcException - when an error occurs.
Example: Click here to see how to use UpdateProfile API.
UpdateRecommendationResponse updateRecommendation(UpdateRecommendationRequest request)
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 sendBmcException - when an error occurs.
Example: Click here to see how to use UpdateRecommendation API.
UpdateResourceActionResponse updateResourceAction(UpdateResourceActionRequest request)
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 sendBmcException - when an error occurs.
Example: Click here to see how to use UpdateResourceAction API.
OptimizerWaiters getWaiters()
Gets the pre-configured waiters available for resources for this service.
OptimizerPaginators getPaginators()
Gets the pre-configured paginators available for list operations in this service which may return multiple
pages of data. These paginators provide an Iterable interface so that service responses, or
resources/records, can be iterated through without having to manually deal with pagination and page tokens.
Copyright © 2016–2021. All rights reserved.