Class StopInstancesResult

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

public class StopInstancesResult extends Object implements Serializable, Cloneable

Contains the output of StopInstances.

See Also:
  • Constructor Details

    • StopInstancesResult

      public StopInstancesResult()
  • Method Details

    • getStoppingInstances

      public List<InstanceStateChange> getStoppingInstances()

      Information about one or more stopped instances.

      Returns:
      Information about one or more stopped instances.
    • setStoppingInstances

      public void setStoppingInstances(Collection<InstanceStateChange> stoppingInstances)

      Information about one or more stopped instances.

      Parameters:
      stoppingInstances - Information about one or more stopped instances.
    • withStoppingInstances

      public StopInstancesResult withStoppingInstances(InstanceStateChange... stoppingInstances)

      Information about one or more stopped instances.

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

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

      public StopInstancesResult withStoppingInstances(Collection<InstanceStateChange> stoppingInstances)

      Information about one or more stopped instances.

      Parameters:
      stoppingInstances - Information about one or more stopped 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 StopInstancesResult clone()
      Overrides:
      clone in class Object