public class RequestSpotFleetRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<RequestSpotFleetRequest>
RequestSpotFleet operation.
Creates a Spot fleet request.
You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
By default, the Spot fleet requests Spot instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.
Alternatively, you can specify that the Spot fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot instances in your Spot fleet are in different Spot pools, you can improve the availability of your fleet.
For more information, see Spot Fleet Requests in the Amazon Elastic Compute Cloud User Guide .
NOOP| Constructor and Description |
|---|
RequestSpotFleetRequest() |
| Modifier and Type | Method and Description |
|---|---|
RequestSpotFleetRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Request<RequestSpotFleetRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
SpotFleetRequestConfigData |
getSpotFleetRequestConfig()
The configuration for the Spot fleet request.
|
int |
hashCode() |
void |
setSpotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
The configuration for the Spot fleet request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RequestSpotFleetRequest |
withSpotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
The configuration for the Spot fleet request.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic SpotFleetRequestConfigData getSpotFleetRequestConfig()
public void setSpotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
spotFleetRequestConfig - The configuration for the Spot fleet request.public RequestSpotFleetRequest withSpotFleetRequestConfig(SpotFleetRequestConfigData spotFleetRequestConfig)
Returns a reference to this object so that method calls can be chained together.
spotFleetRequestConfig - The configuration for the Spot fleet request.public Request<RequestSpotFleetRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<RequestSpotFleetRequest>public String toString()
toString in class ObjectObject.toString()public RequestSpotFleetRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.