Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TerminateInstancesResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminateInstancesResultclone()booleanequals(Object obj)List<InstanceStateChange>getTerminatingInstances()Information about one or more terminated instances.inthashCode()voidsetTerminatingInstances(Collection<InstanceStateChange> terminatingInstances)Information about one or more terminated instances.StringtoString()Returns a string representation of this object; useful for testing and debugging.TerminateInstancesResultwithTerminatingInstances(InstanceStateChange... terminatingInstances)Information about one or more terminated instances.TerminateInstancesResultwithTerminatingInstances(Collection<InstanceStateChange> terminatingInstances)Information about one or more terminated instances.
-
-
-
Method Detail
-
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)orwithTerminatingInstances(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public TerminateInstancesResult clone()
-
-