public class CancelSpotInstanceRequestsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>
CancelSpotInstanceRequests operation
.
Cancels one or more Spot Instance requests.
Spot Instances are instances that Amazon EC2 starts on your behalf when the maximum price that you specify exceeds the current Spot Price. Amazon EC2 periodically sets the Spot Price based on available Spot Instance capacity and current spot instance requests.
For conceptual information about Spot Instances, refer to the Amazon Elastic Compute Cloud Developer Guide or Amazon Elastic Compute Cloud User Guide .
Constructor and Description |
---|
CancelSpotInstanceRequestsRequest()
Default constructor for a new CancelSpotInstanceRequestsRequest object.
|
CancelSpotInstanceRequestsRequest(List<String> spotInstanceRequestIds)
Constructs a new CancelSpotInstanceRequestsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<CancelSpotInstanceRequestsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getSpotInstanceRequestIds()
Specifies the ID of the Spot Instance request.
|
int |
hashCode() |
void |
setSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelSpotInstanceRequestsRequest |
withSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.
|
CancelSpotInstanceRequestsRequest |
withSpotInstanceRequestIds(String... spotInstanceRequestIds)
Specifies the ID of the Spot Instance request.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public CancelSpotInstanceRequestsRequest()
public CancelSpotInstanceRequestsRequest(List<String> spotInstanceRequestIds)
spotInstanceRequestIds
- Specifies the ID of the Spot Instance
request.public List<String> getSpotInstanceRequestIds()
public void setSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
spotInstanceRequestIds
- Specifies the ID of the Spot Instance request.public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(String... spotInstanceRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestIds
- Specifies the ID of the Spot Instance request.public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(Collection<String> spotInstanceRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestIds
- Specifies the ID of the Spot Instance request.public Request<CancelSpotInstanceRequestsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.