Class DescribeImportSnapshotTasksResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeImportSnapshotTasksResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DescribeImportSnapshotTasksResult extends Object implements Serializable, Cloneable
Contains the output for DescribeImportSnapshotTasks.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeImportSnapshotTasksResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeImportSnapshotTasksResultclone()booleanequals(Object obj)List<ImportSnapshotTask>getImportSnapshotTasks()A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.StringgetNextToken()The token to use to get the next page of results.inthashCode()voidsetImportSnapshotTasks(Collection<ImportSnapshotTask> importSnapshotTasks)A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.voidsetNextToken(String nextToken)The token to use to get the next page of results.StringtoString()Returns a string representation of this object; useful for testing and debugging.DescribeImportSnapshotTasksResultwithImportSnapshotTasks(ImportSnapshotTask... importSnapshotTasks)A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.DescribeImportSnapshotTasksResultwithImportSnapshotTasks(Collection<ImportSnapshotTask> importSnapshotTasks)A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.DescribeImportSnapshotTasksResultwithNextToken(String nextToken)The token to use to get the next page of results.
-
-
-
Method Detail
-
getImportSnapshotTasks
public List<ImportSnapshotTask> getImportSnapshotTasks()
A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
- Returns:
- A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
-
setImportSnapshotTasks
public void setImportSnapshotTasks(Collection<ImportSnapshotTask> importSnapshotTasks)
A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
- Parameters:
importSnapshotTasks- A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
-
withImportSnapshotTasks
public DescribeImportSnapshotTasksResult withImportSnapshotTasks(ImportSnapshotTask... importSnapshotTasks)
A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
NOTE: This method appends the values to the existing list (if any). Use
setImportSnapshotTasks(java.util.Collection)orwithImportSnapshotTasks(java.util.Collection)if you want to override the existing values.- Parameters:
importSnapshotTasks- A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withImportSnapshotTasks
public DescribeImportSnapshotTasksResult withImportSnapshotTasks(Collection<ImportSnapshotTask> importSnapshotTasks)
A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.
- Parameters:
importSnapshotTasks- A list of zero or more import snapshot tasks that are currently active or were completed or canceled in the previous 7 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
The token to use to get the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to get the next page of results. This value isnullwhen there are no more results to return.
-
getNextToken
public String getNextToken()
The token to use to get the next page of results. This value is
nullwhen there are no more results to return.- Returns:
- The token to use to get the next page of results. This value is
nullwhen there are no more results to return.
-
withNextToken
public DescribeImportSnapshotTasksResult withNextToken(String nextToken)
The token to use to get the next page of results. This value is
nullwhen there are no more results to return.- Parameters:
nextToken- The token to use to get the next page of results. This value isnullwhen there are no more results to return.- 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 DescribeImportSnapshotTasksResult clone()
-
-