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:
  • Constructor Details

    • BundleTask

      public BundleTask()
  • Method Details

    • 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:
    • getState

      public String getState()

      The state of the task.

      Returns:
      The state of the task.
      See Also:
    • 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:
    • setState

      public void setState(BundleTaskState state)

      The state of the task.

      Parameters:
      state - The state of the task.
      See Also:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public BundleTask clone()
      Overrides:
      clone in class Object