Class ConversionTask
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a conversion task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the conversion task.The time when the task expires.If the task is for importing an instance, this contains information about the import instance task.If the task is for importing a volume, this contains information about the import volume task.getState()
The state of the conversion task.The status message related to the conversion task.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withConversionTaskId
(String conversionTaskId) The ID of the conversion task.withExpirationTime
(String expirationTime) The time when the task expires.withImportInstance
(ImportInstanceTaskDetails importInstance) If the task is for importing an instance, this contains information about the import instance task.withImportVolume
(ImportVolumeTaskDetails importVolume) If the task is for importing a volume, this contains information about the import volume task.withState
(ConversionTaskState state) The state of the conversion task.The state of the conversion task.withStatusMessage
(String statusMessage) The status message related to the conversion task.Any tags assigned to the task.withTags
(Collection<Tag> tags) Any tags assigned to the task.
-
Constructor Details
-
ConversionTask
public ConversionTask()
-
-
Method Details
-
setConversionTaskId
The ID of the conversion task.
- Parameters:
conversionTaskId
- The ID of the conversion task.
-
getConversionTaskId
The ID of the conversion task.
- Returns:
- The ID of the conversion task.
-
withConversionTaskId
The ID of the conversion task.
- Parameters:
conversionTaskId
- The ID of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpirationTime
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.
-
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.
-
withExpirationTime
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImportInstance
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.
-
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.
-
withImportInstance
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImportVolume
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.
-
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.
-
withImportVolume
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- See Also:
-
getState
The state of the conversion task.
- Returns:
- The state of the conversion task.
- See Also:
-
withState
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- See Also:
-
withState
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setStatusMessage
The status message related to the conversion task.
- Parameters:
statusMessage
- The status message related to the conversion task.
-
getStatusMessage
The status message related to the conversion task.
- Returns:
- The status message related to the conversion task.
-
withStatusMessage
The status message related to the conversion task.
- Parameters:
statusMessage
- The status message related to the conversion task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
Any tags assigned to the task.
- Returns:
- Any tags assigned to the task.
-
setTags
Any tags assigned to the task.
- Parameters:
tags
- Any tags assigned to the task.
-
withTags
Any tags assigned to the task.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the task.
- Parameters:
tags
- Any tags assigned to the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-