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:
  • Constructor Details

    • DescribeImportSnapshotTasksResult

      public DescribeImportSnapshotTasksResult()
  • Method Details

    • 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) or withImportSnapshotTasks(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 null when there are no more results to return.

      Parameters:
      nextToken - The token to use to get the next page of results. This value is null when 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 null when there are no more results to return.

      Returns:
      The token to use to get the next page of results. This value is null when 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 null when there are no more results to return.

      Parameters:
      nextToken - The token to use to get the next page of results. This value is null when 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:
      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

      Overrides:
      clone in class Object