Interface ModifyFleetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyFleetRequest.Builder,
,ModifyFleetRequest> Ec2Request.Builder
,SdkBuilder<ModifyFleetRequest.Builder,
,ModifyFleetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyFleetRequest
-
Method Summary
Modifier and TypeMethodDescriptionReserved.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.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
(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.The ID of the EC2 Fleet.launchTemplateConfigs
(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs) The launch template and overrides.launchTemplateConfigs
(Consumer<FleetLaunchTemplateConfigRequest.Builder>... launchTemplateConfigs) The launch template and overrides.launchTemplateConfigs
(FleetLaunchTemplateConfigRequest... launchTemplateConfigs) The launch template and overrides.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default ModifyFleetRequest.Builder
targetCapacitySpecification
(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification) The size of the EC2 Fleet.targetCapacitySpecification
(TargetCapacitySpecificationRequest targetCapacitySpecification) The size of the EC2 Fleet.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
Supported only for fleets of type
maintain
.- Parameters:
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.Supported only for fleets of type
maintain
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excessCapacityTerminationPolicy
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.
Supported only for fleets of type
maintain
.- Parameters:
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.Supported only for fleets of type
maintain
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(Collection<FleetLaunchTemplateConfigRequest> launchTemplateConfigs) The launch template and overrides.
- Parameters:
launchTemplateConfigs
- The launch template and overrides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(FleetLaunchTemplateConfigRequest... launchTemplateConfigs) The launch template and overrides.
- Parameters:
launchTemplateConfigs
- The launch template and overrides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifyFleetRequest.Builder launchTemplateConfigs(Consumer<FleetLaunchTemplateConfigRequest.Builder>... launchTemplateConfigs) The launch template and overrides.
This is a convenience method that creates an instance of theFleetLaunchTemplateConfigRequest.Builder
avoiding the need to create one manually viaFleetLaunchTemplateConfigRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateConfigs(List<FleetLaunchTemplateConfigRequest>)
.- Parameters:
launchTemplateConfigs
- a consumer that will call methods onFleetLaunchTemplateConfigRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fleetId
The ID of the EC2 Fleet.
- Parameters:
fleetId
- The ID of the EC2 Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCapacitySpecification
ModifyFleetRequest.Builder targetCapacitySpecification(TargetCapacitySpecificationRequest targetCapacitySpecification) The size of the EC2 Fleet.
- Parameters:
targetCapacitySpecification
- The size of the EC2 Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCapacitySpecification
default ModifyFleetRequest.Builder targetCapacitySpecification(Consumer<TargetCapacitySpecificationRequest.Builder> targetCapacitySpecification) The size of the EC2 Fleet.
This is a convenience method that creates an instance of theTargetCapacitySpecificationRequest.Builder
avoiding the need to create one manually viaTargetCapacitySpecificationRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetCapacitySpecification(TargetCapacitySpecificationRequest)
.- Parameters:
targetCapacitySpecification
- a consumer that will call methods onTargetCapacitySpecificationRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
context
Reserved.
- Parameters:
context
- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyFleetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifyFleetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-