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

com.oracle.bmc.recovery.DatabaseRecovery Maven / Gradle / Ivy

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

import com.oracle.bmc.recovery.requests.*;
import com.oracle.bmc.recovery.responses.*;

/**
 * Use Oracle Database Autonomous Recovery Service API to manage Protected Databases. This service
 * client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no
 * circuit breaker configuration is defined by the user.
 */
@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216")
public interface DatabaseRecovery extends AutoCloseable {

    /** Rebuilds the client from scratch. Useful to refresh certificates. */
    void refreshClient();

    /**
     * Sets the endpoint to call (ex, https://www.example.com).
     *
     * @param endpoint The endpoint of the service.
     */
    void setEndpoint(String endpoint);

    /** Gets the set endpoint for REST call (ex, https://www.example.com) */
    String getEndpoint();

    /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     *
     * 

Note, this will call {@link #setEndpoint(String) setEndpoint} after resolving the * endpoint. If the service is not available in this Region, however, an * IllegalArgumentException will be raised. * * @param region The region of the service. */ void setRegion(com.oracle.bmc.Region region); /** * 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 {@link * #setRegion(Region) setRegion}. * *

If no known Region could be determined, it will create an endpoint based on the default * endpoint format ({@link com.oracle.bmc.Region#formatDefaultRegionEndpoint(Service, String)} * and then call {@link #setEndpoint(String) setEndpoint}. * * @param regionId The public region ID. */ void setRegion(String regionId); /** * 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" * * @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint * template */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); /** * Cancels 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. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CancelProtectedDatabaseDeletion API. */ CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( CancelProtectedDatabaseDeletionRequest request); /** * Moves a protected database resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ChangeProtectedDatabaseCompartment API. */ ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompartment( ChangeProtectedDatabaseCompartmentRequest request); /** * Moves a protection policy resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ChangeProtectionPolicyCompartment API. */ ChangeProtectionPolicyCompartmentResponse changeProtectionPolicyCompartment( ChangeProtectionPolicyCompartmentRequest request); /** * Moves 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. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ChangeRecoveryServiceSubnetCompartment API. */ ChangeRecoveryServiceSubnetCompartmentResponse changeRecoveryServiceSubnetCompartment( ChangeRecoveryServiceSubnetCompartmentRequest request); /** * Creates a new Protected Database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CreateProtectedDatabase API. */ CreateProtectedDatabaseResponse createProtectedDatabase(CreateProtectedDatabaseRequest request); /** * Creates a new Protection Policy. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CreateProtectionPolicy API. */ CreateProtectionPolicyResponse createProtectionPolicy(CreateProtectionPolicyRequest request); /** * Creates a new Recovery Service Subnet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * CreateRecoveryServiceSubnet API. */ CreateRecoveryServiceSubnetResponse createRecoveryServiceSubnet( CreateRecoveryServiceSubnetRequest request); /** * Deletes a protected database based on the specified protected database ID. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DeleteProtectedDatabase API. */ DeleteProtectedDatabaseResponse deleteProtectedDatabase(DeleteProtectedDatabaseRequest request); /** * Deletes a specified protection policy. You can delete custom policies only. Deleting a Oracle * predefined policies will result in status code 405 Method Not Allowed. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DeleteProtectionPolicy API. */ DeleteProtectionPolicyResponse deleteProtectionPolicy(DeleteProtectionPolicyRequest request); /** * Deletes a specified recovery service subnet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * DeleteRecoveryServiceSubnet API. */ DeleteRecoveryServiceSubnetResponse deleteRecoveryServiceSubnet( DeleteRecoveryServiceSubnetRequest request); /** * Downloads the network service configuration file 'tnsnames.ora' for a specified protected * database. Applies to user-defined recovery systems only. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * FetchProtectedDatabaseConfiguration API. */ FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfiguration( FetchProtectedDatabaseConfigurationRequest request); /** * Gets information about a specified protected database. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * GetProtectedDatabase API. */ GetProtectedDatabaseResponse getProtectedDatabase(GetProtectedDatabaseRequest request); /** * Gets information about a specified protection policy. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GetProtectionPolicy * API. */ GetProtectionPolicyResponse getProtectionPolicy(GetProtectionPolicyRequest request); /** * Gets information about a specified recovery service subnet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * GetRecoveryServiceSubnet API. */ GetRecoveryServiceSubnetResponse getRecoveryServiceSubnet( GetRecoveryServiceSubnetRequest request); /** * Gets the status of the work request based on the specified ID * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use GetWorkRequest API. */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); /** * Lists the protected databases based on the specified parameters. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListProtectedDatabases API. */ ListProtectedDatabasesResponse listProtectedDatabases(ListProtectedDatabasesRequest request); /** * Gets a list of protection policies based on the specified parameters. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListProtectionPolicies API. */ ListProtectionPoliciesResponse listProtectionPolicies(ListProtectionPoliciesRequest request); /** * Returns a list of Recovery Service Subnets. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListRecoveryServiceSubnets API. */ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( ListRecoveryServiceSubnetsRequest request); /** * Return a (paginated) list of errors for a given work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ListWorkRequestErrors API. */ ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request); /** * Return a (paginated) list of logs for a given work request. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ListWorkRequestLogs * API. */ ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request); /** * Lists the work requests in a compartment. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use ListWorkRequests * API. */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); /** * Defines 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. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * ScheduleProtectedDatabaseDeletion API. */ ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion( ScheduleProtectedDatabaseDeletionRequest request); /** * Updates the Protected Database * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UpdateProtectedDatabase API. */ UpdateProtectedDatabaseResponse updateProtectedDatabase(UpdateProtectedDatabaseRequest request); /** * Updates the specified protection policy. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UpdateProtectionPolicy API. */ UpdateProtectionPolicyResponse updateProtectionPolicy(UpdateProtectionPolicyRequest request); /** * Updates the specified recovery service subnet. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation * @throws BmcException when an error occurs. This operation uses * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is * provided. The specifics of the default retry strategy are described here * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries *

Example: Click here to see how to use * UpdateRecoveryServiceSubnet API. */ UpdateRecoveryServiceSubnetResponse updateRecoveryServiceSubnet( UpdateRecoveryServiceSubnetRequest request); /** * Gets the pre-configured waiters available for resources for this service. * * @return The service waiters. */ DatabaseRecoveryWaiters getWaiters(); /** * Gets the pre-configured paginators available for list operations in this service which may * return multiple pages of data. These paginators provide an {@link java.lang.Iterable} * interface so that service responses, or resources/records, can be iterated through without * having to manually deal with pagination and page tokens. * * @return The service paginators. */ DatabaseRecoveryPaginators getPaginators(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy