public class ConversionTask extends Object implements Serializable, Cloneable
Describes a conversion task.
| Constructor and Description |
|---|
ConversionTask() |
| Modifier and Type | Method and Description |
|---|---|
ConversionTask |
clone() |
boolean |
equals(Object obj) |
String |
getConversionTaskId()
The ID of the conversion task.
|
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.
|
String |
getState()
The state of the conversion task.
|
String |
getStatusMessage()
The status message related to the conversion task.
|
List<Tag> |
getTags()
Any tags assigned to the task.
|
int |
hashCode() |
void |
setConversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
void |
setExpirationTime(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(String state)
The state of the conversion task.
|
void |
setStatusMessage(String statusMessage)
The status message related to the conversion task.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the task.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConversionTask |
withConversionTaskId(String conversionTaskId)
The ID of the conversion task.
|
ConversionTask |
withExpirationTime(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(String state)
The state of the conversion task.
|
ConversionTask |
withStatusMessage(String statusMessage)
The status message related to the conversion task.
|
ConversionTask |
withTags(Collection<Tag> tags)
Any tags assigned to the task.
|
ConversionTask |
withTags(Tag... tags)
Any tags assigned to the task.
|
public String getConversionTaskId()
public void setConversionTaskId(String conversionTaskId)
conversionTaskId - The ID of the conversion task.public ConversionTask withConversionTaskId(String conversionTaskId)
Returns a reference to this object so that method calls can be chained together.
conversionTaskId - The ID of the conversion task.public String getExpirationTime()
public void setExpirationTime(String expirationTime)
expirationTime - The time when the task expires. If the upload isn't complete before
the expiration time, we automatically cancel the task.public ConversionTask withExpirationTime(String expirationTime)
Returns a reference to this object so that method calls can be chained together.
expirationTime - The time when the task expires. If the upload isn't complete before
the expiration time, we automatically cancel the task.public ImportInstanceTaskDetails getImportInstance()
public void setImportInstance(ImportInstanceTaskDetails importInstance)
importInstance - If the task is for importing an instance, this contains information
about the import instance task.public ConversionTask withImportInstance(ImportInstanceTaskDetails importInstance)
Returns a reference to this object so that method calls can be chained together.
importInstance - If the task is for importing an instance, this contains information
about the import instance task.public ImportVolumeTaskDetails getImportVolume()
public void setImportVolume(ImportVolumeTaskDetails importVolume)
importVolume - If the task is for importing a volume, this contains information about
the import volume task.public ConversionTask withImportVolume(ImportVolumeTaskDetails importVolume)
Returns a reference to this object so that method calls can be chained together.
importVolume - If the task is for importing a volume, this contains information about
the import volume task.public String getState()
Constraints:
Allowed Values: active, cancelling, cancelled, completed
ConversionTaskStatepublic void setState(String state)
Constraints:
Allowed Values: active, cancelling, cancelled, completed
state - The state of the conversion task.ConversionTaskStatepublic ConversionTask withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, cancelling, cancelled, completed
state - The state of the conversion task.ConversionTaskStatepublic void setState(ConversionTaskState state)
Constraints:
Allowed Values: active, cancelling, cancelled, completed
state - The state of the conversion task.ConversionTaskStatepublic ConversionTask withState(ConversionTaskState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: active, cancelling, cancelled, completed
state - The state of the conversion task.ConversionTaskStatepublic String getStatusMessage()
public void setStatusMessage(String statusMessage)
statusMessage - The status message related to the conversion task.public ConversionTask withStatusMessage(String statusMessage)
Returns a reference to this object so that method calls can be chained together.
statusMessage - The status message related to the conversion task.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags - Any tags assigned to the task.public ConversionTask withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the task.public ConversionTask withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the task.public String toString()
toString in class ObjectObject.toString()public ConversionTask clone()
Copyright © 2015. All rights reserved.