public class RequestSpotFleetRequest extends AmazonWebServiceRequest implements java.io.Serializable, 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 .
Constructor and Description |
---|
RequestSpotFleetRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public 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 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.