public class RestoreStatus extends Object implements Serializable
Specifies the restoration status of an object. Objects in certain storage classes must be restored before they can be retrieved. For more information about these storage classes and how to work with archived objects, see Working with archived objects in the Amazon S3 User Guide.
Constructor and Description |
---|
RestoreStatus() |
Modifier and Type | Method and Description |
---|---|
RestoreStatus |
clone() |
boolean |
equals(Object obj) |
Date |
getRestoreExpiryDate()
Indicates when the restored copy will expire.
|
int |
hashCode() |
Boolean |
isRestoreInProgress()
Specifies whether the object is currently being restored.
|
void |
setIsRestoreInProgress(Boolean isRestoreInProgress)
Sets the restore status of an object which specifies whether the object is currently being restored.
|
void |
setRestoreExpiryDate(Date restoreExpiryDate)
Sets the restore expiry date of an object.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RestoreStatus |
withIsRestoreInProgress(Boolean isRestoreInProgress)
Sets the restore status of an object which specifies whether the object is currently being restored.
|
RestoreStatus |
withRestoreExpiryDate(Date restoreExpiryDate)
Sets the restore expiry date of an object.
|
public Boolean isRestoreInProgress()
Specifies whether the object is currently being restored. TRUE
indicates that the object is
currently being restored. FALSE
indicates that the restoration process has either not started or is
already complete.
TRUE
indicates that the object is
currently being restored. FALSE
indicates that the restoration process has either not
started or is already complete.public RestoreStatus withIsRestoreInProgress(Boolean isRestoreInProgress)
isRestoreInProgress
- RestoreStatus
public void setIsRestoreInProgress(Boolean isRestoreInProgress)
isRestoreInProgress
- public Date getRestoreExpiryDate()
Indicates when the restored copy will expire. This value is only populated if the object has already been restored.
public RestoreStatus withRestoreExpiryDate(Date restoreExpiryDate)
restoreExpiryDate
- RestoreStatus
public void setRestoreExpiryDate(Date restoreExpiryDate)
restoreExpiryDate
- public String toString()
toString
in class Object
Object.toString()
public RestoreStatus clone()