public class AlterBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterBackup.
Alters an existing database backup containing a current snapshot of existing objects.
| Modifier and Type | Class and Description |
|---|---|
static class |
AlterBackupRequest.Action
A set of string constants for the
AlterBackupRequest parameter
action. |
static class |
AlterBackupRequest.Options
A set of string constants for the
AlterBackupRequest parameter
options. |
| Constructor and Description |
|---|
AlterBackupRequest()
Constructs an AlterBackupRequest object with default parameters.
|
AlterBackupRequest(String backupName,
String action,
String value,
String datasinkName,
Map<String,String> options)
Constructs an AlterBackupRequest 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 |
getAction()
Operation to be applied.
|
String |
getBackupName()
Name of the backup object to be altered
|
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 will be 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.
|
String |
getValue()
Action specific argument.
|
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.
|
AlterBackupRequest |
setAction(String action)
Operation to be applied.
|
AlterBackupRequest |
setBackupName(String backupName)
Name of the backup object to be altered
|
AlterBackupRequest |
setDatasinkName(String datasinkName)
Datasink where backup will be stored.
|
AlterBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterBackupRequest |
setValue(String value)
Action specific argument.
|
String |
toString() |
public AlterBackupRequest()
public AlterBackupRequest(String backupName, String action, String value, String datasinkName, Map<String,String> options)
backupName - Name of the backup object to be alteredaction - Operation to be applied.
Supported values:
CHECKSUM: Calculate
checksum for backup files
DDL_ONLY: Only save the
DDL, do not backup table data
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number
of incremental backups to keep
MERGE: Merges all backup
instances and creates a single full backup
PURGE: Purges backup
instances
value - Action specific argument.datasinkName - Datasink where backup will be stored.options - Optional parameters.
COMMENT: Comments to
store with the new backup instance
DRY_RUN: Dry run of
backup changes.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
backupName.public AlterBackupRequest setBackupName(String backupName)
backupName - The new value for backupName.this to mimic the builder pattern.public String getAction()
CHECKSUM: Calculate checksum for backup
files
DDL_ONLY: Only save the DDL, do not
backup table data
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
backups to keep
MERGE: Merges all backup instances and
creates a single full backup
PURGE: Purges backup instances
action.public AlterBackupRequest setAction(String action)
CHECKSUM: Calculate checksum for backup
files
DDL_ONLY: Only save the DDL, do not
backup table data
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
backups to keep
MERGE: Merges all backup instances and
creates a single full backup
PURGE: Purges backup instances
action - The new value for action.this to mimic the builder pattern.public String getValue()
value.public AlterBackupRequest setValue(String value)
value - The new value for value.this to mimic the builder pattern.public String getDatasinkName()
datasinkName.public AlterBackupRequest setDatasinkName(String datasinkName)
datasinkName - The new value for datasinkName.this to mimic the builder pattern.public Map<String,String> getOptions()
COMMENT: Comments to store with the new
backup instance
DRY_RUN: Dry run of backup changes.
Supported values:
The default value is FALSE.
Map.options.public AlterBackupRequest setOptions(Map<String,String> options)
COMMENT: Comments to store with the new
backup instance
DRY_RUN: Dry run of backup changes.
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.