public class AlterBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.alterBackup.
Alters an existing database backup, accessible via the data sink
specified by datasinkName.
| 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 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()
Data sink through which the backup is accessible.
|
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()
Value of the modification, depending on
action. |
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 to be altered.
|
AlterBackupRequest |
setDatasinkName(String datasinkName)
Data sink through which the backup is accessible.
|
AlterBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
AlterBackupRequest |
setValue(String value)
Value of the modification, depending on
action. |
String |
toString() |
public AlterBackupRequest()
public AlterBackupRequest(String backupName, String action, String value, String datasinkName, Map<String,String> options)
backupName - Name of the backup to be altered.action - Operation to be applied.
Supported values:
CHECKSUM: Calculate
checksum for backed-up files.
DDL_ONLY: Whether or not
to only save DDL and not back up table data, when
taking future snapshots; set value to
'true' or 'false' for DDL only or DDL and table
data, respectively.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number
of incremental snapshots to keep, when taking
future snapshots; set value to the number
of snapshots to keep.
MERGE: Merges all snapshots
within a backup and creates a single full
snapshot.
PURGE: Deletes a snapshot
from a backup; set value to the snapshot
ID to purge.
value - Value of the modification, depending on action.datasinkName - Data sink through which the backup is accessible.options - Optional parameters.
COMMENT: Comments to
store with the backup.
DRY_RUN: Whether or not
to perform a dry run of a backup alteration.
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
backed-up files.
DDL_ONLY: Whether or not to only save
DDL and not back up table data, when taking future snapshots;
set value to 'true' or 'false' for DDL only
or DDL and table data, respectively.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
snapshots to keep, when taking future snapshots; set value to the number of snapshots to keep.
MERGE: Merges all snapshots within a backup
and creates a single full snapshot.
PURGE: Deletes a snapshot from a backup;
set value to the snapshot ID to purge.
action.public AlterBackupRequest setAction(String action)
CHECKSUM: Calculate checksum for
backed-up files.
DDL_ONLY: Whether or not to only save
DDL and not back up table data, when taking future snapshots;
set value to 'true' or 'false' for DDL only
or DDL and table data, respectively.
MAX_INCREMENTAL_BACKUPS_TO_KEEP: Maximum number of incremental
snapshots to keep, when taking future snapshots; set value to the number of snapshots to keep.
MERGE: Merges all snapshots within a backup
and creates a single full snapshot.
PURGE: Deletes a snapshot from a backup;
set value to the snapshot ID to purge.
action - The new value for action.this to mimic the builder pattern.public String getValue()
action.value.public AlterBackupRequest setValue(String value)
action.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
backup.
DRY_RUN: Whether or not to perform a dry
run of a backup alteration.
Supported values:
The default value is FALSE.
Map.options.public AlterBackupRequest setOptions(Map<String,String> options)
COMMENT: Comments to store with the
backup.
DRY_RUN: Whether or not to perform a dry
run of a backup alteration.
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.