Class TerminateInstancesResult

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

public class TerminateInstancesResult extends Object implements Serializable, Cloneable

Contains the output of TerminateInstances.

See Also:
  • Constructor Details

    • TerminateInstancesResult

      public TerminateInstancesResult()
  • Method Details

    • getTerminatingInstances

      public List<InstanceStateChange> getTerminatingInstances()

      Information about one or more terminated instances.

      Returns:
      Information about one or more terminated instances.
    • setTerminatingInstances

      public void setTerminatingInstances(Collection<InstanceStateChange> terminatingInstances)

      Information about one or more terminated instances.

      Parameters:
      terminatingInstances - Information about one or more terminated instances.
    • withTerminatingInstances

      public TerminateInstancesResult withTerminatingInstances(InstanceStateChange... terminatingInstances)

      Information about one or more terminated instances.

      NOTE: This method appends the values to the existing list (if any). Use setTerminatingInstances(java.util.Collection) or withTerminatingInstances(java.util.Collection) if you want to override the existing values.

      Parameters:
      terminatingInstances - Information about one or more terminated instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTerminatingInstances

      public TerminateInstancesResult withTerminatingInstances(Collection<InstanceStateChange> terminatingInstances)

      Information about one or more terminated instances.

      Parameters:
      terminatingInstances - Information about one or more terminated instances.
      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 TerminateInstancesResult clone()
      Overrides:
      clone in class Object