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

Describes a bundle task.

See Also:
Serialized Form

Constructor Summary
BundleTask()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getBundleId()
          The ID for this bundle task.
 BundleTaskError getBundleTaskError()
          If the task fails, a description of the error.
 java.lang.String getInstanceId()
          The ID of the instance associated with this bundle task.
 java.lang.String getProgress()
          The level of task completion, as a percent (for example, 20%).
 java.util.Date getStartTime()
          The time this task started.
 java.lang.String getState()
          The state of the task.
 Storage getStorage()
          The 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)
          The ID for this bundle task.
 void setBundleTaskError(BundleTaskError bundleTaskError)
          If the task fails, a description of the error.
 void setInstanceId(java.lang.String instanceId)
          The ID of the instance associated with this bundle task.
 void setProgress(java.lang.String progress)
          The level of task completion, as a percent (for example, 20%).
 void setStartTime(java.util.Date startTime)
          The time this task started.
 void setState(BundleTaskState state)
          The state of the task.
 void setState(java.lang.String state)
          The state of the task.
 void setStorage(Storage storage)
          The 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)
          The ID for this bundle task.
 BundleTask withBundleTaskError(BundleTaskError bundleTaskError)
          If the task fails, a description of the error.
 BundleTask withInstanceId(java.lang.String instanceId)
          The ID of the instance associated with this bundle task.
 BundleTask withProgress(java.lang.String progress)
          The level of task completion, as a percent (for example, 20%).
 BundleTask withStartTime(java.util.Date startTime)
          The time this task started.
 BundleTask withState(BundleTaskState state)
          The state of the task.
 BundleTask withState(java.lang.String state)
          The state of the task.
 BundleTask withStorage(Storage storage)
          The 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()
The ID of the instance associated with this bundle task.

Returns:
The ID of the instance associated with this bundle task.

setInstanceId

public void setInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.

Parameters:
instanceId - The ID of the instance associated with this bundle task.

withInstanceId

public BundleTask withInstanceId(java.lang.String instanceId)
The ID of the instance associated with this bundle task.

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

Parameters:
instanceId - The ID of the instance associated with this bundle task.
Returns:
A reference to this updated object so that method calls can be chained together.

getBundleId

public java.lang.String getBundleId()
The ID for this bundle task.

Returns:
The ID for this bundle task.

setBundleId

public void setBundleId(java.lang.String bundleId)
The ID for this bundle task.

Parameters:
bundleId - The ID for this bundle task.

withBundleId

public BundleTask withBundleId(java.lang.String bundleId)
The ID for this bundle task.

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

Parameters:
bundleId - The ID for this bundle task.
Returns:
A reference to this updated object so that method calls can be chained together.

getState

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

Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed

Returns:
The state of the task.
See Also:
BundleTaskState

setState

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

Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed

Parameters:
state - The state of the task.
See Also:
BundleTaskState

withState

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

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

Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed

Parameters:
state - The state of the task.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
BundleTaskState

setState

public void setState(BundleTaskState state)
The state of the task.

Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed

Parameters:
state - The state of the task.
See Also:
BundleTaskState

withState

public BundleTask withState(BundleTaskState state)
The state of the task.

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

Constraints:
Allowed Values: pending, waiting-for-shutdown, bundling, storing, cancelling, complete, failed

Parameters:
state - The state of the task.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
BundleTaskState

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.
Returns:
A reference to this updated object so that method calls can be chained together.

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.
Returns:
A reference to this updated object so that method calls can be chained together.

getStorage

public Storage getStorage()
The Amazon S3 storage locations.

Returns:
The Amazon S3 storage locations.

setStorage

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

Parameters:
storage - The Amazon S3 storage locations.

withStorage

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

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

Parameters:
storage - The Amazon S3 storage locations.
Returns:
A reference to this updated object so that method calls can be chained together.

getProgress

public java.lang.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%).

setProgress

public void setProgress(java.lang.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%).

withProgress

public BundleTask withProgress(java.lang.String progress)
The level of task completion, as a percent (for example, 20%).

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

Parameters:
progress - The level of task completion, as a percent (for example, 20%).
Returns:
A reference to this updated object so that method calls can be chained together.

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.
Returns:
A reference to this updated object so that method calls can be chained together.

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.