com.amazonaws.services.ec2.model
Class ConversionTask

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

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

Describes a conversion task.

See Also:
Serialized Form

Constructor Summary
ConversionTask()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getConversionTaskId()
          The ID of the conversion task.
 java.lang.String getExpirationTime()
          The time when the task expires.
 ImportInstanceTaskDetails getImportInstance()
          If the task is for importing an instance, this contains information about the import instance task.
 ImportVolumeTaskDetails getImportVolume()
          If the task is for importing a volume, this contains information about the import volume task.
 java.lang.String getState()
          The state of the conversion task.
 java.lang.String getStatusMessage()
          The status message related to the conversion task.
 java.util.List<Tag> getTags()
           
 int hashCode()
           
 void setConversionTaskId(java.lang.String conversionTaskId)
          The ID of the conversion task.
 void setExpirationTime(java.lang.String expirationTime)
          The time when the task expires.
 void setImportInstance(ImportInstanceTaskDetails importInstance)
          If the task is for importing an instance, this contains information about the import instance task.
 void setImportVolume(ImportVolumeTaskDetails importVolume)
          If the task is for importing a volume, this contains information about the import volume task.
 void setState(ConversionTaskState state)
          The state of the conversion task.
 void setState(java.lang.String state)
          The state of the conversion task.
 void setStatusMessage(java.lang.String statusMessage)
          The status message related to the conversion task.
 void setTags(java.util.Collection<Tag> tags)
           
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ConversionTask withConversionTaskId(java.lang.String conversionTaskId)
          The ID of the conversion task.
 ConversionTask withExpirationTime(java.lang.String expirationTime)
          The time when the task expires.
 ConversionTask withImportInstance(ImportInstanceTaskDetails importInstance)
          If the task is for importing an instance, this contains information about the import instance task.
 ConversionTask withImportVolume(ImportVolumeTaskDetails importVolume)
          If the task is for importing a volume, this contains information about the import volume task.
 ConversionTask withState(ConversionTaskState state)
          The state of the conversion task.
 ConversionTask withState(java.lang.String state)
          The state of the conversion task.
 ConversionTask withStatusMessage(java.lang.String statusMessage)
          The status message related to the conversion task.
 ConversionTask withTags(java.util.Collection<Tag> tags)
           Returns a reference to this object so that method calls can be chained together.
 ConversionTask withTags(Tag... tags)
           Returns a reference to this object so that method calls can be chained together.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConversionTask

public ConversionTask()
Method Detail

getConversionTaskId

public java.lang.String getConversionTaskId()
The ID of the conversion task.

Returns:
The ID of the conversion task.

setConversionTaskId

public void setConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.

Parameters:
conversionTaskId - The ID of the conversion task.

withConversionTaskId

public ConversionTask withConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.

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

Parameters:
conversionTaskId - The ID of the conversion task.
Returns:
A reference to this updated object so that method calls can be chained together.

getExpirationTime

public java.lang.String getExpirationTime()
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

Returns:
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

setExpirationTime

public void setExpirationTime(java.lang.String expirationTime)
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

Parameters:
expirationTime - The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

withExpirationTime

public ConversionTask withExpirationTime(java.lang.String expirationTime)
The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.

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

Parameters:
expirationTime - The time when the task expires. If the upload isn't complete before the expiration time, we automatically cancel the task.
Returns:
A reference to this updated object so that method calls can be chained together.

getImportInstance

public ImportInstanceTaskDetails getImportInstance()
If the task is for importing an instance, this contains information about the import instance task.

Returns:
If the task is for importing an instance, this contains information about the import instance task.

setImportInstance

public void setImportInstance(ImportInstanceTaskDetails importInstance)
If the task is for importing an instance, this contains information about the import instance task.

Parameters:
importInstance - If the task is for importing an instance, this contains information about the import instance task.

withImportInstance

public ConversionTask withImportInstance(ImportInstanceTaskDetails importInstance)
If the task is for importing an instance, this contains information about the import instance task.

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

Parameters:
importInstance - If the task is for importing an instance, this contains information about the import instance task.
Returns:
A reference to this updated object so that method calls can be chained together.

getImportVolume

public ImportVolumeTaskDetails getImportVolume()
If the task is for importing a volume, this contains information about the import volume task.

Returns:
If the task is for importing a volume, this contains information about the import volume task.

setImportVolume

public void setImportVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.

Parameters:
importVolume - If the task is for importing a volume, this contains information about the import volume task.

withImportVolume

public ConversionTask withImportVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.

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

Parameters:
importVolume - If the task is for importing a volume, this contains information about the import volume 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 conversion task.

Constraints:
Allowed Values: active, cancelling, cancelled, completed

Returns:
The state of the conversion task.
See Also:
ConversionTaskState

setState

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

Constraints:
Allowed Values: active, cancelling, cancelled, completed

Parameters:
state - The state of the conversion task.
See Also:
ConversionTaskState

withState

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

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

Constraints:
Allowed Values: active, cancelling, cancelled, completed

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

setState

public void setState(ConversionTaskState state)
The state of the conversion task.

Constraints:
Allowed Values: active, cancelling, cancelled, completed

Parameters:
state - The state of the conversion task.
See Also:
ConversionTaskState

withState

public ConversionTask withState(ConversionTaskState state)
The state of the conversion task.

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

Constraints:
Allowed Values: active, cancelling, cancelled, completed

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

getStatusMessage

public java.lang.String getStatusMessage()
The status message related to the conversion task.

Returns:
The status message related to the conversion task.

setStatusMessage

public void setStatusMessage(java.lang.String statusMessage)
The status message related to the conversion task.

Parameters:
statusMessage - The status message related to the conversion task.

withStatusMessage

public ConversionTask withStatusMessage(java.lang.String statusMessage)
The status message related to the conversion task.

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

Parameters:
statusMessage - The status message related to the conversion task.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Returns:

setTags

public void setTags(java.util.Collection<Tag> tags)
Parameters:
tags -

withTags

public ConversionTask withTags(Tag... tags)

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

Parameters:
tags -
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public ConversionTask withTags(java.util.Collection<Tag> tags)

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

Parameters:
tags -
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.