Class CreateProtectedDatabaseRequest
- java.lang.Object
- 
- com.oracle.bmc.requests.BmcRequest<CreateProtectedDatabaseDetails>
- 
- com.oracle.bmc.recovery.requests.CreateProtectedDatabaseRequest
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210216") public class CreateProtectedDatabaseRequest extends BmcRequest<CreateProtectedDatabaseDetails>Example: Click <a href=“https://docs.oracle.com/en-us/iaas/tools/java-sdk-examples/3.75.0/recovery/CreateProtectedDatabaseExample.java.html"target=”_blank"rel=“noopener noreferrer”>here to see how to use CreateProtectedDatabaseRequest. 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCreateProtectedDatabaseRequest.Builder
 - 
Constructor SummaryConstructors Constructor Description CreateProtectedDatabaseRequest()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateProtectedDatabaseRequest.Builderbuilder()Return a new builder for this request object.booleanequals(Object o)Uses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.CreateProtectedDatabaseDetailsgetBody$()Alternative accessor for the body parameter.CreateProtectedDatabaseDetailsgetCreateProtectedDatabaseDetails()Describes the parameters required to create a protected database.BooleangetOpcDryRun()Indicates if the request is to test the preparedness for creating a protected database, without actually creating a protected database.StringgetOpcRequestId()Unique identifier for the request.StringgetOpcRetryToken()A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.inthashCode()Uses getInvocationCallback and getRetryConfiguration to generate a hash.CreateProtectedDatabaseRequest.BuildertoBuilder()Return an instance ofCreateProtectedDatabaseRequest.Builderthat allows you to modify request properties.StringtoString()- 
Methods inherited from class com.oracle.bmc.requests.BmcRequestgetInvocationCallback, getRetryConfiguration, setInvocationCallback, setRetryConfiguration, supportsExpect100Continue
 
- 
 
- 
- 
- 
Method Detail- 
getCreateProtectedDatabaseDetailspublic CreateProtectedDatabaseDetails getCreateProtectedDatabaseDetails() Describes the parameters required to create a protected database.
 - 
getOpcRetryTokenpublic String getOpcRetryToken() A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again.Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected. 
 - 
getOpcRequestIdpublic String getOpcRequestId() Unique identifier for the request.
 - 
getOpcDryRunpublic Boolean getOpcDryRun() Indicates if the request is to test the preparedness for creating a protected database, without actually creating a protected database.If you set the opcDryRun option as true, then Recovery Service only performs a test run to check for any missing prerequisites or configurations required to create a protected database, and then returns error messages to warn you about any missing requirements. If an error occurs, you can review, correct, and repeat the dry run until the createProtectedDatabase request does not return any errors. These are the common issues that you can identify by performing a dry run of the createProtectedDatabase request: The Recovery Service subnet has insufficient free IP addresses to support the required number of private endpoints. See, [troubleshooting](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9) information * Recovery Service does not have permissions to manage the network resources in a chosen compartment * Recovery Service is out of capacity. See, [Service Limits](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm) for more information * Recovery Service resources exceed quota limits * A protected database, having the same database ID, already exists * The specified protection policy does not exist, or it is not in an Active state * The specified Recovery Service subnet does not exist, or it is not in an Active state See, [Prerequisites for Using Recovery Service](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A) for more information. 
 - 
getBody$public CreateProtectedDatabaseDetails getBody$() Alternative accessor for the body parameter.- Overrides:
- getBody$in class- BmcRequest<CreateProtectedDatabaseDetails>
- Returns:
- body parameter
 
 - 
toBuilderpublic CreateProtectedDatabaseRequest.Builder toBuilder() Return an instance ofCreateProtectedDatabaseRequest.Builderthat allows you to modify request properties.- Returns:
- instance of CreateProtectedDatabaseRequest.Builderthat allows you to modify request properties.
 
 - 
builderpublic static CreateProtectedDatabaseRequest.Builder builder() Return a new builder for this request object.- Returns:
- builder for the request object
 
 - 
equalspublic boolean equals(Object o) Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to determine if passed request is equal to ‘this’.- Overrides:
- equalsin class- BmcRequest<CreateProtectedDatabaseDetails>
 
 - 
hashCodepublic int hashCode() Description copied from class:BmcRequestUses getInvocationCallback and getRetryConfiguration to generate a hash.- Overrides:
- hashCodein class- BmcRequest<CreateProtectedDatabaseDetails>
 
 
- 
 
-