Class ConversionTask
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ConversionTask
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ConversionTask extends Object implements Serializable, Cloneable
Describes a conversion task.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversionTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Tag... tags)
Any tags assigned to the task.ConversionTask
withTags(Collection<Tag> tags)
Any tags assigned to the task.
-
-
-
Method Detail
-
setConversionTaskId
public void setConversionTaskId(String conversionTaskId)
The ID of the conversion task.
- Parameters:
conversionTaskId
- The ID of the conversion task.
-
getConversionTaskId
public String getConversionTaskId()
The ID of the conversion task.
- Returns:
- The ID of the conversion task.
-
withConversionTaskId
public ConversionTask withConversionTaskId(String conversionTaskId)
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
public void setExpirationTime(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.
-
getExpirationTime
public 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.
-
withExpirationTime
public ConversionTask withExpirationTime(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
withImportInstance
public ConversionTask withImportInstance(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-
withImportVolume
public ConversionTask withImportVolume(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- See Also:
ConversionTaskState
-
getState
public String getState()
The state of the conversion task.
- Returns:
- The state of the conversion task.
- See Also:
ConversionTaskState
-
withState
public ConversionTask withState(String state)
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:
ConversionTaskState
-
setState
public void setState(ConversionTaskState state)
The state of the conversion task.
- Parameters:
state
- The state of the conversion task.- See Also:
ConversionTaskState
-
withState
public ConversionTask withState(ConversionTaskState state)
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:
ConversionTaskState
-
setStatusMessage
public void setStatusMessage(String statusMessage)
The status message related to the conversion task.
- Parameters:
statusMessage
- The status message related to the conversion task.
-
getStatusMessage
public String getStatusMessage()
The status message related to the conversion task.
- Returns:
- The status message related to the conversion task.
-
withStatusMessage
public ConversionTask withStatusMessage(String statusMessage)
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
public List<Tag> getTags()
Any tags assigned to the task.
- Returns:
- Any tags assigned to the task.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the task.
- Parameters:
tags
- Any tags assigned to the task.
-
withTags
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)
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
public ConversionTask withTags(Collection<Tag> tags)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConversionTask clone()
-
-