@Generated(value="OracleSDKGenerator", comments="API Version: 20200606") public class OptimizerClient extends BaseSyncClient implements Optimizer
Modifier and Type | Class and Description |
---|---|
static class |
OptimizerClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for Optimizer.
|
Constructor and Description |
---|
OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
Modifier and Type | Method and Description |
---|---|
static OptimizerClient.Builder |
builder()
Create a builder for this client.
|
BulkApplyRecommendationsResponse |
bulkApplyRecommendations(BulkApplyRecommendationsRequest request)
Applies the specified recommendations to the resources.
|
void |
close() |
CreateProfileResponse |
createProfile(CreateProfileRequest request)
Creates a new profile.
|
DeleteProfileResponse |
deleteProfile(DeleteProfileRequest request)
Deletes the specified profile.
|
FilterResourceActionsResponse |
filterResourceActions(FilterResourceActionsRequest request)
Queries the Cloud Advisor resource actions that are supported.
|
GetCategoryResponse |
getCategory(GetCategoryRequest request)
Gets the category that corresponds to the specified OCID.
|
String |
getClientCommonLibraryVersion() |
protected ClientConfigurator |
getDefaultConfigurator() |
String |
getEndpoint() |
GetEnrollmentStatusResponse |
getEnrollmentStatus(GetEnrollmentStatusRequest request)
Gets the Cloud Advisor enrollment status.
|
Optional<String> |
getMinimumClientCommonLibraryVersionFromClient() |
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.
|
ListProfileLevelsResponse |
listProfileLevels(ListProfileLevelsRequest request)
Lists the existing profile levels.
|
ListProfilesResponse |
listProfiles(ListProfilesRequest request)
Lists the existing profiles.
|
ListRecommendationsResponse |
listRecommendations(ListRecommendationsRequest request)
Lists the Cloud Advisor recommendations that are currently supported.
|
ListRecommendationStrategiesResponse |
listRecommendationStrategies(ListRecommendationStrategiesRequest request)
Lists the existing strategies.
|
ListResourceActionQueryableFieldsResponse |
listResourceActionQueryableFields(ListResourceActionQueryableFieldsRequest request)
Lists the fields that are indexed for querying and their associated value types.
|
ListResourceActionsResponse |
listResourceActions(ListResourceActionsRequest request)
Lists the Cloud Advisor resource actions that are supported.
|
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 |
populateServiceParametersInEndpoint(String endpoint,
Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base
endpoint.
|
void |
refreshClient()
Rebuild the backing
HttpClient . |
void |
setEndpoint(String endpoint) |
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’).
|
void |
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.
|
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.
|
void |
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.
|
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for Optimizer.
public final String clientCommonLibraryVersion
@Deprecated public OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public OptimizerClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public OptimizerClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see OptimizerClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- OptimizerClient.Builder.executorService
public static OptimizerClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
Optimizer
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.
public void setRegion(String regionId)
Optimizer
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
.
public BulkApplyRecommendationsResponse bulkApplyRecommendations(BulkApplyRecommendationsRequest request)
Optimizer
Applies the specified recommendations to the resources.
bulkApplyRecommendations
in interface Optimizer
request
- The request object containing the details to sendpublic CreateProfileResponse createProfile(CreateProfileRequest request)
Optimizer
Creates a new profile.
createProfile
in interface Optimizer
request
- The request object containing the details to sendpublic DeleteProfileResponse deleteProfile(DeleteProfileRequest request)
Optimizer
Deletes the specified profile. Uses the profile’s OCID to determine which profile to delete.
deleteProfile
in interface Optimizer
request
- The request object containing the details to sendpublic FilterResourceActionsResponse filterResourceActions(FilterResourceActionsRequest request)
Optimizer
Queries the Cloud Advisor resource actions that are supported.
filterResourceActions
in interface Optimizer
request
- The request object containing the details to sendpublic GetCategoryResponse getCategory(GetCategoryRequest request)
Optimizer
Gets the category that corresponds to the specified OCID.
getCategory
in interface Optimizer
request
- The request object containing the details to sendpublic GetEnrollmentStatusResponse getEnrollmentStatus(GetEnrollmentStatusRequest request)
Optimizer
Gets the Cloud Advisor enrollment status.
getEnrollmentStatus
in interface Optimizer
request
- The request object containing the details to sendpublic GetProfileResponse getProfile(GetProfileRequest request)
Optimizer
Gets the specified profile’s information. Uses the profile’s OCID to determine which profile to retrieve.
getProfile
in interface Optimizer
request
- The request object containing the details to sendpublic GetRecommendationResponse getRecommendation(GetRecommendationRequest request)
Optimizer
Gets the recommendation for the specified OCID.
getRecommendation
in interface Optimizer
request
- The request object containing the details to sendpublic GetResourceActionResponse getResourceAction(GetResourceActionRequest request)
Optimizer
Gets the resource action that corresponds to the specified OCID.
getResourceAction
in interface Optimizer
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Optimizer
Gets the status of the work request associated with the specified ID.
getWorkRequest
in interface Optimizer
request
- The request object containing the details to sendpublic ListCategoriesResponse listCategories(ListCategoriesRequest request)
Optimizer
Lists the supported Cloud Advisor categories.
listCategories
in interface Optimizer
request
- The request object containing the details to sendpublic ListEnrollmentStatusesResponse listEnrollmentStatuses(ListEnrollmentStatusesRequest request)
Optimizer
Lists the Cloud Advisor enrollment statuses.
listEnrollmentStatuses
in interface Optimizer
request
- The request object containing the details to sendpublic ListHistoriesResponse listHistories(ListHistoriesRequest request)
Optimizer
Lists changes to the recommendations based on user activity. For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.
listHistories
in interface Optimizer
request
- The request object containing the details to sendpublic ListProfileLevelsResponse listProfileLevels(ListProfileLevelsRequest request)
Optimizer
Lists the existing profile levels.
listProfileLevels
in interface Optimizer
request
- The request object containing the details to sendpublic ListProfilesResponse listProfiles(ListProfilesRequest request)
Optimizer
Lists the existing profiles.
listProfiles
in interface Optimizer
request
- The request object containing the details to sendpublic ListRecommendationStrategiesResponse listRecommendationStrategies(ListRecommendationStrategiesRequest request)
Optimizer
Lists the existing strategies.
listRecommendationStrategies
in interface Optimizer
request
- The request object containing the details to sendpublic ListRecommendationsResponse listRecommendations(ListRecommendationsRequest request)
Optimizer
Lists the Cloud Advisor recommendations that are currently supported.
listRecommendations
in interface Optimizer
request
- The request object containing the details to sendpublic ListResourceActionQueryableFieldsResponse listResourceActionQueryableFields(ListResourceActionQueryableFieldsRequest request)
Optimizer
Lists the fields that are indexed for querying and their associated value types.
listResourceActionQueryableFields
in interface Optimizer
request
- The request object containing the details to sendpublic ListResourceActionsResponse listResourceActions(ListResourceActionsRequest request)
Optimizer
Lists the Cloud Advisor resource actions that are supported.
listResourceActions
in interface Optimizer
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Optimizer
Lists errors associated with the specified work request.
listWorkRequestErrors
in interface Optimizer
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Optimizer
Lists the logs associated with the specified work request.
listWorkRequestLogs
in interface Optimizer
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Optimizer
Lists the work requests in the tenancy. The tenancy is the root compartment.
listWorkRequests
in interface Optimizer
request
- The request object containing the details to sendpublic UpdateEnrollmentStatusResponse updateEnrollmentStatus(UpdateEnrollmentStatusRequest request)
Optimizer
Updates the enrollment status of the tenancy.
updateEnrollmentStatus
in interface Optimizer
request
- The request object containing the details to sendpublic UpdateProfileResponse updateProfile(UpdateProfileRequest request)
Optimizer
Updates the specified profile. Uses the profile’s OCID to determine which profile to update.
updateProfile
in interface Optimizer
request
- The request object containing the details to sendpublic UpdateRecommendationResponse updateRecommendation(UpdateRecommendationRequest request)
Optimizer
Updates the recommendation that corresponds to the specified OCID. Use this operation to implement the following actions:
Postpone recommendation * Dismiss recommendation * Reactivate recommendation
updateRecommendation
in interface Optimizer
request
- The request object containing the details to sendpublic UpdateResourceActionResponse updateResourceAction(UpdateResourceActionRequest request)
Optimizer
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
updateResourceAction
in interface Optimizer
request
- The request object containing the details to sendpublic OptimizerWaiters getWaiters()
Optimizer
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface Optimizer
public OptimizerPaginators getPaginators()
Optimizer
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.
getPaginators
in interface Optimizer
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
Copyright © 2016–2024. All rights reserved.