CopyableBuilder<SpotFleetRequestConfigData.Builder,SpotFleetRequestConfigData>
, SdkBuilder<SpotFleetRequestConfigData.Builder,SpotFleetRequestConfigData>
public static interface SpotFleetRequestConfigData.Builder extends CopyableBuilder<SpotFleetRequestConfigData.Builder,SpotFleetRequestConfigData>
Modifier and Type | Method | Description |
---|---|---|
SpotFleetRequestConfigData.Builder |
allocationStrategy(String allocationStrategy) |
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
allocationStrategy(AllocationStrategy allocationStrategy) |
Indicates how to allocate the target capacity across the Spot pools specified by the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
clientToken(String clientToken) |
A unique, case-sensitive identifier you provide to ensure idempotency of your listings.
|
SpotFleetRequestConfigData.Builder |
excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) |
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.
|
SpotFleetRequestConfigData.Builder |
excessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) |
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.
|
SpotFleetRequestConfigData.Builder |
fulfilledCapacity(Double fulfilledCapacity) |
The number of units fulfilled by this request compared to the set target capacity.
|
SpotFleetRequestConfigData.Builder |
iamFleetRole(String iamFleetRole) |
Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet
request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration . |
SpotFleetRequestConfigData.Builder |
launchSpecifications(Collection<SpotFleetLaunchSpecification> launchSpecifications) |
Information about the launch specifications for the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
launchSpecifications(SpotFleetLaunchSpecification... launchSpecifications) |
Information about the launch specifications for the Spot fleet request.
|
SpotFleetRequestConfigData.Builder |
replaceUnhealthyInstances(Boolean replaceUnhealthyInstances) |
Indicates whether Spot fleet should replace unhealthy instances.
|
SpotFleetRequestConfigData.Builder |
spotPrice(String spotPrice) |
The bid price per unit hour.
|
SpotFleetRequestConfigData.Builder |
targetCapacity(Integer targetCapacity) |
The number of units to request.
|
SpotFleetRequestConfigData.Builder |
terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration) |
Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
|
SpotFleetRequestConfigData.Builder |
type(String type) |
The type of request.
|
SpotFleetRequestConfigData.Builder |
type(FleetType type) |
The type of request.
|
SpotFleetRequestConfigData.Builder |
validFrom(Date validFrom) |
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotFleetRequestConfigData.Builder |
validUntil(Date validUntil) |
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
copy
apply, build
SpotFleetRequestConfigData.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
.AllocationStrategy
SpotFleetRequestConfigData.Builder allocationStrategy(AllocationStrategy 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
.AllocationStrategy
SpotFleetRequestConfigData.Builder clientToken(String clientToken)
A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
clientToken
- A unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps
avoid duplicate listings. For more information, see Ensuring
Idempotency.SpotFleetRequestConfigData.Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.ExcessCapacityTerminationPolicy
SpotFleetRequestConfigData.Builder excessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet request is decreased below the current size of the Spot fleet.
excessCapacityTerminationPolicy
- Indicates whether running Spot instances should be terminated if the target capacity of the Spot fleet
request is decreased below the current size of the Spot fleet.ExcessCapacityTerminationPolicy
SpotFleetRequestConfigData.Builder fulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
fulfilledCapacity
- The number of units fulfilled by this request compared to the set target capacity.SpotFleetRequestConfigData.Builder iamFleetRole(String iamFleetRole)
Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot fleet
request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration
.
iamFleetRole
- Grants the Spot fleet permission to terminate Spot instances on your behalf when you cancel its Spot
fleet request using CancelSpotFleetRequests or when the Spot fleet request expires, if you set
terminateInstancesWithExpiration
.SpotFleetRequestConfigData.Builder launchSpecifications(Collection<SpotFleetLaunchSpecification> launchSpecifications)
Information about the launch specifications for the Spot fleet request.
launchSpecifications
- Information about the launch specifications for the Spot fleet request.SpotFleetRequestConfigData.Builder launchSpecifications(SpotFleetLaunchSpecification... launchSpecifications)
Information about the launch specifications for the Spot fleet request.
NOTE: This method appends the values to the existing list (if any). Use
#setLaunchSpecifications(java.util.Collection)
or
#withLaunchSpecifications(java.util.Collection)
if you want to override the existing values.
launchSpecifications
- Information about the launch specifications for the Spot fleet request.SpotFleetRequestConfigData.Builder spotPrice(String spotPrice)
The bid price per unit hour.
spotPrice
- The bid price per unit hour.SpotFleetRequestConfigData.Builder targetCapacity(Integer targetCapacity)
The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O.
targetCapacity
- The number of units to request. You can choose to set the target capacity in terms of instances or a
performance characteristic that is important to your application workload, such as vCPUs, memory, or
I/O.SpotFleetRequestConfigData.Builder terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running Spot instances should be terminated when the Spot fleet request expires.
terminateInstancesWithExpiration
- Indicates whether running Spot instances should be terminated when the Spot fleet request expires.SpotFleetRequestConfigData.Builder type(String type)
The type of request. Indicates whether the fleet will only request
the target capacity or also
attempt to maintain
it. When you request
a certain target capacity, the fleet will
only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor
will it submit bids in alternative Spot pools if capacity is not available. When you want to
maintain
a certain target capacity, fleet will place the required bids to meet this target
capacity. It will also automatically replenish any interrupted instances. Default: maintain
.
type
- The type of request. Indicates whether the fleet will only request
the target capacity or
also attempt to maintain
it. When you request
a certain target capacity, the
fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity
is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When
you want to maintain
a certain target capacity, fleet will place the required bids to
meet this target capacity. It will also automatically replenish any interrupted instances. Default:
maintain
.FleetType
SpotFleetRequestConfigData.Builder type(FleetType type)
The type of request. Indicates whether the fleet will only request
the target capacity or also
attempt to maintain
it. When you request
a certain target capacity, the fleet will
only place the required bids. It will not attempt to replenish Spot instances if capacity is diminished, nor
will it submit bids in alternative Spot pools if capacity is not available. When you want to
maintain
a certain target capacity, fleet will place the required bids to meet this target
capacity. It will also automatically replenish any interrupted instances. Default: maintain
.
type
- The type of request. Indicates whether the fleet will only request
the target capacity or
also attempt to maintain
it. When you request
a certain target capacity, the
fleet will only place the required bids. It will not attempt to replenish Spot instances if capacity
is diminished, nor will it submit bids in alternative Spot pools if capacity is not available. When
you want to maintain
a certain target capacity, fleet will place the required bids to
meet this target capacity. It will also automatically replenish any interrupted instances. Default:
maintain
.FleetType
SpotFleetRequestConfigData.Builder validFrom(Date validFrom)
The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.
validFrom
- The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling
the request immediately.SpotFleetRequestConfigData.Builder validUntil(Date validUntil)
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance requests are placed or enabled to fulfill the request.
validUntil
- The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot instance
requests are placed or enabled to fulfill the request.SpotFleetRequestConfigData.Builder replaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether Spot fleet should replace unhealthy instances.
replaceUnhealthyInstances
- Indicates whether Spot fleet should replace unhealthy instances.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.