@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancelSpotFleetRequestsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CancelSpotFleetRequestsRequest>
Contains the parameters for CancelSpotFleetRequests.
NOOP
Constructor and Description |
---|
CancelSpotFleetRequestsRequest() |
Modifier and Type | Method and Description |
---|---|
CancelSpotFleetRequestsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Request<CancelSpotFleetRequestsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<String> |
getSpotFleetRequestIds()
The IDs of the Spot Fleet requests.
|
Boolean |
getTerminateInstances()
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled.
|
int |
hashCode() |
Boolean |
isTerminateInstances()
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled.
|
void |
setSpotFleetRequestIds(Collection<String> spotFleetRequestIds)
The IDs of the Spot Fleet requests.
|
void |
setTerminateInstances(Boolean terminateInstances)
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled.
|
String |
toString()
Returns a string representation of this object.
|
CancelSpotFleetRequestsRequest |
withSpotFleetRequestIds(Collection<String> spotFleetRequestIds)
The IDs of the Spot Fleet requests.
|
CancelSpotFleetRequestsRequest |
withSpotFleetRequestIds(String... spotFleetRequestIds)
The IDs of the Spot Fleet requests.
|
CancelSpotFleetRequestsRequest |
withTerminateInstances(Boolean terminateInstances)
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<String> getSpotFleetRequestIds()
The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
Constraint: You can specify up to 100 IDs in a single request.
public void setSpotFleetRequestIds(Collection<String> spotFleetRequestIds)
The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
spotFleetRequestIds
- The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
public CancelSpotFleetRequestsRequest withSpotFleetRequestIds(String... spotFleetRequestIds)
The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
NOTE: This method appends the values to the existing list (if any). Use
setSpotFleetRequestIds(java.util.Collection)
or withSpotFleetRequestIds(java.util.Collection)
if you want to override the existing values.
spotFleetRequestIds
- The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
public CancelSpotFleetRequestsRequest withSpotFleetRequestIds(Collection<String> spotFleetRequestIds)
The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
spotFleetRequestIds
- The IDs of the Spot Fleet requests.
Constraint: You can specify up to 100 IDs in a single request.
public void setTerminateInstances(Boolean terminateInstances)
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
terminateInstances
- Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The
default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
public Boolean getTerminateInstances()
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
public CancelSpotFleetRequestsRequest withTerminateInstances(Boolean terminateInstances)
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
terminateInstances
- Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The
default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
public Boolean isTerminateInstances()
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is to terminate the instances.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
To let the instances continue to run after the Spot Fleet request is canceled, specify
no-terminate-instances
.
public Request<CancelSpotFleetRequestsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CancelSpotFleetRequestsRequest>
public String toString()
toString
in class Object
Object.toString()
public CancelSpotFleetRequestsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()