public class DropBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.dropBackup.
Deletes an existing database backup and all its contained snapshots.
| Modifier and Type | Class and Description |
|---|---|
static class |
DropBackupRequest.Options
A set of string constants for the
DropBackupRequest parameter
options. |
| Constructor and Description |
|---|
DropBackupRequest()
Constructs a DropBackupRequest object with default parameters.
|
DropBackupRequest(String backupName,
String datasinkName,
Map<String,String> options)
Constructs a DropBackupRequest object with the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getBackupName()
Name of the backup object to be deleted.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getDatasinkName()
Datasink where backup is stored.
|
Map<String,String> |
getOptions()
Optional parameters.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
DropBackupRequest |
setBackupName(String backupName)
Name of the backup object to be deleted.
|
DropBackupRequest |
setDatasinkName(String datasinkName)
Datasink where backup is stored.
|
DropBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public DropBackupRequest()
public DropBackupRequest(String backupName, String datasinkName, Map<String,String> options)
backupName - Name of the backup object to be deleted. An empty
string or '*' will delete all existing backups if
TRUE.datasinkName - Datasink where backup is stored.options - Optional parameters.
DRY_RUN: Dry run of drop
backup.
Supported values:
The default value is FALSE.
DELETE_ALL_BACKUPS: All multiple backups to be
deleted if TRUE and
multiple backup names were found matching prefix
of backupName.
Supported values:
The default value is FALSE.
NO_ERROR_IF_NOT_EXISTS: If FALSE will return an error if the provided
backupName does not exist.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
TRUE.backupName.public DropBackupRequest setBackupName(String backupName)
TRUE.backupName - The new value for backupName.this to mimic the builder pattern.public String getDatasinkName()
datasinkName.public DropBackupRequest setDatasinkName(String datasinkName)
datasinkName - The new value for datasinkName.this to mimic the builder pattern.public Map<String,String> getOptions()
DRY_RUN: Dry run of drop backup.
Supported values:
The default value is FALSE.
DELETE_ALL_BACKUPS: All
multiple backups to be deleted if TRUE and
multiple backup names were found matching prefix of backupName.
Supported values:
The default value is FALSE.
NO_ERROR_IF_NOT_EXISTS:
If FALSE will return an error if the
provided backupName does not exist.
Supported values:
The default value is FALSE.
Map.options.public DropBackupRequest setOptions(Map<String,String> options)
DRY_RUN: Dry run of drop backup.
Supported values:
The default value is FALSE.
DELETE_ALL_BACKUPS: All
multiple backups to be deleted if TRUE and
multiple backup names were found matching prefix of backupName.
Supported values:
The default value is FALSE.
NO_ERROR_IF_NOT_EXISTS:
If FALSE will return an error if the
provided backupName does not exist.
Supported values:
The default value is FALSE.
Map.options - The new value for options.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.