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:
  • Constructor Details

    • ConversionTask

      public ConversionTask()
  • Method Details

    • 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:
    • getState

      public String getState()

      The state of the conversion task.

      Returns:
      The state of the conversion task.
      See Also:
    • 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:
    • setState

      public void setState(ConversionTaskState state)

      The state of the conversion task.

      Parameters:
      state - The state of the conversion task.
      See Also:
    • 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:
    • 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) or withTags(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ConversionTask clone()
      Overrides:
      clone in class Object