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 ConversionTaskclone()booleanequals(Object obj)StringgetConversionTaskId()The ID of the conversion task.StringgetExpirationTime()The time when the task expires.ImportInstanceTaskDetailsgetImportInstance()If the task is for importing an instance, this contains information about the import instance task.ImportVolumeTaskDetailsgetImportVolume()If the task is for importing a volume, this contains information about the import volume task.StringgetState()The state of the conversion task.StringgetStatusMessage()The status message related to the conversion task.List<Tag>getTags()Any tags assigned to the task.inthashCode()voidsetConversionTaskId(String conversionTaskId)The ID of the conversion task.voidsetExpirationTime(String expirationTime)The time when the task expires.voidsetImportInstance(ImportInstanceTaskDetails importInstance)If the task is for importing an instance, this contains information about the import instance task.voidsetImportVolume(ImportVolumeTaskDetails importVolume)If the task is for importing a volume, this contains information about the import volume task.voidsetState(ConversionTaskState state)The state of the conversion task.voidsetState(String state)The state of the conversion task.voidsetStatusMessage(String statusMessage)The status message related to the conversion task.voidsetTags(Collection<Tag> tags)Any tags assigned to the task.StringtoString()Returns a string representation of this object; useful for testing and debugging.ConversionTaskwithConversionTaskId(String conversionTaskId)The ID of the conversion task.ConversionTaskwithExpirationTime(String expirationTime)The time when the task expires.ConversionTaskwithImportInstance(ImportInstanceTaskDetails importInstance)If the task is for importing an instance, this contains information about the import instance task.ConversionTaskwithImportVolume(ImportVolumeTaskDetails importVolume)If the task is for importing a volume, this contains information about the import volume task.ConversionTaskwithState(ConversionTaskState state)The state of the conversion task.ConversionTaskwithState(String state)The state of the conversion task.ConversionTaskwithStatusMessage(String statusMessage)The status message related to the conversion task.ConversionTaskwithTags(Tag... tags)Any tags assigned to the task.ConversionTaskwithTags(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ConversionTask clone()
-
-