public class BundleTask
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a bundle task.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bundleId
The ID of the bundle task.
|
private BundleTaskError |
bundleTaskError
If the task fails, a description of the error.
|
private java.lang.String |
instanceId
The ID of the instance associated with this bundle task.
|
private java.lang.String |
progress
The level of task completion, as a percent (for example, 20%).
|
private java.util.Date |
startTime
The time this task started.
|
private java.lang.String |
state
The state of the task.
|
private Storage |
storage
The Amazon S3 storage locations.
|
private java.util.Date |
updateTime
The time of the most recent update for the task.
|
Constructor and Description |
---|
BundleTask() |
Modifier and Type | Method and Description |
---|---|
BundleTask |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBundleId()
The ID of the bundle task.
|
BundleTaskError |
getBundleTaskError()
If the task fails, a description of the error.
|
java.lang.String |
getInstanceId()
The ID of the instance associated with this bundle task.
|
java.lang.String |
getProgress()
The level of task completion, as a percent (for example, 20%).
|
java.util.Date |
getStartTime()
The time this task started.
|
java.lang.String |
getState()
The state of the task.
|
Storage |
getStorage()
The Amazon S3 storage locations.
|
java.util.Date |
getUpdateTime()
The time of the most recent update for the task.
|
int |
hashCode() |
void |
setBundleId(java.lang.String bundleId)
The ID of the bundle task.
|
void |
setBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.
|
void |
setProgress(java.lang.String progress)
The level of task completion, as a percent (for example, 20%).
|
void |
setStartTime(java.util.Date startTime)
The time this task started.
|
void |
setState(BundleTaskState state)
The state of the task.
|
void |
setState(java.lang.String state)
The state of the task.
|
void |
setStorage(Storage storage)
The Amazon S3 storage locations.
|
void |
setUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BundleTask |
withBundleId(java.lang.String bundleId)
The ID of the bundle task.
|
BundleTask |
withBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
|
BundleTask |
withInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.
|
BundleTask |
withProgress(java.lang.String progress)
The level of task completion, as a percent (for example, 20%).
|
BundleTask |
withStartTime(java.util.Date startTime)
The time this task started.
|
BundleTask |
withState(BundleTaskState state)
The state of the task.
|
BundleTask |
withState(java.lang.String state)
The state of the task.
|
BundleTask |
withStorage(Storage storage)
The Amazon S3 storage locations.
|
BundleTask |
withUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.
|
private java.lang.String instanceId
The ID of the instance associated with this bundle task.
private java.lang.String bundleId
The ID of the bundle task.
private java.lang.String state
The state of the task.
private java.util.Date startTime
The time this task started.
private java.util.Date updateTime
The time of the most recent update for the task.
private Storage storage
The Amazon S3 storage locations.
private java.lang.String progress
The level of task completion, as a percent (for example, 20%).
private BundleTaskError bundleTaskError
If the task fails, a description of the error.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.
instanceId
- The ID of the instance associated with this bundle task.public java.lang.String getInstanceId()
The ID of the instance associated with this bundle task.
public BundleTask withInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.
instanceId
- The ID of the instance associated with this bundle task.public void setBundleId(java.lang.String bundleId)
The ID of the bundle task.
bundleId
- The ID of the bundle task.public java.lang.String getBundleId()
The ID of the bundle task.
public BundleTask withBundleId(java.lang.String bundleId)
The ID of the bundle task.
bundleId
- The ID of the bundle task.public void setState(java.lang.String state)
The state of the task.
state
- The state of the task.BundleTaskState
public java.lang.String getState()
The state of the task.
BundleTaskState
public BundleTask withState(java.lang.String state)
The state of the task.
state
- The state of the task.BundleTaskState
public void setState(BundleTaskState state)
The state of the task.
state
- The state of the task.BundleTaskState
public BundleTask withState(BundleTaskState state)
The state of the task.
state
- The state of the task.BundleTaskState
public void setStartTime(java.util.Date startTime)
The time this task started.
startTime
- The time this task started.public java.util.Date getStartTime()
The time this task started.
public BundleTask withStartTime(java.util.Date startTime)
The time this task started.
startTime
- The time this task started.public void setUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.
updateTime
- The time of the most recent update for the task.public java.util.Date getUpdateTime()
The time of the most recent update for the task.
public BundleTask withUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.
updateTime
- The time of the most recent update for the task.public void setStorage(Storage storage)
The Amazon S3 storage locations.
storage
- The Amazon S3 storage locations.public Storage getStorage()
The Amazon S3 storage locations.
public BundleTask withStorage(Storage storage)
The Amazon S3 storage locations.
storage
- The Amazon S3 storage locations.public void setProgress(java.lang.String progress)
The level of task completion, as a percent (for example, 20%).
progress
- The level of task completion, as a percent (for example, 20%).public java.lang.String getProgress()
The level of task completion, as a percent (for example, 20%).
public BundleTask withProgress(java.lang.String progress)
The level of task completion, as a percent (for example, 20%).
progress
- The level of task completion, as a percent (for example, 20%).public void setBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
bundleTaskError
- If the task fails, a description of the error.public BundleTaskError getBundleTaskError()
If the task fails, a description of the error.
public BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
bundleTaskError
- If the task fails, a description of the error.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BundleTask clone()
clone
in class java.lang.Object