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 CancelImportTaskResultclone()booleanequals(Object obj)StringgetImportTaskId()The ID of the task being canceled.StringgetPreviousState()The current state of the task being canceled.StringgetState()The current state of the task being canceled.inthashCode()voidsetImportTaskId(String importTaskId)The ID of the task being canceled.voidsetPreviousState(String previousState)The current state of the task being canceled.voidsetState(String state)The current state of the task being canceled.StringtoString()Returns a string representation of this object; useful for testing and debugging.CancelImportTaskResultwithImportTaskId(String importTaskId)The ID of the task being canceled.CancelImportTaskResultwithPreviousState(String previousState)The current state of the task being canceled.CancelImportTaskResultwithState(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelImportTaskResult clone()
-
-