@Generated(value="software.amazon.awssdk:codegen") public final class FleetData extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FleetData.Builder,FleetData>
Describes an EC2 Fleet.
Modifier and Type | Class and Description |
---|---|
static interface |
FleetData.Builder |
Modifier and Type | Method and Description |
---|---|
FleetActivityStatus |
activityStatus()
The progress of the EC2 Fleet.
|
String |
activityStatusAsString()
The progress of the EC2 Fleet.
|
static FleetData.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
Instant |
createTime()
The creation date and time of the EC2 Fleet.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<DescribeFleetError> |
errors()
Information about the instances that could not be launched by the fleet.
|
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.
|
String |
excessCapacityTerminationPolicyAsString()
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 |
fleetId()
The ID of the EC2 Fleet.
|
FleetStateCode |
fleetState()
The state of the EC2 Fleet.
|
String |
fleetStateAsString()
The state of the EC2 Fleet.
|
Double |
fulfilledCapacity()
The number of units fulfilled by this request compared to the set target capacity.
|
Double |
fulfilledOnDemandCapacity()
The number of units fulfilled by this request compared to the set target On-Demand capacity.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<DescribeFleetsInstances> |
instances()
Information about the instances that were launched by the fleet.
|
List<FleetLaunchTemplateConfig> |
launchTemplateConfigs()
The launch template and overrides.
|
OnDemandOptions |
onDemandOptions()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
Boolean |
replaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy instances.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FleetData.Builder> |
serializableBuilderClass() |
SpotOptions |
spotOptions()
The configuration of Spot Instances in an EC2 Fleet.
|
List<Tag> |
tags()
The tags for an EC2 Fleet resource.
|
TargetCapacitySpecification |
targetCapacitySpecification()
The number of units to request.
|
Boolean |
terminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
FleetData.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
FleetType |
type()
The type of request.
|
String |
typeAsString()
The type of request.
|
Instant |
validFrom()
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
Instant |
validUntil()
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public 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.
If the service returns an enum value that is not available in the current SDK version, activityStatus
will return FleetActivityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from activityStatusAsString()
.
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 activityStatusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, activityStatus
will return FleetActivityStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from activityStatusAsString()
.
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 Instant createTime()
The creation date and time of the EC2 Fleet.
public String fleetId()
The ID of the EC2 Fleet.
public FleetStateCode fleetState()
The state of the EC2 Fleet.
If the service returns an enum value that is not available in the current SDK version, fleetState
will
return FleetStateCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fleetStateAsString()
.
FleetStateCode
public String fleetStateAsString()
The state of the EC2 Fleet.
If the service returns an enum value that is not available in the current SDK version, fleetState
will
return FleetStateCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
fleetStateAsString()
.
FleetStateCode
public String clientToken()
Unique, case-sensitive identifier 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 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.
If the service returns an enum value that is not available in the current SDK version,
excessCapacityTerminationPolicy
will return
FleetExcessCapacityTerminationPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from excessCapacityTerminationPolicyAsString()
.
FleetExcessCapacityTerminationPolicy
public String excessCapacityTerminationPolicyAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
excessCapacityTerminationPolicy
will return
FleetExcessCapacityTerminationPolicy.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is
available from excessCapacityTerminationPolicyAsString()
.
FleetExcessCapacityTerminationPolicy
public Double fulfilledCapacity()
The number of units fulfilled by this request compared to the set target capacity.
public Double fulfilledOnDemandCapacity()
The number of units fulfilled by this request compared to the set target On-Demand capacity.
public List<FleetLaunchTemplateConfig> launchTemplateConfigs()
The launch template and overrides.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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.
maintain
, you can specify a target capacity of 0 and add capacity
later.public Boolean terminateInstancesWithExpiration()
Indicates whether running instances should be terminated when the EC2 Fleet expires.
public 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 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
.
If the service returns an enum value that is not available in the current SDK version, type
will return
FleetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
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
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 typeAsString()
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 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
.
If the service returns an enum value that is not available in the current SDK version, type
will return
FleetType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
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
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 Instant 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 Instant 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 Boolean replaceUnhealthyInstances()
Indicates whether EC2 Fleet should replace unhealthy instances.
public SpotOptions spotOptions()
The configuration of Spot Instances in an EC2 Fleet.
public OnDemandOptions onDemandOptions()
The allocation strategy of On-Demand Instances in an EC2 Fleet.
public List<Tag> tags()
The tags for an EC2 Fleet resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<DescribeFleetError> errors()
Information about the instances that could not be launched by the fleet. Valid only when Type is set to
instant
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
instant
.public List<DescribeFleetsInstances> instances()
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
instant
.public FleetData.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<FleetData.Builder,FleetData>
public static FleetData.Builder builder()
public static Class<? extends FleetData.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.