public static interface ModifyFleetRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyFleetRequest.Builder,ModifyFleetRequest>
Modifier and Type | Method and Description |
---|---|
ModifyFleetRequest.Builder |
excessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
ModifyFleetRequest.Builder |
excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is
decreased below the current size of the EC2 Fleet.
|
ModifyFleetRequest.Builder |
fleetId(String fleetId)
The ID of the EC2 Fleet.
|
ModifyFleetRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
ModifyFleetRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
default ModifyFleetRequest.Builder |
targetCapacitySpecification(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification)
The size of the EC2 Fleet.
|
ModifyFleetRequest.Builder |
targetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
|
build
overrideConfiguration
copy
applyMutation, build
ModifyFleetRequest.Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total 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 total target capacity of the EC2 Fleet
is decreased below the current size of the EC2 Fleet.FleetExcessCapacityTerminationPolicy
,
FleetExcessCapacityTerminationPolicy
ModifyFleetRequest.Builder excessCapacityTerminationPolicy(FleetExcessCapacityTerminationPolicy excessCapacityTerminationPolicy)
Indicates whether running instances should be terminated if the total 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 total target capacity of the EC2 Fleet
is decreased below the current size of the EC2 Fleet.FleetExcessCapacityTerminationPolicy
,
FleetExcessCapacityTerminationPolicy
ModifyFleetRequest.Builder fleetId(String fleetId)
The ID of the EC2 Fleet.
fleetId
- The ID of the EC2 Fleet.ModifyFleetRequest.Builder targetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification)
The size of the EC2 Fleet.
targetCapacitySpecification
- The size of the EC2 Fleet.default ModifyFleetRequest.Builder targetCapacitySpecification(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification)
The size of the EC2 Fleet.
This is a convenience that creates an instance of theTargetCapacitySpecificationRequest.Builder
avoiding the need to create one manually via TargetCapacitySpecificationRequest.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to
targetCapacitySpecification(TargetCapacitySpecificationRequest)
.targetCapacitySpecification
- a consumer that will call methods on TargetCapacitySpecificationRequest.Builder
targetCapacitySpecification(TargetCapacitySpecificationRequest)
ModifyFleetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.ModifyFleetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.