Class ConversionTask

    • Constructor Detail

      • ConversionTask

        public ConversionTask()
    • 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
      • 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) 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object