public class BundleTask extends Object implements Serializable
Describes a bundle task.
Constructor and Description |
---|
BundleTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getBundleId()
The ID for this bundle task.
|
BundleTaskError |
getBundleTaskError()
If the task fails, a description of the error.
|
String |
getInstanceId()
The ID of the instance associated with this bundle task.
|
String |
getProgress()
The level of task completion, as a percent (for example, 20%).
|
Date |
getStartTime()
The time this task started.
|
String |
getState()
The state of the task.
|
Storage |
getStorage()
The Amazon S3 storage locations.
|
Date |
getUpdateTime()
The time of the most recent update for the task.
|
int |
hashCode() |
void |
setBundleId(String bundleId)
The ID for this bundle task.
|
void |
setBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
|
void |
setInstanceId(String instanceId)
The ID of the instance associated with this bundle task.
|
void |
setProgress(String progress)
The level of task completion, as a percent (for example, 20%).
|
void |
setStartTime(Date startTime)
The time this task started.
|
void |
setState(BundleTaskState state)
The state of the task.
|
void |
setState(String state)
The state of the task.
|
void |
setStorage(Storage storage)
The Amazon S3 storage locations.
|
void |
setUpdateTime(Date updateTime)
The time of the most recent update for the task.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BundleTask |
withBundleId(String bundleId)
The ID for this bundle task.
|
BundleTask |
withBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
|
BundleTask |
withInstanceId(String instanceId)
The ID of the instance associated with this bundle task.
|
BundleTask |
withProgress(String progress)
The level of task completion, as a percent (for example, 20%).
|
BundleTask |
withStartTime(Date startTime)
The time this task started.
|
BundleTask |
withState(BundleTaskState state)
The state of the task.
|
BundleTask |
withState(String state)
The state of the task.
|
BundleTask |
withStorage(Storage storage)
The Amazon S3 storage locations.
|
BundleTask |
withUpdateTime(Date updateTime)
The time of the most recent update for the task.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance associated with this bundle task.public BundleTask withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance associated with this bundle task.public String getBundleId()
public void setBundleId(String bundleId)
bundleId
- The ID for this bundle task.public BundleTask withBundleId(String bundleId)
Returns a reference to this object so that method calls can be chained together.
bundleId
- The ID for this bundle task.public String getState()
Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
BundleTaskState
public void setState(String state)
Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state
- The state of the task.BundleTaskState
public BundleTask withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state
- The state of the task.BundleTaskState
public void setState(BundleTaskState state)
Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state
- The state of the task.BundleTaskState
public BundleTask withState(BundleTaskState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state
- The state of the task.BundleTaskState
public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- The time this task started.public BundleTask withStartTime(Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime
- The time this task started.public Date getUpdateTime()
public void setUpdateTime(Date updateTime)
updateTime
- The time of the most recent update for the task.public BundleTask withUpdateTime(Date updateTime)
Returns a reference to this object so that method calls can be chained together.
updateTime
- The time of the most recent update for the task.public Storage getStorage()
public void setStorage(Storage storage)
storage
- The Amazon S3 storage locations.public BundleTask withStorage(Storage storage)
Returns a reference to this object so that method calls can be chained together.
storage
- The Amazon S3 storage locations.public String getProgress()
public void setProgress(String progress)
progress
- The level of task completion, as a percent (for example, 20%).public BundleTask withProgress(String progress)
Returns a reference to this object so that method calls can be chained together.
progress
- The level of task completion, as a percent (for example, 20%).public BundleTaskError getBundleTaskError()
public void setBundleTaskError(BundleTaskError bundleTaskError)
bundleTaskError
- If the task fails, a description of the error.public BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
Returns a reference to this object so that method calls can be chained together.
bundleTaskError
- If the task fails, a description of the error.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.