public class CancelSpotInstanceRequestsRequest extends AmazonWebServiceRequest implements java.io.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 bid 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 more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide .
IMPORTANT: Canceling a Spot instance request does not terminate running Spot instances associated with the request.
Constructor and Description |
---|
CancelSpotInstanceRequestsRequest()
Default constructor for a new CancelSpotInstanceRequestsRequest object.
|
CancelSpotInstanceRequestsRequest(java.util.List<java.lang.String> spotInstanceRequestIds)
Constructs a new CancelSpotInstanceRequestsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<CancelSpotInstanceRequestsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getSpotInstanceRequestIds()
One or more Spot instance request IDs.
|
int |
hashCode() |
void |
setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
One or more Spot instance request IDs.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelSpotInstanceRequestsRequest |
withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
One or more Spot instance request IDs.
|
CancelSpotInstanceRequestsRequest |
withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)
One or more Spot instance request IDs.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CancelSpotInstanceRequestsRequest()
public CancelSpotInstanceRequestsRequest(java.util.List<java.lang.String> spotInstanceRequestIds)
spotInstanceRequestIds
- One or more Spot instance request IDs.public java.util.List<java.lang.String> getSpotInstanceRequestIds()
public void setSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
spotInstanceRequestIds
- One or more Spot instance request IDs.public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.lang.String... spotInstanceRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestIds
- One or more Spot instance request IDs.public CancelSpotInstanceRequestsRequest withSpotInstanceRequestIds(java.util.Collection<java.lang.String> spotInstanceRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestIds
- One or more Spot instance request IDs.public Request<CancelSpotInstanceRequestsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CancelSpotInstanceRequestsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.