@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BundleTask extends Object implements Serializable, Cloneable
Describes a bundle task.
Constructor and Description |
---|
BundleTask() |
Modifier and Type | Method and Description |
---|---|
BundleTask |
clone() |
boolean |
equals(Object obj) |
String |
getBundleId()
The ID of the 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 of the 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.
|
BundleTask |
withBundleId(String bundleId)
The ID of the 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 void setBundleId(String bundleId)
The ID of the bundle task.
bundleId
- The ID of the bundle task.public String getBundleId()
The ID of the bundle task.
public BundleTask withBundleId(String bundleId)
The ID of the bundle task.
bundleId
- The ID of the bundle task.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 void setInstanceId(String instanceId)
The ID of the instance associated with this bundle task.
instanceId
- The ID of the instance associated with this bundle task.public String getInstanceId()
The ID of the instance associated with this bundle task.
public BundleTask withInstanceId(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 setProgress(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 String getProgress()
The level of task completion, as a percent (for example, 20%).
public BundleTask withProgress(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 setStartTime(Date startTime)
The time this task started.
startTime
- The time this task started.public Date getStartTime()
The time this task started.
public BundleTask withStartTime(Date startTime)
The time this task started.
startTime
- The time this task started.public void setState(String state)
The state of the task.
state
- The state of the task.BundleTaskState
public String getState()
The state of the task.
BundleTaskState
public BundleTask withState(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 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 setUpdateTime(Date updateTime)
The time of the most recent update for the task.
updateTime
- The time of the most recent update for the task.public Date getUpdateTime()
The time of the most recent update for the task.
public BundleTask withUpdateTime(Date updateTime)
The time of the most recent update for the task.
updateTime
- The time of the most recent update for the task.public String toString()
toString
in class Object
Object.toString()
public BundleTask clone()