@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetData extends Object implements Serializable, Cloneable
Describes an EC2 Fleet.
Constructor and Description |
---|
FleetData() |
Modifier and Type | Method and Description |
---|---|
FleetData |
clone() |
boolean |
equals(Object obj) |
String |
getActivityStatus()
The progress of the EC2 Fleet.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getContext()
Reserved.
|
Date |
getCreateTime()
The creation date and time of the EC2 Fleet.
|
List<DescribeFleetError> |
getErrors()
Information about the instances that could not be launched by the fleet.
|
String |
getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased
below the current size of the EC2 Fleet.
|
String |
getFleetId()
The ID of the EC2 Fleet.
|
String |
getFleetState()
The state of the EC2 Fleet.
|
Double |
getFulfilledCapacity()
The number of units fulfilled by this request compared to the set target capacity.
|
Double |
getFulfilledOnDemandCapacity()
The number of units fulfilled by this request compared to the set target On-Demand capacity.
|
List<DescribeFleetsInstances> |
getInstances()
Information about the instances that were launched by the fleet.
|
List<FleetLaunchTemplateConfig> |
getLaunchTemplateConfigs()
The launch template and overrides.
|
OnDemandOptions |
getOnDemandOptions()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
Boolean |
getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
SpotOptions |
getSpotOptions()
The configuration of Spot Instances in an EC2 Fleet.
|
List<Tag> |
getTags()
The tags for an EC2 Fleet resource.
|
TargetCapacitySpecification |
getTargetCapacitySpecification()
The number of units to request.
|
Boolean |
getTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
String |
getType()
The type of request.
|
Date |
getValidFrom()
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Date |
getValidUntil()
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
int |
hashCode() |
Boolean |
isReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
Boolean |
isTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setActivityStatus(String activityStatus)
The progress of the EC2 Fleet.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setContext(String context)
Reserved.
|
void |
setCreateTime(Date createTime)
The creation date and time of the EC2 Fleet.
|
void |
setErrors(Collection<DescribeFleetError> errors)
Information about the instances that could not be launched by the fleet.
|
void |
setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased
below the current size of the EC2 Fleet.
|
void |
setFleetId(String fleetId)
The ID of the EC2 Fleet.
|
void |
setFleetState(String fleetState)
The state of the EC2 Fleet.
|
void |
setFulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
|
void |
setFulfilledOnDemandCapacity(Double fulfilledOnDemandCapacity)
The number of units fulfilled by this request compared to the set target On-Demand capacity.
|
void |
setInstances(Collection<DescribeFleetsInstances> instances)
Information about the instances that were launched by the fleet.
|
void |
setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
|
void |
setOnDemandOptions(OnDemandOptions onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
void |
setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
void |
setSpotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
|
void |
setTags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
|
void |
setTargetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification)
The number of units to request.
|
void |
setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
void |
setType(String type)
The type of request.
|
void |
setValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
void |
setValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
String |
toString()
Returns a string representation of this object.
|
FleetData |
withActivityStatus(FleetActivityStatus activityStatus)
The progress of the EC2 Fleet.
|
FleetData |
withActivityStatus(String activityStatus)
The progress of the EC2 Fleet.
|
FleetData |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
FleetData |
withContext(String context)
Reserved.
|
FleetData |
withCreateTime(Date createTime)
The creation date and time of the EC2 Fleet.
|
FleetData |
withErrors(Collection<DescribeFleetError> errors)
Information about the instances that could not be launched by the fleet.
|
FleetData |
withErrors(DescribeFleetError... errors)
Information about the instances that could not be launched by the fleet.
|
FleetData |
withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased
below the current size of the EC2 Fleet.
|
FleetData |
withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased
below the current size of the EC2 Fleet.
|
FleetData |
withFleetId(String fleetId)
The ID of the EC2 Fleet.
|
FleetData |
withFleetState(FleetStateCode fleetState)
The state of the EC2 Fleet.
|
FleetData |
withFleetState(String fleetState)
The state of the EC2 Fleet.
|
FleetData |
withFulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
|
FleetData |
withFulfilledOnDemandCapacity(Double fulfilledOnDemandCapacity)
The number of units fulfilled by this request compared to the set target On-Demand capacity.
|
FleetData |
withInstances(Collection<DescribeFleetsInstances> instances)
Information about the instances that were launched by the fleet.
|
FleetData |
withInstances(DescribeFleetsInstances... instances)
Information about the instances that were launched by the fleet.
|
FleetData |
withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
|
FleetData |
withLaunchTemplateConfigs(FleetLaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides.
|
FleetData |
withOnDemandOptions(OnDemandOptions onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
FleetData |
withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
FleetData |
withSpotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
|
FleetData |
withTags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
|
FleetData |
withTags(Tag... tags)
The tags for an EC2 Fleet resource.
|
FleetData |
withTargetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification)
The number of units to request.
|
FleetData |
withTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
FleetData |
withType(FleetType type)
The type of request.
|
FleetData |
withType(String type)
The type of request.
|
FleetData |
withValidFrom(Date validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
FleetData |
withValidUntil(Date validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
public void setActivityStatus(String activityStatus)
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are
placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than
its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status
is pending_termination
while instances are terminating.
activityStatus
- The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests
are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is
decreased, the status is pending_termination
while instances are terminating.FleetActivityStatus
public String getActivityStatus()
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are
placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than
its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status
is pending_termination
while instances are terminating.
error
. After all requests
are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is
decreased, the status is pending_termination
while instances are terminating.FleetActivityStatus
public FleetData withActivityStatus(String activityStatus)
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are
placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than
its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status
is pending_termination
while instances are terminating.
activityStatus
- The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests
are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is
decreased, the status is pending_termination
while instances are terminating.FleetActivityStatus
public FleetData withActivityStatus(FleetActivityStatus activityStatus)
The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests are
placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or greater than
its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is decreased, the status
is pending_termination
while instances are terminating.
activityStatus
- The progress of the EC2 Fleet. If there is an error, the status is error
. After all requests
are placed, the status is pending_fulfillment
. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled
. If the size of the EC2 Fleet is
decreased, the status is pending_termination
while instances are terminating.FleetActivityStatus
public void setCreateTime(Date createTime)
The creation date and time of the EC2 Fleet.
createTime
- The creation date and time of the EC2 Fleet.public Date getCreateTime()
The creation date and time of the EC2 Fleet.
public FleetData withCreateTime(Date createTime)
The creation date and time of the EC2 Fleet.
createTime
- The creation date and time of the EC2 Fleet.public void setFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.public String getFleetId()
The ID of the EC2 Fleet.
public FleetData withFleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.public void setFleetState(String fleetState)
The state of the EC2 Fleet.
fleetState
- The state of the EC2 Fleet.FleetStateCode
public String getFleetState()
The state of the EC2 Fleet.
FleetStateCode
public FleetData withFleetState(String fleetState)
The state of the EC2 Fleet.
fleetState
- The state of the EC2 Fleet.FleetStateCode
public FleetData withFleetState(FleetStateCode fleetState)
The state of the EC2 Fleet.
fleetState
- The state of the EC2 Fleet.FleetStateCode
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.
Constraints: Maximum 64 ASCII characters
public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
Constraints: Maximum 64 ASCII characters
public FleetData withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see Ensuring
idempotency.
Constraints: Maximum 64 ASCII characters
public void setExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public String getExcessCapacityTerminationPolicy()
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public FleetData withExcessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public FleetData withExcessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
Supported only for fleets of type maintain
.
FleetExcessCapacityTerminationPolicy
public void setFulfilledCapacity(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.public Double getFulfilledCapacity()
The number of units fulfilled by this request compared to the set target capacity.
public FleetData withFulfilledCapacity(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.public void setFulfilledOnDemandCapacity(Double fulfilledOnDemandCapacity)
The number of units fulfilled by this request compared to the set target On-Demand capacity.
fulfilledOnDemandCapacity
- The number of units fulfilled by this request compared to the set target On-Demand capacity.public Double getFulfilledOnDemandCapacity()
The number of units fulfilled by this request compared to the set target On-Demand capacity.
public FleetData withFulfilledOnDemandCapacity(Double fulfilledOnDemandCapacity)
The number of units fulfilled by this request compared to the set target On-Demand capacity.
fulfilledOnDemandCapacity
- The number of units fulfilled by this request compared to the set target On-Demand capacity.public List<FleetLaunchTemplateConfig> getLaunchTemplateConfigs()
The launch template and overrides.
public void setLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs
- The launch template and overrides.public FleetData withLaunchTemplateConfigs(FleetLaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides.
NOTE: This method appends the values to the existing list (if any). Use
setLaunchTemplateConfigs(java.util.Collection)
or
withLaunchTemplateConfigs(java.util.Collection)
if you want to override the existing values.
launchTemplateConfigs
- The launch template and overrides.public FleetData withLaunchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs
- The launch template and overrides.public void setTargetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification)
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. If the request type
is maintain
, you can specify a target capacity of 0 and add capacity later.
targetCapacitySpecification
- 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.
If the request type is maintain
, you can specify a target capacity of 0 and add capacity
later.public TargetCapacitySpecification getTargetCapacitySpecification()
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. If the request type
is maintain
, you can specify a target capacity of 0 and add capacity later.
maintain
, you can specify a target capacity of 0 and add capacity
later.public FleetData withTargetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification)
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. If the request type
is maintain
, you can specify a target capacity of 0 and add capacity later.
targetCapacitySpecification
- 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.
If the request type is maintain
, you can specify a target capacity of 0 and add capacity
later.public void setTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
terminateInstancesWithExpiration
- Indicates whether running instances should be terminated when the EC2 Fleet expires.public Boolean getTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
public FleetData withTerminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
terminateInstancesWithExpiration
- Indicates whether running instances should be terminated when the EC2 Fleet expires.public Boolean isTerminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
public void setType(String type)
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests; it does not attempt to replenish instances if capacity is diminished, and it does
not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public String getType()
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only
places the required requests; it does not attempt to replenish instances if capacity is diminished, and
it does not submit requests in alternative capacity pools if capacity is unavailable. To maintain a
certain target capacity, EC2 Fleet places the required requests to meet this target capacity. It also
automatically replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public FleetData withType(String type)
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests; it does not attempt to replenish instances if capacity is diminished, and it does
not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public FleetData withType(FleetType type)
The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or also
attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places the
required requests; it does not attempt to replenish instances if capacity is diminished, and it does not submit
requests in alternative capacity pools if capacity is unavailable. To maintain a certain target capacity, EC2
Fleet places the required requests to meet this target capacity. It also automatically replenishes any
interrupted Spot Instances. Default: maintain
.
type
- The type of request. Indicates whether the EC2 Fleet only requests
the target capacity, or
also attempts to maintain
it. If you request a certain target capacity, EC2 Fleet only places
the required requests; it does not attempt to replenish instances if capacity is diminished, and it does
not submit requests in alternative capacity pools if capacity is unavailable. To maintain a certain target
capacity, EC2 Fleet places the required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain
.FleetType
public void setValidFrom(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.public Date getValidFrom()
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 FleetData withValidFrom(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.public void setValidUntil(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 instance requests are placed or able to fulfill the request. The default end date is 7 days from the current 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 instance requests
are placed or able to fulfill the request. The default end date is 7 days from the current date.public Date getValidUntil()
The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new instance requests are placed or able to fulfill the request. The default end date is 7 days from the current date.
public FleetData withValidUntil(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 instance requests are placed or able to fulfill the request. The default end date is 7 days from the current 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 instance requests
are placed or able to fulfill the request. The default end date is 7 days from the current date.public void setReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
replaceUnhealthyInstances
- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public Boolean getReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public FleetData withReplaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
replaceUnhealthyInstances
- Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public Boolean isReplaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported only for fleets of type
maintain
. For more information, see EC2
Fleet health checks in the Amazon EC2 User Guide.
maintain
. For more information, see EC2 Fleet health checks in the Amazon EC2 User Guide.public void setSpotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
spotOptions
- The configuration of Spot Instances in an EC2 Fleet.public SpotOptions getSpotOptions()
The configuration of Spot Instances in an EC2 Fleet.
public FleetData withSpotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
spotOptions
- The configuration of Spot Instances in an EC2 Fleet.public void setOnDemandOptions(OnDemandOptions onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
onDemandOptions
- The allocation strategy of On-Demand Instances in an EC2 Fleet.public OnDemandOptions getOnDemandOptions()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
public FleetData withOnDemandOptions(OnDemandOptions onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
onDemandOptions
- The allocation strategy of On-Demand Instances in an EC2 Fleet.public List<Tag> getTags()
The tags for an EC2 Fleet resource.
public void setTags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
tags
- The tags for an EC2 Fleet resource.public FleetData withTags(Tag... tags)
The tags for an EC2 Fleet resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for an EC2 Fleet resource.public FleetData withTags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
tags
- The tags for an EC2 Fleet resource.public List<DescribeFleetError> getErrors()
Information about the instances that could not be launched by the fleet. Valid only when Type is set to
instant
.
instant
.public void setErrors(Collection<DescribeFleetError> errors)
Information about the instances that could not be launched by the fleet. Valid only when Type is set to
instant
.
errors
- Information about the instances that could not be launched by the fleet. Valid only when Type is
set to instant
.public FleetData withErrors(DescribeFleetError... errors)
Information about the instances that could not be launched by the fleet. Valid only when Type is set to
instant
.
NOTE: This method appends the values to the existing list (if any). Use
setErrors(java.util.Collection)
or withErrors(java.util.Collection)
if you want to override the
existing values.
errors
- Information about the instances that could not be launched by the fleet. Valid only when Type is
set to instant
.public FleetData withErrors(Collection<DescribeFleetError> errors)
Information about the instances that could not be launched by the fleet. Valid only when Type is set to
instant
.
errors
- Information about the instances that could not be launched by the fleet. Valid only when Type is
set to instant
.public List<DescribeFleetsInstances> getInstances()
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
instant
.public void setInstances(Collection<DescribeFleetsInstances> instances)
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
instances
- Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.public FleetData withInstances(DescribeFleetsInstances... instances)
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.public FleetData withInstances(Collection<DescribeFleetsInstances> instances)
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
instances
- Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.public void setContext(String context)
Reserved.
context
- Reserved.public String getContext()
Reserved.
public FleetData withContext(String context)
Reserved.
context
- Reserved.public String toString()
toString
in class Object
Object.toString()