public class RestoreTableFromClusterSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RestoreTableFromClusterSnapshot operation.
Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.
You cannot use RestoreTableFromClusterSnapshot to restore
a table with the same name as an existing table in an Amazon Redshift
cluster. That is, you cannot overwrite an existing table in a cluster
with a restored table. If you want to replace your original table with
a new, restored table, then rename or drop your original table before
you call RestoreTableFromClusterSnapshot . When you have
renamed your original table, then you can pass the original name of
the table as the NewTableName parameter value in the call
to RestoreTableFromClusterSnapshot . This way, you can
replace the original table with the table created from the snapshot.
NOOP| Constructor and Description |
|---|
RestoreTableFromClusterSnapshotRequest() |
| Modifier and Type | Method and Description |
|---|---|
RestoreTableFromClusterSnapshotRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClusterIdentifier()
The identifier of the Amazon Redshift cluster to restore the table to.
|
String |
getNewTableName()
The name of the table to create as a result of the current request.
|
String |
getSnapshotIdentifier()
The identifier of the snapshot to restore the table from.
|
String |
getSourceDatabaseName()
The name of the source database that contains the table to restore
from.
|
String |
getSourceSchemaName()
The name of the source schema that contains the table to restore from.
|
String |
getSourceTableName()
The name of the source table to restore from.
|
String |
getTargetDatabaseName()
The name of the database to restore the table to.
|
String |
getTargetSchemaName()
The name of the schema to restore the table to.
|
int |
hashCode() |
void |
setClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster to restore the table to.
|
void |
setNewTableName(String newTableName)
The name of the table to create as a result of the current request.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot to restore the table from.
|
void |
setSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table to restore
from.
|
void |
setSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table to restore from.
|
void |
setSourceTableName(String sourceTableName)
The name of the source table to restore from.
|
void |
setTargetDatabaseName(String targetDatabaseName)
The name of the database to restore the table to.
|
void |
setTargetSchemaName(String targetSchemaName)
The name of the schema to restore the table to.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RestoreTableFromClusterSnapshotRequest |
withClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster to restore the table to.
|
RestoreTableFromClusterSnapshotRequest |
withNewTableName(String newTableName)
The name of the table to create as a result of the current request.
|
RestoreTableFromClusterSnapshotRequest |
withSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot to restore the table from.
|
RestoreTableFromClusterSnapshotRequest |
withSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table to restore
from.
|
RestoreTableFromClusterSnapshotRequest |
withSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table to restore from.
|
RestoreTableFromClusterSnapshotRequest |
withSourceTableName(String sourceTableName)
The name of the source table to restore from.
|
RestoreTableFromClusterSnapshotRequest |
withTargetDatabaseName(String targetDatabaseName)
The name of the database to restore the table to.
|
RestoreTableFromClusterSnapshotRequest |
withTargetSchemaName(String targetSchemaName)
The name of the schema to restore the table to.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic RestoreTableFromClusterSnapshotRequest()
public String getClusterIdentifier()
public void setClusterIdentifier(String clusterIdentifier)
clusterIdentifier - The identifier of the Amazon Redshift cluster to restore the table to.public RestoreTableFromClusterSnapshotRequest withClusterIdentifier(String clusterIdentifier)
Returns a reference to this object so that method calls can be chained together.
clusterIdentifier - The identifier of the Amazon Redshift cluster to restore the table to.public String getSnapshotIdentifier()
ClusterIdentifier parameter.ClusterIdentifier parameter.public void setSnapshotIdentifier(String snapshotIdentifier)
ClusterIdentifier parameter.snapshotIdentifier - The identifier of the snapshot to restore the table from. This
snapshot must have been created from the Amazon Redshift cluster
specified by the ClusterIdentifier parameter.public RestoreTableFromClusterSnapshotRequest withSnapshotIdentifier(String snapshotIdentifier)
ClusterIdentifier parameter.
Returns a reference to this object so that method calls can be chained together.
snapshotIdentifier - The identifier of the snapshot to restore the table from. This
snapshot must have been created from the Amazon Redshift cluster
specified by the ClusterIdentifier parameter.public String getSourceDatabaseName()
public void setSourceDatabaseName(String sourceDatabaseName)
sourceDatabaseName - The name of the source database that contains the table to restore
from.public RestoreTableFromClusterSnapshotRequest withSourceDatabaseName(String sourceDatabaseName)
Returns a reference to this object so that method calls can be chained together.
sourceDatabaseName - The name of the source database that contains the table to restore
from.public String getSourceSchemaName()
SourceSchemaName value, the
default is public.SourceSchemaName value, the
default is public.public void setSourceSchemaName(String sourceSchemaName)
SourceSchemaName value, the
default is public.sourceSchemaName - The name of the source schema that contains the table to restore from.
If you do not specify a SourceSchemaName value, the
default is public.public RestoreTableFromClusterSnapshotRequest withSourceSchemaName(String sourceSchemaName)
SourceSchemaName value, the
default is public.
Returns a reference to this object so that method calls can be chained together.
sourceSchemaName - The name of the source schema that contains the table to restore from.
If you do not specify a SourceSchemaName value, the
default is public.public String getSourceTableName()
public void setSourceTableName(String sourceTableName)
sourceTableName - The name of the source table to restore from.public RestoreTableFromClusterSnapshotRequest withSourceTableName(String sourceTableName)
Returns a reference to this object so that method calls can be chained together.
sourceTableName - The name of the source table to restore from.public String getTargetDatabaseName()
public void setTargetDatabaseName(String targetDatabaseName)
targetDatabaseName - The name of the database to restore the table to.public RestoreTableFromClusterSnapshotRequest withTargetDatabaseName(String targetDatabaseName)
Returns a reference to this object so that method calls can be chained together.
targetDatabaseName - The name of the database to restore the table to.public String getTargetSchemaName()
public void setTargetSchemaName(String targetSchemaName)
targetSchemaName - The name of the schema to restore the table to.public RestoreTableFromClusterSnapshotRequest withTargetSchemaName(String targetSchemaName)
Returns a reference to this object so that method calls can be chained together.
targetSchemaName - The name of the schema to restore the table to.public String getNewTableName()
public void setNewTableName(String newTableName)
newTableName - The name of the table to create as a result of the current request.public RestoreTableFromClusterSnapshotRequest withNewTableName(String newTableName)
Returns a reference to this object so that method calls can be chained together.
newTableName - The name of the table to create as a result of the current request.public String toString()
toString in class ObjectObject.toString()public RestoreTableFromClusterSnapshotRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2016. All rights reserved.