Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class BundleTask

java.lang.Object
  extended by com.amazonaws.services.ec2.model.BundleTask
All Implemented Interfaces:
java.io.Serializable

public class BundleTask
extends java.lang.Object
implements java.io.Serializable

Represents a task to bundle an EC2 Windows instance into a new image.

See Also:
Serialized Form

Constructor Summary
BundleTask()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBundleId()
          Unique identifier for this task.
 BundleTaskError getBundleTaskError()
          If the task fails, a description of the error.
 java.lang.String getInstanceId()
          Instance associated with this bundle task.
 java.lang.String getProgress()
          The level of task completion, in percent (e.g., 20%).
 java.util.Date getStartTime()
          The time this task started.
 java.lang.String getState()
          The state of this task.
 Storage getStorage()
          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)
          Unique identifier for this task.
 void setBundleTaskError(BundleTaskError bundleTaskError)
          If the task fails, a description of the error.
 void setInstanceId(java.lang.String instanceId)
          Instance associated with this bundle task.
 void setProgress(java.lang.String progress)
          The level of task completion, in percent (e.g., 20%).
 void setStartTime(java.util.Date startTime)
          The time this task started.
 void setState(java.lang.String state)
          The state of this task.
 void setStorage(Storage storage)
          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)
          Unique identifier for this task.
 BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
          If the task fails, a description of the error.
 BundleTask withInstanceId(java.lang.String instanceId)
          Instance associated with this bundle task.
 BundleTask withProgress(java.lang.String progress)
          The level of task completion, in percent (e.g., 20%).
 BundleTask withStartTime(java.util.Date startTime)
          The time this task started.
 BundleTask withState(java.lang.String state)
          The state of this task.
 BundleTask withStorage(Storage storage)
          Amazon S3 storage locations.
 BundleTask withUpdateTime(java.util.Date updateTime)
          The time of the most recent update for the task.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleTask

public BundleTask()
Method Detail

getInstanceId

public java.lang.String getInstanceId()
Instance associated with this bundle task.

Returns:
Instance associated with this bundle task.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
Instance associated with this bundle task.

Parameters:
instanceId - Instance associated with this bundle task.

withInstanceId

public BundleTask withInstanceId(java.lang.String instanceId)
Instance associated with this bundle task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceId - Instance associated with this bundle task.

getBundleId

public java.lang.String getBundleId()
Unique identifier for this task.

Returns:
Unique identifier for this task.

setBundleId

public void setBundleId(java.lang.String bundleId)
Unique identifier for this task.

Parameters:
bundleId - Unique identifier for this task.

withBundleId

public BundleTask withBundleId(java.lang.String bundleId)
Unique identifier for this task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bundleId - Unique identifier for this task.

getState

public java.lang.String getState()
The state of this task.

Returns:
The state of this task.

setState

public void setState(java.lang.String state)
The state of this task.

Parameters:
state - The state of this task.

withState

public BundleTask withState(java.lang.String state)
The state of this task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
state - The state of this task.

getStartTime

public java.util.Date getStartTime()
The time this task started.

Returns:
The time this task started.

setStartTime

public void setStartTime(java.util.Date startTime)
The time this task started.

Parameters:
startTime - The time this task started.

withStartTime

public BundleTask withStartTime(java.util.Date startTime)
The time this task started.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startTime - The time this task started.

getUpdateTime

public java.util.Date getUpdateTime()
The time of the most recent update for the task.

Returns:
The time of the most recent update for the task.

setUpdateTime

public void setUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.

Parameters:
updateTime - The time of the most recent update for the task.

withUpdateTime

public BundleTask withUpdateTime(java.util.Date updateTime)
The time of the most recent update for the task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
updateTime - The time of the most recent update for the task.

getStorage

public Storage getStorage()
Amazon S3 storage locations.

Returns:
Amazon S3 storage locations.

setStorage

public void setStorage(Storage storage)
Amazon S3 storage locations.

Parameters:
storage - Amazon S3 storage locations.

withStorage

public BundleTask withStorage(Storage storage)
Amazon S3 storage locations.

Returns a reference to this object so that method calls can be chained together.

Parameters:
storage - Amazon S3 storage locations.

getProgress

public java.lang.String getProgress()
The level of task completion, in percent (e.g., 20%).

Returns:
The level of task completion, in percent (e.g., 20%).

setProgress

public void setProgress(java.lang.String progress)
The level of task completion, in percent (e.g., 20%).

Parameters:
progress - The level of task completion, in percent (e.g., 20%).

withProgress

public BundleTask withProgress(java.lang.String progress)
The level of task completion, in percent (e.g., 20%).

Returns a reference to this object so that method calls can be chained together.

Parameters:
progress - The level of task completion, in percent (e.g., 20%).

getBundleTaskError

public BundleTaskError getBundleTaskError()
If the task fails, a description of the error.

Returns:
If the task fails, a description of the error.

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.

withBundleTaskError

public BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
If the task fails, a description of the error.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bundleTaskError - If the task fails, a description of the error.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.