Class TableRestoreStatus
- java.lang.Object
-
- com.amazonaws.services.redshift.model.TableRestoreStatus
-
- All Implemented Interfaces:
Serializable,Cloneable
public class TableRestoreStatus extends Object implements Serializable, Cloneable
Describes the status of a RestoreTableFromClusterSnapshot operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableRestoreStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableRestoreStatusclone()booleanequals(Object obj)StringgetClusterIdentifier()The identifier of the Amazon Redshift cluster that the table is being restored to.StringgetMessage()A description of the status of the table restore request.StringgetNewTableName()The name of the table to create as a result of the table restore request.LonggetProgressInMegaBytes()The amount of data restored to the new table so far, in megabytes (MB).DategetRequestTime()The time that the table restore request was made, in Universal Coordinated Time (UTC).StringgetSnapshotIdentifier()The identifier of the snapshot that the table is being restored from.StringgetSourceDatabaseName()The name of the source database that contains the table being restored.StringgetSourceSchemaName()The name of the source schema that contains the table being restored.StringgetSourceTableName()The name of the source table being restored.StringgetStatus()A value that describes the current state of the table restore request.StringgetTableRestoreRequestId()The unique identifier for the table restore request.StringgetTargetDatabaseName()The name of the database to restore the table to.StringgetTargetSchemaName()The name of the schema to restore the table to.LonggetTotalDataInMegaBytes()The total amount of data to restore to the new table, in megabytes (MB).inthashCode()voidsetClusterIdentifier(String clusterIdentifier)The identifier of the Amazon Redshift cluster that the table is being restored to.voidsetMessage(String message)A description of the status of the table restore request.voidsetNewTableName(String newTableName)The name of the table to create as a result of the table restore request.voidsetProgressInMegaBytes(Long progressInMegaBytes)The amount of data restored to the new table so far, in megabytes (MB).voidsetRequestTime(Date requestTime)The time that the table restore request was made, in Universal Coordinated Time (UTC).voidsetSnapshotIdentifier(String snapshotIdentifier)The identifier of the snapshot that the table is being restored from.voidsetSourceDatabaseName(String sourceDatabaseName)The name of the source database that contains the table being restored.voidsetSourceSchemaName(String sourceSchemaName)The name of the source schema that contains the table being restored.voidsetSourceTableName(String sourceTableName)The name of the source table being restored.voidsetStatus(TableRestoreStatusType status)A value that describes the current state of the table restore request.voidsetStatus(String status)A value that describes the current state of the table restore request.voidsetTableRestoreRequestId(String tableRestoreRequestId)The unique identifier for the table restore request.voidsetTargetDatabaseName(String targetDatabaseName)The name of the database to restore the table to.voidsetTargetSchemaName(String targetSchemaName)The name of the schema to restore the table to.voidsetTotalDataInMegaBytes(Long totalDataInMegaBytes)The total amount of data to restore to the new table, in megabytes (MB).StringtoString()Returns a string representation of this object; useful for testing and debugging.TableRestoreStatuswithClusterIdentifier(String clusterIdentifier)The identifier of the Amazon Redshift cluster that the table is being restored to.TableRestoreStatuswithMessage(String message)A description of the status of the table restore request.TableRestoreStatuswithNewTableName(String newTableName)The name of the table to create as a result of the table restore request.TableRestoreStatuswithProgressInMegaBytes(Long progressInMegaBytes)The amount of data restored to the new table so far, in megabytes (MB).TableRestoreStatuswithRequestTime(Date requestTime)The time that the table restore request was made, in Universal Coordinated Time (UTC).TableRestoreStatuswithSnapshotIdentifier(String snapshotIdentifier)The identifier of the snapshot that the table is being restored from.TableRestoreStatuswithSourceDatabaseName(String sourceDatabaseName)The name of the source database that contains the table being restored.TableRestoreStatuswithSourceSchemaName(String sourceSchemaName)The name of the source schema that contains the table being restored.TableRestoreStatuswithSourceTableName(String sourceTableName)The name of the source table being restored.TableRestoreStatuswithStatus(TableRestoreStatusType status)A value that describes the current state of the table restore request.TableRestoreStatuswithStatus(String status)A value that describes the current state of the table restore request.TableRestoreStatuswithTableRestoreRequestId(String tableRestoreRequestId)The unique identifier for the table restore request.TableRestoreStatuswithTargetDatabaseName(String targetDatabaseName)The name of the database to restore the table to.TableRestoreStatuswithTargetSchemaName(String targetSchemaName)The name of the schema to restore the table to.TableRestoreStatuswithTotalDataInMegaBytes(Long totalDataInMegaBytes)The total amount of data to restore to the new table, in megabytes (MB).
-
-
-
Method Detail
-
setTableRestoreRequestId
public void setTableRestoreRequestId(String tableRestoreRequestId)
The unique identifier for the table restore request.
- Parameters:
tableRestoreRequestId- The unique identifier for the table restore request.
-
getTableRestoreRequestId
public String getTableRestoreRequestId()
The unique identifier for the table restore request.
- Returns:
- The unique identifier for the table restore request.
-
withTableRestoreRequestId
public TableRestoreStatus withTableRestoreRequestId(String tableRestoreRequestId)
The unique identifier for the table restore request.
- Parameters:
tableRestoreRequestId- The unique identifier for the table restore request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(String status)
A value that describes the current state of the table restore request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Parameters:
status- A value that describes the current state of the table restore request.Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- See Also:
TableRestoreStatusType
-
getStatus
public String getStatus()
A value that describes the current state of the table restore request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Returns:
- A value that describes the current state of the table restore
request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS - See Also:
TableRestoreStatusType
-
withStatus
public TableRestoreStatus withStatus(String status)
A value that describes the current state of the table restore request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Parameters:
status- A value that describes the current state of the table restore request.Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TableRestoreStatusType
-
setStatus
public void setStatus(TableRestoreStatusType status)
A value that describes the current state of the table restore request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Parameters:
status- A value that describes the current state of the table restore request.Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- See Also:
TableRestoreStatusType
-
withStatus
public TableRestoreStatus withStatus(TableRestoreStatusType status)
A value that describes the current state of the table restore request.
Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Parameters:
status- A value that describes the current state of the table restore request.Valid Values:
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TableRestoreStatusType
-
setMessage
public void setMessage(String message)
A description of the status of the table restore request. Status values include
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.- Parameters:
message- A description of the status of the table restore request. Status values includeSUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.
-
getMessage
public String getMessage()
A description of the status of the table restore request. Status values include
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.- Returns:
- A description of the status of the table restore request. Status
values include
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.
-
withMessage
public TableRestoreStatus withMessage(String message)
A description of the status of the table restore request. Status values include
SUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.- Parameters:
message- A description of the status of the table restore request. Status values includeSUCCEEDED,FAILED,CANCELED,PENDING,IN_PROGRESS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequestTime
public void setRequestTime(Date requestTime)
The time that the table restore request was made, in Universal Coordinated Time (UTC).
- Parameters:
requestTime- The time that the table restore request was made, in Universal Coordinated Time (UTC).
-
getRequestTime
public Date getRequestTime()
The time that the table restore request was made, in Universal Coordinated Time (UTC).
- Returns:
- The time that the table restore request was made, in Universal Coordinated Time (UTC).
-
withRequestTime
public TableRestoreStatus withRequestTime(Date requestTime)
The time that the table restore request was made, in Universal Coordinated Time (UTC).
- Parameters:
requestTime- The time that the table restore request was made, in Universal Coordinated Time (UTC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgressInMegaBytes
public void setProgressInMegaBytes(Long progressInMegaBytes)
The amount of data restored to the new table so far, in megabytes (MB).
- Parameters:
progressInMegaBytes- The amount of data restored to the new table so far, in megabytes (MB).
-
getProgressInMegaBytes
public Long getProgressInMegaBytes()
The amount of data restored to the new table so far, in megabytes (MB).
- Returns:
- The amount of data restored to the new table so far, in megabytes (MB).
-
withProgressInMegaBytes
public TableRestoreStatus withProgressInMegaBytes(Long progressInMegaBytes)
The amount of data restored to the new table so far, in megabytes (MB).
- Parameters:
progressInMegaBytes- The amount of data restored to the new table so far, in megabytes (MB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTotalDataInMegaBytes
public void setTotalDataInMegaBytes(Long totalDataInMegaBytes)
The total amount of data to restore to the new table, in megabytes (MB).
- Parameters:
totalDataInMegaBytes- The total amount of data to restore to the new table, in megabytes (MB).
-
getTotalDataInMegaBytes
public Long getTotalDataInMegaBytes()
The total amount of data to restore to the new table, in megabytes (MB).
- Returns:
- The total amount of data to restore to the new table, in megabytes (MB).
-
withTotalDataInMegaBytes
public TableRestoreStatus withTotalDataInMegaBytes(Long totalDataInMegaBytes)
The total amount of data to restore to the new table, in megabytes (MB).
- Parameters:
totalDataInMegaBytes- The total amount of data to restore to the new table, in megabytes (MB).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClusterIdentifier
public void setClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster that the table is being restored to.
- Parameters:
clusterIdentifier- The identifier of the Amazon Redshift cluster that the table is being restored to.
-
getClusterIdentifier
public String getClusterIdentifier()
The identifier of the Amazon Redshift cluster that the table is being restored to.
- Returns:
- The identifier of the Amazon Redshift cluster that the table is being restored to.
-
withClusterIdentifier
public TableRestoreStatus withClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster that the table is being restored to.
- Parameters:
clusterIdentifier- The identifier of the Amazon Redshift cluster that the table is being restored to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSnapshotIdentifier
public void setSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot that the table is being restored from.
- Parameters:
snapshotIdentifier- The identifier of the snapshot that the table is being restored from.
-
getSnapshotIdentifier
public String getSnapshotIdentifier()
The identifier of the snapshot that the table is being restored from.
- Returns:
- The identifier of the snapshot that the table is being restored from.
-
withSnapshotIdentifier
public TableRestoreStatus withSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot that the table is being restored from.
- Parameters:
snapshotIdentifier- The identifier of the snapshot that the table is being restored from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceDatabaseName
public void setSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table being restored.
- Parameters:
sourceDatabaseName- The name of the source database that contains the table being restored.
-
getSourceDatabaseName
public String getSourceDatabaseName()
The name of the source database that contains the table being restored.
- Returns:
- The name of the source database that contains the table being restored.
-
withSourceDatabaseName
public TableRestoreStatus withSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table being restored.
- Parameters:
sourceDatabaseName- The name of the source database that contains the table being restored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceSchemaName
public void setSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table being restored.
- Parameters:
sourceSchemaName- The name of the source schema that contains the table being restored.
-
getSourceSchemaName
public String getSourceSchemaName()
The name of the source schema that contains the table being restored.
- Returns:
- The name of the source schema that contains the table being restored.
-
withSourceSchemaName
public TableRestoreStatus withSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table being restored.
- Parameters:
sourceSchemaName- The name of the source schema that contains the table being restored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSourceTableName
public void setSourceTableName(String sourceTableName)
The name of the source table being restored.
- Parameters:
sourceTableName- The name of the source table being restored.
-
getSourceTableName
public String getSourceTableName()
The name of the source table being restored.
- Returns:
- The name of the source table being restored.
-
withSourceTableName
public TableRestoreStatus withSourceTableName(String sourceTableName)
The name of the source table being restored.
- Parameters:
sourceTableName- The name of the source table being restored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetDatabaseName
public void setTargetDatabaseName(String targetDatabaseName)
The name of the database to restore the table to.
- Parameters:
targetDatabaseName- The name of the database to restore the table to.
-
getTargetDatabaseName
public String getTargetDatabaseName()
The name of the database to restore the table to.
- Returns:
- The name of the database to restore the table to.
-
withTargetDatabaseName
public TableRestoreStatus withTargetDatabaseName(String targetDatabaseName)
The name of the database to restore the table to.
- Parameters:
targetDatabaseName- The name of the database to restore the table to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTargetSchemaName
public void setTargetSchemaName(String targetSchemaName)
The name of the schema to restore the table to.
- Parameters:
targetSchemaName- The name of the schema to restore the table to.
-
getTargetSchemaName
public String getTargetSchemaName()
The name of the schema to restore the table to.
- Returns:
- The name of the schema to restore the table to.
-
withTargetSchemaName
public TableRestoreStatus withTargetSchemaName(String targetSchemaName)
The name of the schema to restore the table to.
- Parameters:
targetSchemaName- The name of the schema to restore the table to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNewTableName
public void setNewTableName(String newTableName)
The name of the table to create as a result of the table restore request.
- Parameters:
newTableName- The name of the table to create as a result of the table restore request.
-
getNewTableName
public String getNewTableName()
The name of the table to create as a result of the table restore request.
- Returns:
- The name of the table to create as a result of the table restore request.
-
withNewTableName
public TableRestoreStatus withNewTableName(String newTableName)
The name of the table to create as a result of the table restore request.
- Parameters:
newTableName- The name of the table to create as a result of the table restore request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TableRestoreStatus clone()
-
-