Package com.cloudera.cdp.datalake.model
Class RestoreDatalakeRequest
java.lang.Object
com.cloudera.cdp.datalake.model.RestoreDatalakeRequest
@Generated(value="com.cloudera.cdp.client.codegen.CdpSDKJavaCodegen",
date="2024-09-27T08:40:26.246-07:00")
public class RestoreDatalakeRequest
extends Object
Request to restore datalake from backup. Restore does not restore the database by default.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Getter for backupId.Getter for backupLocationOverride.Getter for backupName.Getter for datalakeName.Getter for includeDatabase.Getter for skipAtlasIndexes.Getter for skipAtlasMetadata.Getter for skipRangerAudits.Getter for skipRangerHmsMetadata.Getter for skipValidation.Getter for validationOnly.int
hashCode()
void
setBackupId
(String backupId) Setter for backupId.void
setBackupLocationOverride
(String backupLocationOverride) Setter for backupLocationOverride.void
setBackupName
(String backupName) Setter for backupName.void
setDatalakeName
(String datalakeName) Setter for datalakeName.void
setIncludeDatabase
(Boolean includeDatabase) Setter for includeDatabase.void
setSkipAtlasIndexes
(Boolean skipAtlasIndexes) Setter for skipAtlasIndexes.void
setSkipAtlasMetadata
(Boolean skipAtlasMetadata) Setter for skipAtlasMetadata.void
setSkipRangerAudits
(Boolean skipRangerAudits) Setter for skipRangerAudits.void
setSkipRangerHmsMetadata
(Boolean skipRangerHmsMetadata) Setter for skipRangerHmsMetadata.void
setSkipValidation
(Boolean skipValidation) Setter for skipValidation.void
setValidationOnly
(Boolean validationOnly) Setter for validationOnly.toString()
-
Constructor Details
-
RestoreDatalakeRequest
public RestoreDatalakeRequest()
-
-
Method Details
-
getDatalakeName
Getter for datalakeName. The name of the datalake to be restored. When backupId is not provided, the most recent successful backup on datalake with the provided name would be used. -
setDatalakeName
Setter for datalakeName. The name of the datalake to be restored. When backupId is not provided, the most recent successful backup on datalake with the provided name would be used. -
getBackupId
Getter for backupId. The ID of the backup to be used to perform a restore. The ID could refer to backup of any datalake in the same account. This is the only way to restore from a backup that was taken on a datalake with a different name. This field is required if the --backup-location-override field is used. -
setBackupId
Setter for backupId. The ID of the backup to be used to perform a restore. The ID could refer to backup of any datalake in the same account. This is the only way to restore from a backup that was taken on a datalake with a different name. This field is required if the --backup-location-override field is used. -
getBackupName
Getter for backupName. The name of the backup. When provided, the restore will be performed using the latest successful backup whose name matches the parameter, and that was taken from the datalake that is being restored. -
setBackupName
Setter for backupName. The name of the backup. When provided, the restore will be performed using the latest successful backup whose name matches the parameter, and that was taken from the datalake that is being restored. -
getIncludeDatabase
Getter for includeDatabase. DEPRECATED - The database is included in the restore by default. To skip it, use the --skip-ranger-hms-metadata flag. -
setIncludeDatabase
Setter for includeDatabase. DEPRECATED - The database is included in the restore by default. To skip it, use the --skip-ranger-hms-metadata flag. -
getSkipRangerHmsMetadata
Getter for skipRangerHmsMetadata. Skips the restore of the databases backing HMS/Ranger services. If this option is not provided, then by default the Atlas lineage will be restored if the backup used includes the Atlas lineage information. -
setSkipRangerHmsMetadata
Setter for skipRangerHmsMetadata. Skips the restore of the databases backing HMS/Ranger services. If this option is not provided, then by default the Atlas lineage will be restored if the backup used includes the Atlas lineage information. -
getSkipAtlasMetadata
Getter for skipAtlasMetadata. Skips the restore of the Atlas metadata. If this option is not provided, then by default the Atlas metadata will be restored if the backup used includes the Atlas metadata. -
setSkipAtlasMetadata
Setter for skipAtlasMetadata. Skips the restore of the Atlas metadata. If this option is not provided, then by default the Atlas metadata will be restored if the backup used includes the Atlas metadata. -
getSkipRangerAudits
Getter for skipRangerAudits. Skips the restore of the Ranger audits. If this option is not provided, then by default the Ranger audits will be restored if the backup used includes the Ranger audits. -
setSkipRangerAudits
Setter for skipRangerAudits. Skips the restore of the Ranger audits. If this option is not provided, then by default the Ranger audits will be restored if the backup used includes the Ranger audits. -
getSkipAtlasIndexes
Getter for skipAtlasIndexes. Skips the restore of the Atlas indexes. If this option or --skipAtlasMetadata is not provided, then by default the Atlas indexes will be restored if the backup used includes the Atlas indexes. Redundant if --skipAtlasMetadata is included. -
setSkipAtlasIndexes
Setter for skipAtlasIndexes. Skips the restore of the Atlas indexes. If this option or --skipAtlasMetadata is not provided, then by default the Atlas indexes will be restored if the backup used includes the Atlas indexes. Redundant if --skipAtlasMetadata is included. -
getBackupLocationOverride
Getter for backupLocationOverride. Backup location. When provided, will be used to lookup the backup. If provided, the --backup-id parameter is required. -
setBackupLocationOverride
Setter for backupLocationOverride. Backup location. When provided, will be used to lookup the backup. If provided, the --backup-id parameter is required. -
getSkipValidation
Getter for skipValidation. Skips the validation steps that run prior to the restore. If this option is not provided, the validations are performed by default. -
setSkipValidation
Setter for skipValidation. Skips the validation steps that run prior to the restore. If this option is not provided, the validations are performed by default. -
getValidationOnly
Getter for validationOnly. Runs only the validation steps and then returns. If this option is not provided, the restore is performed as normal by default. -
setValidationOnly
Setter for validationOnly. Runs only the validation steps and then returns. If this option is not provided, the restore is performed as normal by default. -
equals
-
hashCode
public int hashCode() -
toString
-