Class BundleTask
- java.lang.Object
-
- com.amazonaws.services.ec2.model.BundleTask
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class BundleTask extends Object implements Serializable, Cloneable
Describes a bundle task.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BundleTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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; useful for testing and debugging.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.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance associated with this bundle task.
- Parameters:
instanceId
- The ID of the instance associated with this bundle task.
-
getInstanceId
public String getInstanceId()
The ID of the instance associated with this bundle task.
- Returns:
- The ID of the instance associated with this bundle task.
-
withInstanceId
public BundleTask withInstanceId(String instanceId)
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
public void setBundleId(String bundleId)
The ID of the bundle task.
- Parameters:
bundleId
- The ID of the bundle task.
-
getBundleId
public String getBundleId()
The ID of the bundle task.
- Returns:
- The ID of the bundle task.
-
withBundleId
public BundleTask withBundleId(String bundleId)
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
public void setState(String state)
The state of the task.
- Parameters:
state
- The state of the task.- See Also:
BundleTaskState
-
getState
public String getState()
The state of the task.
- Returns:
- The state of the task.
- See Also:
BundleTaskState
-
withState
public BundleTask withState(String state)
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:
BundleTaskState
-
setState
public void setState(BundleTaskState state)
The state of the task.
- Parameters:
state
- The state of the task.- See Also:
BundleTaskState
-
withState
public BundleTask withState(BundleTaskState state)
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:
BundleTaskState
-
setStartTime
public void setStartTime(Date startTime)
The time this task started.
- Parameters:
startTime
- The time this task started.
-
getStartTime
public Date getStartTime()
The time this task started.
- Returns:
- The time this task started.
-
withStartTime
public BundleTask withStartTime(Date startTime)
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
public void setUpdateTime(Date updateTime)
The time of the most recent update for the task.
- Parameters:
updateTime
- The time of the most recent update for the task.
-
getUpdateTime
public Date getUpdateTime()
The time of the most recent update for the task.
- Returns:
- The time of the most recent update for the task.
-
withUpdateTime
public BundleTask withUpdateTime(Date updateTime)
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
public void setStorage(Storage storage)
The Amazon S3 storage locations.
- Parameters:
storage
- The Amazon S3 storage locations.
-
getStorage
public Storage getStorage()
The Amazon S3 storage locations.
- Returns:
- The Amazon S3 storage locations.
-
withStorage
public BundleTask withStorage(Storage storage)
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
public void setProgress(String progress)
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
public String 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
public BundleTask withProgress(String progress)
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
public void setBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.
- Parameters:
bundleTaskError
- If the task fails, a description of the error.
-
getBundleTaskError
public BundleTaskError getBundleTaskError()
If the task fails, a description of the error.
- Returns:
- If the task fails, a description of the error.
-
withBundleTaskError
public BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BundleTask clone()
-
-