Class CancelImportTaskResult

java.lang.Object
com.amazonaws.services.ec2.model.CancelImportTaskResult
All Implemented Interfaces:
Serializable, Cloneable

public class CancelImportTaskResult extends Object implements Serializable, Cloneable

Contains the output for CancelImportTask.

See Also:
  • Constructor Details

    • CancelImportTaskResult

      public CancelImportTaskResult()
  • Method Details

    • setImportTaskId

      public void setImportTaskId(String importTaskId)

      The ID of the task being canceled.

      Parameters:
      importTaskId - The ID of the task being canceled.
    • getImportTaskId

      public String getImportTaskId()

      The ID of the task being canceled.

      Returns:
      The ID of the task being canceled.
    • withImportTaskId

      public CancelImportTaskResult withImportTaskId(String importTaskId)

      The ID of the task being canceled.

      Parameters:
      importTaskId - The ID of the task being canceled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setState

      public void setState(String state)

      The current state of the task being canceled.

      Parameters:
      state - The current state of the task being canceled.
    • getState

      public String getState()

      The current state of the task being canceled.

      Returns:
      The current state of the task being canceled.
    • withState

      public CancelImportTaskResult withState(String state)

      The current state of the task being canceled.

      Parameters:
      state - The current state of the task being canceled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPreviousState

      public void setPreviousState(String previousState)

      The current state of the task being canceled.

      Parameters:
      previousState - The current state of the task being canceled.
    • getPreviousState

      public String getPreviousState()

      The current state of the task being canceled.

      Returns:
      The current state of the task being canceled.
    • withPreviousState

      public CancelImportTaskResult withPreviousState(String previousState)

      The current state of the task being canceled.

      Parameters:
      previousState - The current state of the task being canceled.
      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 CancelImportTaskResult clone()
      Overrides:
      clone in class Object