Class BundleTask
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a bundle task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the bundle task.If the task fails, a description of the error.The ID of the instance associated with this bundle task.The level of task completion, as a percent (for example, 20%).The time this task started.getState()
The state of the task.The Amazon S3 storage locations.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withBundleId
(String bundleId) The ID of the bundle task.withBundleTaskError
(BundleTaskError bundleTaskError) If the task fails, a description of the error.withInstanceId
(String instanceId) The ID of the instance associated with this bundle task.withProgress
(String progress) The level of task completion, as a percent (for example, 20%).withStartTime
(Date startTime) The time this task started.withState
(BundleTaskState state) The state of the task.The state of the task.withStorage
(Storage storage) The Amazon S3 storage locations.withUpdateTime
(Date updateTime) The time of the most recent update for the task.
-
Constructor Details
-
BundleTask
public BundleTask()
-
-
Method Details
-
setInstanceId
The ID of the instance associated with this bundle task.
- Parameters:
instanceId
- The ID of the instance associated with this bundle task.
-
getInstanceId
The ID of the instance associated with this bundle task.
- Returns:
- The ID of the instance associated with this bundle task.
-
withInstanceId
The ID of the instance associated with this bundle task.
- Parameters:
instanceId
- The ID of the instance associated with this bundle task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBundleId
The ID of the bundle task.
- Parameters:
bundleId
- The ID of the bundle task.
-
getBundleId
The ID of the bundle task.
- Returns:
- The ID of the bundle task.
-
withBundleId
The ID of the bundle task.
- Parameters:
bundleId
- The ID of the bundle task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The state of the task.
- Parameters:
state
- The state of the task.- See Also:
-
getState
The state of the task.
- Returns:
- The state of the task.
- See Also:
-
withState
The state of the task.
- Parameters:
state
- The state of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the task.
- Parameters:
state
- The state of the task.- See Also:
-
withState
The state of the task.
- Parameters:
state
- The state of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStartTime
The time this task started.
- Parameters:
startTime
- The time this task started.
-
getStartTime
The time this task started.
- Returns:
- The time this task started.
-
withStartTime
The time this task started.
- Parameters:
startTime
- The time this task started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUpdateTime
The time of the most recent update for the task.
- Parameters:
updateTime
- The time of the most recent update for the task.
-
getUpdateTime
The time of the most recent update for the task.
- Returns:
- The time of the most recent update for the task.
-
withUpdateTime
The time of the most recent update for the task.
- Parameters:
updateTime
- The time of the most recent update for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStorage
The Amazon S3 storage locations.
- Parameters:
storage
- The Amazon S3 storage locations.
-
getStorage
The Amazon S3 storage locations.
- Returns:
- The Amazon S3 storage locations.
-
withStorage
The Amazon S3 storage locations.
- Parameters:
storage
- The Amazon S3 storage locations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProgress
The level of task completion, as a percent (for example, 20%).
- Parameters:
progress
- The level of task completion, as a percent (for example, 20%).
-
getProgress
The level of task completion, as a percent (for example, 20%).
- Returns:
- The level of task completion, as a percent (for example, 20%).
-
withProgress
The level of task completion, as a percent (for example, 20%).
- Parameters:
progress
- The level of task completion, as a percent (for example, 20%).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBundleTaskError
If the task fails, a description of the error.
- Parameters:
bundleTaskError
- If the task fails, a description of the error.
-
getBundleTaskError
If the task fails, a description of the error.
- Returns:
- If the task fails, a description of the error.
-
withBundleTaskError
If the task fails, a description of the error.
- Parameters:
bundleTaskError
- If the task fails, a description of the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-