Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelImportTaskResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelImportTaskResult
clone()
boolean
equals(Object obj)
String
getImportTaskId()
The ID of the task being canceled.String
getPreviousState()
The current state of the task being canceled.String
getState()
The current state of the task being canceled.int
hashCode()
void
setImportTaskId(String importTaskId)
The ID of the task being canceled.void
setPreviousState(String previousState)
The current state of the task being canceled.void
setState(String state)
The current state of the task being canceled.String
toString()
Returns a string representation of this object; useful for testing and debugging.CancelImportTaskResult
withImportTaskId(String importTaskId)
The ID of the task being canceled.CancelImportTaskResult
withPreviousState(String previousState)
The current state of the task being canceled.CancelImportTaskResult
withState(String state)
The current state of the task being canceled.
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelImportTaskResult clone()
-
-