Class DatabaseRecoveryClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.recovery.DatabaseRecoveryClient
-
- All Implemented Interfaces:
DatabaseRecovery,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public class DatabaseRecoveryClient extends BaseSyncClient implements DatabaseRecovery
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatabaseRecoveryClient.BuilderBuilder class for this client.
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for DatabaseRecovery.
-
Constructor Summary
Constructors Constructor Description DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatabaseRecoveryClient.Builderbuilder()Create a builder for this client.CancelProtectedDatabaseDeletionResponsecancelProtectedDatabaseDeletion(CancelProtectedDatabaseDeletionRequest request)Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state.ChangeProtectedDatabaseCompartmentResponsechangeProtectedDatabaseCompartment(ChangeProtectedDatabaseCompartmentRequest request)Moves a protected database resource from the existing compartment to the specified compartment.ChangeProtectedDatabaseSubscriptionResponsechangeProtectedDatabaseSubscription(ChangeProtectedDatabaseSubscriptionRequest request)Associates the protected database with a new cloud service environment, such as Microsoft Azure.ChangeProtectionPolicyCompartmentResponsechangeProtectionPolicyCompartment(ChangeProtectionPolicyCompartmentRequest request)Moves a protection policy resource from the existing compartment to the specified compartment.ChangeRecoveryServiceSubnetCompartmentResponsechangeRecoveryServiceSubnetCompartment(ChangeRecoveryServiceSubnetCompartmentRequest request)Moves a recovery service subnet resource from the existing compartment to the specified compartment.voidclose()CreateProtectedDatabaseResponsecreateProtectedDatabase(CreateProtectedDatabaseRequest request)Creates a new Protected Database.CreateProtectionPolicyResponsecreateProtectionPolicy(CreateProtectionPolicyRequest request)Creates a new Protection Policy.CreateRecoveryServiceSubnetResponsecreateRecoveryServiceSubnet(CreateRecoveryServiceSubnetRequest request)Creates a new Recovery Service Subnet.DeleteProtectedDatabaseResponsedeleteProtectedDatabase(DeleteProtectedDatabaseRequest request)Deletes a protected database based on the specified protected database ID.DeleteProtectionPolicyResponsedeleteProtectionPolicy(DeleteProtectionPolicyRequest request)Deletes a specified protection policy.DeleteRecoveryServiceSubnetResponsedeleteRecoveryServiceSubnet(DeleteRecoveryServiceSubnetRequest request)Deletes a specified recovery service subnet.FetchProtectedDatabaseConfigurationResponsefetchProtectedDatabaseConfiguration(FetchProtectedDatabaseConfigurationRequest request)Downloads the network service configuration file ‘tnsnames.ora’ for a specified protected database.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()Optional<String>getMinimumClientCommonLibraryVersionFromClient()DatabaseRecoveryPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetProtectedDatabaseResponsegetProtectedDatabase(GetProtectedDatabaseRequest request)Gets information about a specified protected database.GetProtectionPolicyResponsegetProtectionPolicy(GetProtectionPolicyRequest request)Gets information about a specified protection policy.GetRecoveryServiceSubnetResponsegetRecoveryServiceSubnet(GetRecoveryServiceSubnetRequest request)Gets information about a specified recovery service subnet.DatabaseRecoveryWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets the status of the work request based on the specified IDListProtectedDatabasesResponselistProtectedDatabases(ListProtectedDatabasesRequest request)Lists the protected databases based on the specified parameters.ListProtectionPoliciesResponselistProtectionPolicies(ListProtectionPoliciesRequest request)Gets a list of protection policies based on the specified parameters.ListRecoveryServiceSubnetsResponselistRecoveryServiceSubnets(ListRecoveryServiceSubnetsRequest request)Returns a list of Recovery Service Subnets.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Return a (paginated) list of errors for a given work request.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Return a (paginated) list of logs for a given work request.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists the work requests in a compartment.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.ScheduleProtectedDatabaseDeletionResponsescheduleProtectedDatabaseDeletion(ScheduleProtectedDatabaseDeletionRequest request)Defines a preferred schedule to delete a protected database after you terminate the source database.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateProtectedDatabaseResponseupdateProtectedDatabase(UpdateProtectedDatabaseRequest request)Updates the Protected DatabaseUpdateProtectionPolicyResponseupdateProtectionPolicy(UpdateProtectionPolicyRequest request)Updates the specified protection policy.UpdateRecoveryServiceSubnetResponseupdateRecoveryServiceSubnet(UpdateRecoveryServiceSubnetRequest request)Updates the specified recovery service subnet.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.recovery.DatabaseRecovery
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configuration
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactory
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfigurators
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
DatabaseRecoveryClient
@Deprecated public DatabaseRecoveryClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeDatabaseRecoveryClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactoriesexecutorService-DatabaseRecoveryClient.Builder.executorService
-
-
Method Detail
-
builder
public static DatabaseRecoveryClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:DatabaseRecoverySets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
setRegionin interfaceDatabaseRecovery- Parameters:
region- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:DatabaseRecoverySets 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 callsetEndpoint.- Specified by:
setRegionin interfaceDatabaseRecovery- Parameters:
regionId- The public region ID.
-
cancelProtectedDatabaseDeletion
public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion(CancelProtectedDatabaseDeletionRequest request)
Description copied from interface:DatabaseRecoveryCancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state.You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state.
- Specified by:
cancelProtectedDatabaseDeletionin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeProtectedDatabaseCompartment
public ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompartment(ChangeProtectedDatabaseCompartmentRequest request)
Description copied from interface:DatabaseRecoveryMoves a protected database resource from the existing compartment to the specified compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeProtectedDatabaseCompartmentin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeProtectedDatabaseSubscription
public ChangeProtectedDatabaseSubscriptionResponse changeProtectedDatabaseSubscription(ChangeProtectedDatabaseSubscriptionRequest request)
Description copied from interface:DatabaseRecoveryAssociates the protected database with a new cloud service environment, such as Microsoft Azure.- Specified by:
changeProtectedDatabaseSubscriptionin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeProtectionPolicyCompartment
public ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartment(ChangeProtectionPolicyCompartmentRequest request)
Description copied from interface:DatabaseRecoveryMoves a protection policy resource from the existing compartment to the specified compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeProtectionPolicyCompartmentin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeRecoveryServiceSubnetCompartment
public ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubnetCompartment(ChangeRecoveryServiceSubnetCompartmentRequest request)
Description copied from interface:DatabaseRecoveryMoves a recovery service subnet resource from the existing compartment to the specified compartment.When provided, If-Match is checked against ETag values of the resource.
- Specified by:
changeRecoveryServiceSubnetCompartmentin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createProtectedDatabase
public CreateProtectedDatabaseResponse createProtectedDatabase(CreateProtectedDatabaseRequest request)
Description copied from interface:DatabaseRecoveryCreates a new Protected Database.- Specified by:
createProtectedDatabasein interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createProtectionPolicy
public CreateProtectionPolicyResponse createProtectionPolicy(CreateProtectionPolicyRequest request)
Description copied from interface:DatabaseRecoveryCreates a new Protection Policy.- Specified by:
createProtectionPolicyin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createRecoveryServiceSubnet
public CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet(CreateRecoveryServiceSubnetRequest request)
Description copied from interface:DatabaseRecoveryCreates a new Recovery Service Subnet.- Specified by:
createRecoveryServiceSubnetin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteProtectedDatabase
public DeleteProtectedDatabaseResponse deleteProtectedDatabase(DeleteProtectedDatabaseRequest request)
Description copied from interface:DatabaseRecoveryDeletes a protected database based on the specified protected database ID.- Specified by:
deleteProtectedDatabasein interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteProtectionPolicy
public DeleteProtectionPolicyResponse deleteProtectionPolicy(DeleteProtectionPolicyRequest request)
Description copied from interface:DatabaseRecoveryDeletes a specified protection policy.You can delete custom policies only. Deleting a Oracle predefined policies will result in status code 405 Method Not Allowed.
- Specified by:
deleteProtectionPolicyin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteRecoveryServiceSubnet
public DeleteRecoveryServiceSubnetResponse deleteRecoveryServiceSubnet(DeleteRecoveryServiceSubnetRequest request)
Description copied from interface:DatabaseRecoveryDeletes a specified recovery service subnet.- Specified by:
deleteRecoveryServiceSubnetin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
fetchProtectedDatabaseConfiguration
public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfiguration(FetchProtectedDatabaseConfigurationRequest request)
Description copied from interface:DatabaseRecoveryDownloads the network service configuration file ‘tnsnames.ora’ for a specified protected database.Applies to user-defined recovery systems only.
- Specified by:
fetchProtectedDatabaseConfigurationin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getProtectedDatabase
public GetProtectedDatabaseResponse getProtectedDatabase(GetProtectedDatabaseRequest request)
Description copied from interface:DatabaseRecoveryGets information about a specified protected database.- Specified by:
getProtectedDatabasein interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getProtectionPolicy
public GetProtectionPolicyResponse getProtectionPolicy(GetProtectionPolicyRequest request)
Description copied from interface:DatabaseRecoveryGets information about a specified protection policy.- Specified by:
getProtectionPolicyin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getRecoveryServiceSubnet
public GetRecoveryServiceSubnetResponse getRecoveryServiceSubnet(GetRecoveryServiceSubnetRequest request)
Description copied from interface:DatabaseRecoveryGets information about a specified recovery service subnet.- Specified by:
getRecoveryServiceSubnetin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWorkRequest
public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Description copied from interface:DatabaseRecoveryGets the status of the work request based on the specified ID- Specified by:
getWorkRequestin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listProtectedDatabases
public ListProtectedDatabasesResponse listProtectedDatabases(ListProtectedDatabasesRequest request)
Description copied from interface:DatabaseRecoveryLists the protected databases based on the specified parameters.- Specified by:
listProtectedDatabasesin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listProtectionPolicies
public ListProtectionPoliciesResponse listProtectionPolicies(ListProtectionPoliciesRequest request)
Description copied from interface:DatabaseRecoveryGets a list of protection policies based on the specified parameters.- Specified by:
listProtectionPoliciesin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listRecoveryServiceSubnets
public ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets(ListRecoveryServiceSubnetsRequest request)
Description copied from interface:DatabaseRecoveryReturns a list of Recovery Service Subnets.- Specified by:
listRecoveryServiceSubnetsin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestErrors
public ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Description copied from interface:DatabaseRecoveryReturn a (paginated) list of errors for a given work request.- Specified by:
listWorkRequestErrorsin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequestLogs
public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Description copied from interface:DatabaseRecoveryReturn a (paginated) list of logs for a given work request.- Specified by:
listWorkRequestLogsin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listWorkRequests
public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Description copied from interface:DatabaseRecoveryLists the work requests in a compartment.- Specified by:
listWorkRequestsin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
scheduleProtectedDatabaseDeletion
public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion(ScheduleProtectedDatabaseDeletionRequest request)
Description copied from interface:DatabaseRecoveryDefines a preferred schedule to delete a protected database after you terminate the source database.The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
- Specified by:
scheduleProtectedDatabaseDeletionin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateProtectedDatabase
public UpdateProtectedDatabaseResponse updateProtectedDatabase(UpdateProtectedDatabaseRequest request)
Description copied from interface:DatabaseRecoveryUpdates the Protected Database- Specified by:
updateProtectedDatabasein interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateProtectionPolicy
public UpdateProtectionPolicyResponse updateProtectionPolicy(UpdateProtectionPolicyRequest request)
Description copied from interface:DatabaseRecoveryUpdates the specified protection policy.- Specified by:
updateProtectionPolicyin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateRecoveryServiceSubnet
public UpdateRecoveryServiceSubnetResponse updateRecoveryServiceSubnet(UpdateRecoveryServiceSubnetRequest request)
Description copied from interface:DatabaseRecoveryUpdates the specified recovery service subnet.- Specified by:
updateRecoveryServiceSubnetin interfaceDatabaseRecovery- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public DatabaseRecoveryWaiters getWaiters()
Description copied from interface:DatabaseRecoveryGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceDatabaseRecovery- Returns:
- The service waiters.
-
getPaginators
public DatabaseRecoveryPaginators getPaginators()
Description copied from interface:DatabaseRecoveryGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceDatabaseRecovery- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-