public class BundleTask
extends java.lang.Object
implements java.io.Serializable
Describes a bundle task.
| Constructor and Description | 
|---|
BundleTask()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - The ID of the instance associated with this bundle task.public BundleTask withInstanceId(java.lang.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 java.lang.String getBundleId()
public void setBundleId(java.lang.String bundleId)
bundleId - The ID of the bundle task.public BundleTask withBundleId(java.lang.String bundleId)
Returns a reference to this object so that method calls can be chained together.
bundleId - The ID of the bundle task.public java.lang.String getState()
 Constraints:
 Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
BundleTaskStatepublic void setState(java.lang.String state)
 Constraints:
 Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state - The state of the task.BundleTaskStatepublic BundleTask withState(java.lang.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.BundleTaskStatepublic void setState(BundleTaskState state)
 Constraints:
 Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed
state - The state of the task.BundleTaskStatepublic 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.BundleTaskStatepublic java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
startTime - The time this task started.public BundleTask withStartTime(java.util.Date startTime)
Returns a reference to this object so that method calls can be chained together.
startTime - The time this task started.public java.util.Date getUpdateTime()
public void setUpdateTime(java.util.Date updateTime)
updateTime - The time of the most recent update for the task.public BundleTask withUpdateTime(java.util.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 java.lang.String getProgress()
public void setProgress(java.lang.String progress)
progress - The level of task completion, as a percent (for example, 20%).public BundleTask withProgress(java.lang.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.