public class ConversionTask
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a conversion task.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
conversionTaskId
The ID of the conversion task.
|
private java.lang.String |
expirationTime
The time when the task expires.
|
private ImportInstanceTaskDetails |
importInstance
If the task is for importing an instance, this contains information about
the import instance task.
|
private ImportVolumeTaskDetails |
importVolume
If the task is for importing a volume, this contains information about
the import volume task.
|
private java.lang.String |
state
The state of the conversion task.
|
private java.lang.String |
statusMessage
The status message related to the conversion task.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the task.
|
Constructor and Description |
---|
ConversionTask() |
Modifier and Type | Method and Description |
---|---|
ConversionTask |
clone() |
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()
Any tags assigned to the task.
|
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)
Any tags assigned to the task.
|
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)
Any tags assigned to the task.
|
ConversionTask |
withTags(Tag... tags)
Any tags assigned to the task.
|
private java.lang.String conversionTaskId
The ID of the conversion task.
private 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.
private ImportInstanceTaskDetails importInstance
If the task is for importing an instance, this contains information about the import instance task.
private ImportVolumeTaskDetails importVolume
If the task is for importing a volume, this contains information about the import volume task.
private java.lang.String state
The state of the conversion task.
private java.lang.String statusMessage
The status message related to the conversion task.
private SdkInternalList<Tag> tags
Any tags assigned to the task.
public void setConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.
conversionTaskId
- The ID of the conversion task.public java.lang.String getConversionTaskId()
The ID of the conversion task.
public ConversionTask withConversionTaskId(java.lang.String conversionTaskId)
The ID of the conversion task.
conversionTaskId
- The ID of the conversion task.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.
expirationTime
- The time when the task expires. If the upload isn't complete
before the expiration time, we automatically cancel the task.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.
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.
expirationTime
- The time when the task expires. If the upload isn't complete
before the expiration time, we automatically cancel the task.public void setImportInstance(ImportInstanceTaskDetails importInstance)
If the task is for importing an instance, this contains information about the import instance task.
importInstance
- If the task is for importing an instance, this contains
information about the import instance task.public ImportInstanceTaskDetails getImportInstance()
If the task is for importing an instance, this contains information about the import instance task.
public ConversionTask withImportInstance(ImportInstanceTaskDetails importInstance)
If the task is for importing an instance, this contains information about the import instance task.
importInstance
- If the task is for importing an instance, this contains
information about the import instance task.public void setImportVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.
importVolume
- If the task is for importing a volume, this contains information
about the import volume task.public ImportVolumeTaskDetails getImportVolume()
If the task is for importing a volume, this contains information about the import volume task.
public ConversionTask withImportVolume(ImportVolumeTaskDetails importVolume)
If the task is for importing a volume, this contains information about the import volume task.
importVolume
- If the task is for importing a volume, this contains information
about the import volume task.public void setState(java.lang.String state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
public java.lang.String getState()
The state of the conversion task.
ConversionTaskState
public ConversionTask withState(java.lang.String state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
public void setState(ConversionTaskState state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
public ConversionTask withState(ConversionTaskState state)
The state of the conversion task.
state
- The state of the conversion task.ConversionTaskState
public void setStatusMessage(java.lang.String statusMessage)
The status message related to the conversion task.
statusMessage
- The status message related to the conversion task.public java.lang.String getStatusMessage()
The status message related to the conversion task.
public ConversionTask withStatusMessage(java.lang.String statusMessage)
The status message related to the conversion task.
statusMessage
- The status message related to the conversion task.public java.util.List<Tag> getTags()
Any tags assigned to the task.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the task.
tags
- Any tags assigned to the task.public ConversionTask withTags(Tag... tags)
Any tags assigned to the task.
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.
tags
- Any tags assigned to the task.public ConversionTask withTags(java.util.Collection<Tag> tags)
Any tags assigned to the task.
tags
- Any tags assigned to the task.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ConversionTask clone()
clone
in class java.lang.Object