Package com.amazonaws.services.ec2.model
Class CancelSpotInstanceRequestsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.CancelSpotInstanceRequestsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CancelSpotInstanceRequestsResult extends Object implements Serializable, Cloneable
Contains the output of CancelSpotInstanceRequests.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CancelSpotInstanceRequestsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancelSpotInstanceRequestsResult
clone()
boolean
equals(Object obj)
List<CancelledSpotInstanceRequest>
getCancelledSpotInstanceRequests()
One or more Spot instance requests.int
hashCode()
void
setCancelledSpotInstanceRequests(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests)
One or more Spot instance requests.String
toString()
Returns a string representation of this object; useful for testing and debugging.CancelSpotInstanceRequestsResult
withCancelledSpotInstanceRequests(CancelledSpotInstanceRequest... cancelledSpotInstanceRequests)
One or more Spot instance requests.CancelSpotInstanceRequestsResult
withCancelledSpotInstanceRequests(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests)
One or more Spot instance requests.
-
-
-
Method Detail
-
getCancelledSpotInstanceRequests
public List<CancelledSpotInstanceRequest> getCancelledSpotInstanceRequests()
One or more Spot instance requests.
- Returns:
- One or more Spot instance requests.
-
setCancelledSpotInstanceRequests
public void setCancelledSpotInstanceRequests(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests)
One or more Spot instance requests.
- Parameters:
cancelledSpotInstanceRequests
- One or more Spot instance requests.
-
withCancelledSpotInstanceRequests
public CancelSpotInstanceRequestsResult withCancelledSpotInstanceRequests(CancelledSpotInstanceRequest... cancelledSpotInstanceRequests)
One or more Spot instance requests.
NOTE: This method appends the values to the existing list (if any). Use
setCancelledSpotInstanceRequests(java.util.Collection)
orwithCancelledSpotInstanceRequests(java.util.Collection)
if you want to override the existing values.- Parameters:
cancelledSpotInstanceRequests
- One or more Spot instance requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCancelledSpotInstanceRequests
public CancelSpotInstanceRequestsResult withCancelledSpotInstanceRequests(Collection<CancelledSpotInstanceRequest> cancelledSpotInstanceRequests)
One or more Spot instance requests.
- Parameters:
cancelledSpotInstanceRequests
- One or more Spot instance requests.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CancelSpotInstanceRequestsResult clone()
-
-