public static interface FleetData.Builder extends SdkPojo, CopyableBuilder<FleetData.Builder,FleetData>
Modifier and Type | Method and Description |
---|---|
FleetData.Builder |
activityStatus(FleetActivityStatus activityStatus)
The progress of the EC2 Fleet.
|
FleetData.Builder |
activityStatus(String activityStatus)
The progress of the EC2 Fleet.
|
FleetData.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
FleetData.Builder |
context(String context)
Reserved.
|
FleetData.Builder |
createTime(Instant createTime)
The creation date and time of the EC2 Fleet.
|
FleetData.Builder |
errors(Collection<DescribeFleetError> errors)
Information about the instances that could not be launched by the fleet.
|
FleetData.Builder |
errors(Consumer<DescribeFleetError.Builder>... errors)
Information about the instances that could not be launched by the fleet.
|
FleetData.Builder |
errors(DescribeFleetError... errors)
Information about the instances that could not be launched by the fleet.
|
FleetData.Builder |
excessCapacityTerminationPolicy(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.Builder |
excessCapacityTerminationPolicy(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.Builder |
fleetId(String fleetId)
The ID of the EC2 Fleet.
|
FleetData.Builder |
fleetState(FleetStateCode fleetState)
The state of the EC2 Fleet.
|
FleetData.Builder |
fleetState(String fleetState)
The state of the EC2 Fleet.
|
FleetData.Builder |
fulfilledCapacity(Double fulfilledCapacity)
The number of units fulfilled by this request compared to the set target capacity.
|
FleetData.Builder |
fulfilledOnDemandCapacity(Double fulfilledOnDemandCapacity)
The number of units fulfilled by this request compared to the set target On-Demand capacity.
|
FleetData.Builder |
instances(Collection<DescribeFleetsInstances> instances)
Information about the instances that were launched by the fleet.
|
FleetData.Builder |
instances(Consumer<DescribeFleetsInstances.Builder>... instances)
Information about the instances that were launched by the fleet.
|
FleetData.Builder |
instances(DescribeFleetsInstances... instances)
Information about the instances that were launched by the fleet.
|
FleetData.Builder |
launchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
|
FleetData.Builder |
launchTemplateConfigs(Consumer<FleetLaunchTemplateConfig.Builder>... launchTemplateConfigs)
The launch template and overrides.
|
FleetData.Builder |
launchTemplateConfigs(FleetLaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides.
|
default FleetData.Builder |
onDemandOptions(Consumer<OnDemandOptions.Builder> onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
FleetData.Builder |
onDemandOptions(OnDemandOptions onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
|
FleetData.Builder |
replaceUnhealthyInstances(Boolean replaceUnhealthyInstances)
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
|
default FleetData.Builder |
spotOptions(Consumer<SpotOptions.Builder> spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
|
FleetData.Builder |
spotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
|
FleetData.Builder |
tags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
|
FleetData.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags for an EC2 Fleet resource.
|
FleetData.Builder |
tags(Tag... tags)
The tags for an EC2 Fleet resource.
|
default FleetData.Builder |
targetCapacitySpecification(Consumer<TargetCapacitySpecification.Builder> targetCapacitySpecification)
The number of units to request.
|
FleetData.Builder |
targetCapacitySpecification(TargetCapacitySpecification targetCapacitySpecification)
The number of units to request.
|
FleetData.Builder |
terminateInstancesWithExpiration(Boolean terminateInstancesWithExpiration)
Indicates whether running instances should be terminated when the EC2 Fleet expires.
|
FleetData.Builder |
type(FleetType type)
The type of request.
|
FleetData.Builder |
type(String type)
The type of request.
|
FleetData.Builder |
validFrom(Instant validFrom)
The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
FleetData.Builder |
validUntil(Instant validUntil)
The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ).
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
FleetData.Builder activityStatus(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
,
FleetActivityStatus
FleetData.Builder activityStatus(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
,
FleetActivityStatus
FleetData.Builder createTime(Instant createTime)
The creation date and time of the EC2 Fleet.
createTime
- The creation date and time of the EC2 Fleet.FleetData.Builder fleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.FleetData.Builder fleetState(String fleetState)
The state of the EC2 Fleet.
fleetState
- The state of the EC2 Fleet.FleetStateCode
,
FleetStateCode
FleetData.Builder fleetState(FleetStateCode fleetState)
The state of the EC2 Fleet.
fleetState
- The state of the EC2 Fleet.FleetStateCode
,
FleetStateCode
FleetData.Builder clientToken(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
FleetData.Builder excessCapacityTerminationPolicy(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.
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.FleetExcessCapacityTerminationPolicy
,
FleetExcessCapacityTerminationPolicy
FleetData.Builder excessCapacityTerminationPolicy(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.
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.FleetExcessCapacityTerminationPolicy
,
FleetExcessCapacityTerminationPolicy
FleetData.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.FleetData.Builder fulfilledOnDemandCapacity(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.FleetData.Builder launchTemplateConfigs(Collection<FleetLaunchTemplateConfig> launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs
- The launch template and overrides.FleetData.Builder launchTemplateConfigs(FleetLaunchTemplateConfig... launchTemplateConfigs)
The launch template and overrides.
launchTemplateConfigs
- The launch template and overrides.FleetData.Builder launchTemplateConfigs(Consumer<FleetLaunchTemplateConfig.Builder>... launchTemplateConfigs)
The launch template and overrides.
This is a convenience method that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #launchTemplateConfigs(List)
.launchTemplateConfigs
- a consumer that will call methods on List.Builder
#launchTemplateConfigs(List)
FleetData.Builder targetCapacitySpecification(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.default FleetData.Builder targetCapacitySpecification(Consumer<TargetCapacitySpecification.Builder> 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.Builder
avoiding the need to create one manually via TargetCapacitySpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to targetCapacitySpecification(TargetCapacitySpecification)
.targetCapacitySpecification
- a consumer that will call methods on TargetCapacitySpecification.Builder
targetCapacitySpecification(TargetCapacitySpecification)
FleetData.Builder terminateInstancesWithExpiration(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.FleetData.Builder type(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
,
FleetType
FleetData.Builder type(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
,
FleetType
FleetData.Builder validFrom(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.
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.FleetData.Builder validUntil(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.
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.FleetData.Builder replaceUnhealthyInstances(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.FleetData.Builder spotOptions(SpotOptions spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
spotOptions
- The configuration of Spot Instances in an EC2 Fleet.default FleetData.Builder spotOptions(Consumer<SpotOptions.Builder> spotOptions)
The configuration of Spot Instances in an EC2 Fleet.
This is a convenience method that creates an instance of theSpotOptions.Builder
avoiding the need to
create one manually via SpotOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to spotOptions(SpotOptions)
.spotOptions
- a consumer that will call methods on SpotOptions.Builder
spotOptions(SpotOptions)
FleetData.Builder onDemandOptions(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.default FleetData.Builder onDemandOptions(Consumer<OnDemandOptions.Builder> onDemandOptions)
The allocation strategy of On-Demand Instances in an EC2 Fleet.
This is a convenience method that creates an instance of theOnDemandOptions.Builder
avoiding the
need to create one manually via OnDemandOptions.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to onDemandOptions(OnDemandOptions)
.onDemandOptions
- a consumer that will call methods on OnDemandOptions.Builder
onDemandOptions(OnDemandOptions)
FleetData.Builder tags(Collection<Tag> tags)
The tags for an EC2 Fleet resource.
tags
- The tags for an EC2 Fleet resource.FleetData.Builder tags(Tag... tags)
The tags for an EC2 Fleet resource.
tags
- The tags for an EC2 Fleet resource.FleetData.Builder tags(Consumer<Tag.Builder>... tags)
The tags for an EC2 Fleet resource.
This is a convenience method that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
FleetData.Builder errors(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
.FleetData.Builder errors(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
.FleetData.Builder errors(Consumer<DescribeFleetError.Builder>... errors)
Information about the instances that could not be launched by the fleet. Valid only when Type is set
to instant
.
List.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #errors(List)
.errors
- a consumer that will call methods on List.Builder
#errors(List)
FleetData.Builder instances(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
.FleetData.Builder instances(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
.FleetData.Builder instances(Consumer<DescribeFleetsInstances.Builder>... instances)
Information about the instances that were launched by the fleet. Valid only when Type is set to
instant
.
List.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #instances(List)
.instances
- a consumer that will call methods on List.Builder
#instances(List)
FleetData.Builder context(String context)
Reserved.
context
- Reserved.Copyright © 2022. All rights reserved.