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 TableRestoreStatus
clone()
boolean
equals(Object obj)
String
getClusterIdentifier()
The identifier of the Amazon Redshift cluster that the table is being restored to.String
getMessage()
A description of the status of the table restore request.String
getNewTableName()
The name of the table to create as a result of the table restore request.Long
getProgressInMegaBytes()
The amount of data restored to the new table so far, in megabytes (MB).Date
getRequestTime()
The time that the table restore request was made, in Universal Coordinated Time (UTC).String
getSnapshotIdentifier()
The identifier of the snapshot that the table is being restored from.String
getSourceDatabaseName()
The name of the source database that contains the table being restored.String
getSourceSchemaName()
The name of the source schema that contains the table being restored.String
getSourceTableName()
The name of the source table being restored.String
getStatus()
A value that describes the current state of the table restore request.String
getTableRestoreRequestId()
The unique identifier for the table restore request.String
getTargetDatabaseName()
The name of the database to restore the table to.String
getTargetSchemaName()
The name of the schema to restore the table to.Long
getTotalDataInMegaBytes()
The total amount of data to restore to the new table, in megabytes (MB).int
hashCode()
void
setClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster that the table is being restored to.void
setMessage(String message)
A description of the status of the table restore request.void
setNewTableName(String newTableName)
The name of the table to create as a result of the table restore request.void
setProgressInMegaBytes(Long progressInMegaBytes)
The amount of data restored to the new table so far, in megabytes (MB).void
setRequestTime(Date requestTime)
The time that the table restore request was made, in Universal Coordinated Time (UTC).void
setSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot that the table is being restored from.void
setSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table being restored.void
setSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table being restored.void
setSourceTableName(String sourceTableName)
The name of the source table being restored.void
setStatus(TableRestoreStatusType status)
A value that describes the current state of the table restore request.void
setStatus(String status)
A value that describes the current state of the table restore request.void
setTableRestoreRequestId(String tableRestoreRequestId)
The unique identifier for the table restore request.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.void
setTotalDataInMegaBytes(Long totalDataInMegaBytes)
The total amount of data to restore to the new table, in megabytes (MB).String
toString()
Returns a string representation of this object; useful for testing and debugging.TableRestoreStatus
withClusterIdentifier(String clusterIdentifier)
The identifier of the Amazon Redshift cluster that the table is being restored to.TableRestoreStatus
withMessage(String message)
A description of the status of the table restore request.TableRestoreStatus
withNewTableName(String newTableName)
The name of the table to create as a result of the table restore request.TableRestoreStatus
withProgressInMegaBytes(Long progressInMegaBytes)
The amount of data restored to the new table so far, in megabytes (MB).TableRestoreStatus
withRequestTime(Date requestTime)
The time that the table restore request was made, in Universal Coordinated Time (UTC).TableRestoreStatus
withSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot that the table is being restored from.TableRestoreStatus
withSourceDatabaseName(String sourceDatabaseName)
The name of the source database that contains the table being restored.TableRestoreStatus
withSourceSchemaName(String sourceSchemaName)
The name of the source schema that contains the table being restored.TableRestoreStatus
withSourceTableName(String sourceTableName)
The name of the source table being restored.TableRestoreStatus
withStatus(TableRestoreStatusType status)
A value that describes the current state of the table restore request.TableRestoreStatus
withStatus(String status)
A value that describes the current state of the table restore request.TableRestoreStatus
withTableRestoreRequestId(String tableRestoreRequestId)
The unique identifier for the table restore request.TableRestoreStatus
withTargetDatabaseName(String targetDatabaseName)
The name of the database to restore the table to.TableRestoreStatus
withTargetSchemaName(String targetSchemaName)
The name of the schema to restore the table to.TableRestoreStatus
withTotalDataInMegaBytes(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TableRestoreStatus clone()
-
-