public class SpotFleetRequestConfigData
extends java.lang.Object
implements java.io.Serializable
Describes the configuration of a Spot fleet request.
Constructor and Description |
---|
SpotFleetRequestConfigData() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAllocationStrategy()
Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request.
|
java.lang.String |
getClientToken()
A unique, case-sensitive identifier you provide to ensure idempotency
of your listings.
|
java.lang.String |
getExcessCapacityTerminationPolicy()
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.
|
java.lang.Double |
getFulfilledCapacity()
The number of units fulfilled by this request compared to the set
target capacity.
|
java.lang.String |
getIamFleetRole()
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 . |
java.util.List<SpotFleetLaunchSpecification> |
getLaunchSpecifications()
Information about the launch specifications for the Spot fleet
request.
|
java.lang.String |
getSpotPrice()
The bid price per unit hour.
|
java.lang.Integer |
getTargetCapacity()
The number of units to request.
|
java.lang.Boolean |
getTerminateInstancesWithExpiration()
Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.
|
java.lang.String |
getType()
The type of request.
|
java.util.Date |
getValidFrom()
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
java.util.Date |
getValidUntil()
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
java.lang.Boolean |
isTerminateInstancesWithExpiration()
Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.
|
void |
setAllocationStrategy(AllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request.
|
void |
setAllocationStrategy(java.lang.String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request.
|
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier you provide to ensure idempotency
of your listings.
|
void |
setExcessCapacityTerminationPolicy(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.
|
void |
setExcessCapacityTerminationPolicy(java.lang.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.
|
void |
setFulfilledCapacity(java.lang.Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set
target capacity.
|
void |
setIamFleetRole(java.lang.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 . |
void |
setLaunchSpecifications(java.util.Collection<SpotFleetLaunchSpecification> launchSpecifications)
Information about the launch specifications for the Spot fleet
request.
|
void |
setSpotPrice(java.lang.String spotPrice)
The bid price per unit hour.
|
void |
setTargetCapacity(java.lang.Integer targetCapacity)
The number of units to request.
|
void |
setTerminateInstancesWithExpiration(java.lang.Boolean terminateInstancesWithExpiration)
Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.
|
void |
setType(FleetType type)
The type of request.
|
void |
setType(java.lang.String type)
The type of request.
|
void |
setValidFrom(java.util.Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
void |
setValidUntil(java.util.Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SpotFleetRequestConfigData |
withAllocationStrategy(AllocationStrategy allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request.
|
SpotFleetRequestConfigData |
withAllocationStrategy(java.lang.String allocationStrategy)
Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request.
|
SpotFleetRequestConfigData |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier you provide to ensure idempotency
of your listings.
|
SpotFleetRequestConfigData |
withExcessCapacityTerminationPolicy(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 |
withExcessCapacityTerminationPolicy(java.lang.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 |
withFulfilledCapacity(java.lang.Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set
target capacity.
|
SpotFleetRequestConfigData |
withIamFleetRole(java.lang.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 |
withLaunchSpecifications(java.util.Collection<SpotFleetLaunchSpecification> launchSpecifications)
Information about the launch specifications for the Spot fleet
request.
|
SpotFleetRequestConfigData |
withLaunchSpecifications(SpotFleetLaunchSpecification... launchSpecifications)
Information about the launch specifications for the Spot fleet
request.
|
SpotFleetRequestConfigData |
withSpotPrice(java.lang.String spotPrice)
The bid price per unit hour.
|
SpotFleetRequestConfigData |
withTargetCapacity(java.lang.Integer targetCapacity)
The number of units to request.
|
SpotFleetRequestConfigData |
withTerminateInstancesWithExpiration(java.lang.Boolean terminateInstancesWithExpiration)
Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.
|
SpotFleetRequestConfigData |
withType(FleetType type)
The type of request.
|
SpotFleetRequestConfigData |
withType(java.lang.String type)
The type of request.
|
SpotFleetRequestConfigData |
withValidFrom(java.util.Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
SpotFleetRequestConfigData |
withValidUntil(java.util.Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
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.public SpotFleetRequestConfigData withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.String getSpotPrice()
public void setSpotPrice(java.lang.String spotPrice)
spotPrice
- The bid price per unit hour.public SpotFleetRequestConfigData withSpotPrice(java.lang.String spotPrice)
Returns a reference to this object so that method calls can be chained together.
spotPrice
- The bid price per unit hour.public java.lang.Integer getTargetCapacity()
public void setTargetCapacity(java.lang.Integer targetCapacity)
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.public SpotFleetRequestConfigData withTargetCapacity(java.lang.Integer targetCapacity)
Returns a reference to this object so that method calls can be chained together.
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.public java.util.Date getValidFrom()
public void setValidFrom(java.util.Date validFrom)
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.public SpotFleetRequestConfigData withValidFrom(java.util.Date validFrom)
Returns a reference to this object so that method calls can be chained together.
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.public java.util.Date getValidUntil()
public void setValidUntil(java.util.Date validUntil)
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.public SpotFleetRequestConfigData withValidUntil(java.util.Date validUntil)
Returns a reference to this object so that method calls can be chained together.
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.public java.lang.Boolean isTerminateInstancesWithExpiration()
public void setTerminateInstancesWithExpiration(java.lang.Boolean terminateInstancesWithExpiration)
terminateInstancesWithExpiration
- Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.public SpotFleetRequestConfigData withTerminateInstancesWithExpiration(java.lang.Boolean terminateInstancesWithExpiration)
Returns a reference to this object so that method calls can be chained together.
terminateInstancesWithExpiration
- Indicates whether running Spot instances should be terminated when the
Spot fleet request expires.public java.lang.Boolean getTerminateInstancesWithExpiration()
public java.lang.String getIamFleetRole()
terminateInstancesWithExpiration
.terminateInstancesWithExpiration
.public void setIamFleetRole(java.lang.String iamFleetRole)
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
.public SpotFleetRequestConfigData withIamFleetRole(java.lang.String iamFleetRole)
terminateInstancesWithExpiration
.
Returns a reference to this object so that method calls can be chained together.
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
.public java.util.List<SpotFleetLaunchSpecification> getLaunchSpecifications()
Constraints:
Length: 1 -
public void setLaunchSpecifications(java.util.Collection<SpotFleetLaunchSpecification> launchSpecifications)
Constraints:
Length: 1 -
launchSpecifications
- Information about the launch specifications for the Spot fleet
request.public SpotFleetRequestConfigData withLaunchSpecifications(SpotFleetLaunchSpecification... launchSpecifications)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
launchSpecifications
- Information about the launch specifications for the Spot fleet
request.public SpotFleetRequestConfigData withLaunchSpecifications(java.util.Collection<SpotFleetLaunchSpecification> launchSpecifications)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
launchSpecifications
- Information about the launch specifications for the Spot fleet
request.public java.lang.String getExcessCapacityTerminationPolicy()
Constraints:
Allowed Values: noTermination, default
ExcessCapacityTerminationPolicy
public void setExcessCapacityTerminationPolicy(java.lang.String excessCapacityTerminationPolicy)
Constraints:
Allowed Values: noTermination, default
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
public SpotFleetRequestConfigData withExcessCapacityTerminationPolicy(java.lang.String excessCapacityTerminationPolicy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: noTermination, default
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
public void setExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Constraints:
Allowed Values: noTermination, default
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
public SpotFleetRequestConfigData withExcessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: noTermination, default
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
public java.lang.String getAllocationStrategy()
lowestPrice
.
Constraints:
Allowed Values: lowestPrice, diversified
lowestPrice
.AllocationStrategy
public void setAllocationStrategy(java.lang.String allocationStrategy)
lowestPrice
.
Constraints:
Allowed Values: lowestPrice, diversified
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request. The default is
lowestPrice
.AllocationStrategy
public SpotFleetRequestConfigData withAllocationStrategy(java.lang.String allocationStrategy)
lowestPrice
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lowestPrice, diversified
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request. The default is
lowestPrice
.AllocationStrategy
public void setAllocationStrategy(AllocationStrategy allocationStrategy)
lowestPrice
.
Constraints:
Allowed Values: lowestPrice, diversified
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request. The default is
lowestPrice
.AllocationStrategy
public SpotFleetRequestConfigData withAllocationStrategy(AllocationStrategy allocationStrategy)
lowestPrice
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lowestPrice, diversified
allocationStrategy
- Indicates how to allocate the target capacity across the Spot pools
specified by the Spot fleet request. The default is
lowestPrice
.AllocationStrategy
public java.lang.Double getFulfilledCapacity()
public void setFulfilledCapacity(java.lang.Double fulfilledCapacity)
fulfilledCapacity
- The number of units fulfilled by this request compared to the set
target capacity.public SpotFleetRequestConfigData withFulfilledCapacity(java.lang.Double fulfilledCapacity)
Returns a reference to this object so that method calls can be chained together.
fulfilledCapacity
- The number of units fulfilled by this request compared to the set
target capacity.public java.lang.String getType()
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
.
Constraints:
Allowed Values: request, maintain
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
public void setType(java.lang.String type)
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
.
Constraints:
Allowed Values: request, 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
public SpotFleetRequestConfigData withType(java.lang.String type)
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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: request, 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
public void setType(FleetType type)
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
.
Constraints:
Allowed Values: request, 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
public SpotFleetRequestConfigData withType(FleetType type)
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
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: request, 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
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.