public class CancelSpotFleetRequestsRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<CancelSpotFleetRequestsRequest>
CancelSpotFleetRequests operation
.
Cancels the specified Spot fleet requests.
After you cancel a Spot fleet request, the Spot fleet launches no new
Spot instances. You must specify whether the Spot fleet should also
terminate its Spot instances. If you terminate the instances, the Spot
fleet request enters the cancelled_terminating
state.
Otherwise, the Spot fleet request enters the
cancelled_running
state and the instances continue to run
until they are interrupted or you terminate them manually.
Constructor and Description |
---|
CancelSpotFleetRequestsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<CancelSpotFleetRequestsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.util.List<java.lang.String> |
getSpotFleetRequestIds()
The IDs of the Spot fleet requests.
|
java.lang.Boolean |
getTerminateInstances()
Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.
|
int |
hashCode() |
java.lang.Boolean |
isTerminateInstances()
Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.
|
void |
setSpotFleetRequestIds(java.util.Collection<java.lang.String> spotFleetRequestIds)
The IDs of the Spot fleet requests.
|
void |
setTerminateInstances(java.lang.Boolean terminateInstances)
Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelSpotFleetRequestsRequest |
withSpotFleetRequestIds(java.util.Collection<java.lang.String> spotFleetRequestIds)
The IDs of the Spot fleet requests.
|
CancelSpotFleetRequestsRequest |
withSpotFleetRequestIds(java.lang.String... spotFleetRequestIds)
The IDs of the Spot fleet requests.
|
CancelSpotFleetRequestsRequest |
withTerminateInstances(java.lang.Boolean terminateInstances)
Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getSpotFleetRequestIds()
public void setSpotFleetRequestIds(java.util.Collection<java.lang.String> spotFleetRequestIds)
spotFleetRequestIds
- The IDs of the Spot fleet requests.public CancelSpotFleetRequestsRequest withSpotFleetRequestIds(java.lang.String... spotFleetRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotFleetRequestIds
- The IDs of the Spot fleet requests.public CancelSpotFleetRequestsRequest withSpotFleetRequestIds(java.util.Collection<java.lang.String> spotFleetRequestIds)
Returns a reference to this object so that method calls can be chained together.
spotFleetRequestIds
- The IDs of the Spot fleet requests.public java.lang.Boolean isTerminateInstances()
public void setTerminateInstances(java.lang.Boolean terminateInstances)
terminateInstances
- Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.public CancelSpotFleetRequestsRequest withTerminateInstances(java.lang.Boolean terminateInstances)
Returns a reference to this object so that method calls can be chained together.
terminateInstances
- Indicates whether to terminate instances for a Spot fleet request if
it is canceled successfully.public java.lang.Boolean getTerminateInstances()
public Request<CancelSpotFleetRequestsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CancelSpotFleetRequestsRequest>
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.