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 BundleTaskclone()booleanequals(Object obj)StringgetBundleId()The ID of the bundle task.BundleTaskErrorgetBundleTaskError()If the task fails, a description of the error.StringgetInstanceId()The ID of the instance associated with this bundle task.StringgetProgress()The level of task completion, as a percent (for example, 20%).DategetStartTime()The time this task started.StringgetState()The state of the task.StoragegetStorage()The Amazon S3 storage locations.DategetUpdateTime()The time of the most recent update for the task.inthashCode()voidsetBundleId(String bundleId)The ID of the bundle task.voidsetBundleTaskError(BundleTaskError bundleTaskError)If the task fails, a description of the error.voidsetInstanceId(String instanceId)The ID of the instance associated with this bundle task.voidsetProgress(String progress)The level of task completion, as a percent (for example, 20%).voidsetStartTime(Date startTime)The time this task started.voidsetState(BundleTaskState state)The state of the task.voidsetState(String state)The state of the task.voidsetStorage(Storage storage)The Amazon S3 storage locations.voidsetUpdateTime(Date updateTime)The time of the most recent update for the task.StringtoString()Returns a string representation of this object; useful for testing and debugging.BundleTaskwithBundleId(String bundleId)The ID of the bundle task.BundleTaskwithBundleTaskError(BundleTaskError bundleTaskError)If the task fails, a description of the error.BundleTaskwithInstanceId(String instanceId)The ID of the instance associated with this bundle task.BundleTaskwithProgress(String progress)The level of task completion, as a percent (for example, 20%).BundleTaskwithStartTime(Date startTime)The time this task started.BundleTaskwithState(BundleTaskState state)The state of the task.BundleTaskwithState(String state)The state of the task.BundleTaskwithStorage(Storage storage)The Amazon S3 storage locations.BundleTaskwithUpdateTime(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public BundleTask clone()
-
-