public static interface SpotOptionsRequest.Builder extends SdkPojo, CopyableBuilder<SpotOptionsRequest.Builder,SpotOptionsRequest>
Modifier and Type | Method and Description |
---|---|
SpotOptionsRequest.Builder |
allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request.
|
SpotOptionsRequest.Builder |
allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request.
|
SpotOptionsRequest.Builder |
instanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptionsRequest.Builder |
instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted.
|
SpotOptionsRequest.Builder |
instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity.
|
SpotOptionsRequest.Builder |
minTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for Spot Instances in the fleet.
|
SpotOptionsRequest.Builder |
singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
|
copy
applyMutation, build
SpotOptionsRequest.Builder allocationStrategy(String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The
default is lowestPrice
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet
request. The default is lowestPrice
.SpotAllocationStrategy
,
SpotAllocationStrategy
SpotOptionsRequest.Builder allocationStrategy(SpotAllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet request. The
default is lowestPrice
.
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools specified by the Spot Fleet
request. The default is lowestPrice
.SpotAllocationStrategy
,
SpotAllocationStrategy
SpotOptionsRequest.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.SpotInstanceInterruptionBehavior
,
SpotInstanceInterruptionBehavior
SpotOptionsRequest.Builder instanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior)
The behavior when a Spot Instance is interrupted. The default is terminate
.
instanceInterruptionBehavior
- The behavior when a Spot Instance is interrupted. The default is terminate
.SpotInstanceInterruptionBehavior
,
SpotInstanceInterruptionBehavior
SpotOptionsRequest.Builder instancePoolsToUseCount(Integer instancePoolsToUseCount)
The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
AllocationStrategy is set to lowest-price
. EC2 Fleet selects the cheapest Spot pools and
evenly allocates your target Spot capacity across the number of Spot pools that you specify.
instancePoolsToUseCount
- The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot
AllocationStrategy is set to lowest-price
. EC2 Fleet selects the cheapest Spot
pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.SpotOptionsRequest.Builder singleInstanceType(Boolean singleInstanceType)
Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.
singleInstanceType
- Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.SpotOptionsRequest.Builder minTargetCapacity(Integer minTargetCapacity)
The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.
minTargetCapacity
- The minimum target capacity for Spot Instances in the fleet. If the minimum target capacity is not
reached, the fleet launches no instances.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.