public class ShowBackupRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showBackup.
Shows information about a backup Returns detailed information about one or more backup instances.
| Modifier and Type | Class and Description |
|---|---|
static class |
ShowBackupRequest.Options
A set of string constants for the
ShowBackupRequest parameter
options. |
| Constructor and Description |
|---|
ShowBackupRequest()
Constructs a ShowBackupRequest object with default parameters.
|
ShowBackupRequest(String backupName,
String datasourceName,
Map<String,String> options)
Constructs a ShowBackupRequest 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.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getDatasourceName()
Datasource where backup is located.
|
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.
|
ShowBackupRequest |
setBackupName(String backupName)
Name of the backup object.
|
ShowBackupRequest |
setDatasourceName(String datasourceName)
Datasource where backup is located.
|
ShowBackupRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public ShowBackupRequest()
public ShowBackupRequest(String backupName, String datasourceName, Map<String,String> options)
backupName - Name of the backup object. An empty string or '*'
will return all existing backups. The default value
is ''.datasourceName - Datasource where backup is located.options - Optional parameters.
BACKUP_ID: Backup
instance ID to show. Leave empty to show
information from the most recent backup instance
in the container. The default value is ''.
SHOW_CONTENTS:
Shows the contents of the specified backup_id.
Supported values:
NONE: No backup
contents
OBJECT_NAMES: Object names only
OBJECT_FILES: Object names and files
NONE.
NO_ERROR_IF_NOT_EXISTS: If FALSE will return an error if the provided
backupName does not exist. If TRUE then it will return an empty
result.
Supported values:
The default value is FALSE.
Map.public static org.apache.avro.Schema getClassSchema()
public String getBackupName()
backupName.public ShowBackupRequest setBackupName(String backupName)
backupName - The new value for backupName.this to mimic the builder pattern.public String getDatasourceName()
datasourceName.public ShowBackupRequest setDatasourceName(String datasourceName)
datasourceName - The new value for datasourceName.this to mimic the builder pattern.public Map<String,String> getOptions()
BACKUP_ID: Backup instance ID to show.
Leave empty to show information from the most recent backup
instance in the container. The default value is ''.
SHOW_CONTENTS: Shows the contents
of the specified backup_id.
Supported values:
NONE: No backup contents
OBJECT_NAMES: Object names
only
OBJECT_FILES: Object names
and files
NONE.
NO_ERROR_IF_NOT_EXISTS:
If FALSE will return an error if the
provided backupName does not exist. If
TRUE then it will return an empty result.
Supported values:
The default value is FALSE.
Map.options.public ShowBackupRequest setOptions(Map<String,String> options)
BACKUP_ID: Backup instance ID to show.
Leave empty to show information from the most recent backup
instance in the container. The default value is ''.
SHOW_CONTENTS: Shows the contents
of the specified backup_id.
Supported values:
NONE: No backup contents
OBJECT_NAMES: Object names
only
OBJECT_FILES: Object names
and files
NONE.
NO_ERROR_IF_NOT_EXISTS:
If FALSE will return an error if the
provided backupName does not exist. If
TRUE then it will return an empty result.
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.