Interface ModifySpotFleetRequestRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifySpotFleetRequestRequest.Builder,
,ModifySpotFleetRequestRequest> Ec2Request.Builder
,SdkBuilder<ModifySpotFleetRequestRequest.Builder,
,ModifySpotFleetRequestRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifySpotFleetRequestRequest
-
Method Summary
Modifier and TypeMethodDescriptionReserved.excessCapacityTerminationPolicy
(String excessCapacityTerminationPolicy) Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.excessCapacityTerminationPolicy
(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.launchTemplateConfigs
(Collection<LaunchTemplateConfig> launchTemplateConfigs) The launch template and overrides.launchTemplateConfigs
(Consumer<LaunchTemplateConfig.Builder>... launchTemplateConfigs) The launch template and overrides.launchTemplateConfigs
(LaunchTemplateConfig... launchTemplateConfigs) The launch template and overrides.onDemandTargetCapacity
(Integer onDemandTargetCapacity) The number of On-Demand Instances in the fleet.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.spotFleetRequestId
(String spotFleetRequestId) The ID of the Spot Fleet request.targetCapacity
(Integer targetCapacity) The size of the 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
-
excessCapacityTerminationPolicy
ModifySpotFleetRequestRequest.Builder excessCapacityTerminationPolicy(String excessCapacityTerminationPolicy) Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot 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
ModifySpotFleetRequestRequest.Builder excessCapacityTerminationPolicy(ExcessCapacityTerminationPolicy excessCapacityTerminationPolicy) Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.
Supported only for fleets of type
maintain
.- Parameters:
excessCapacityTerminationPolicy
- Indicates whether running instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot 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
ModifySpotFleetRequestRequest.Builder launchTemplateConfigs(Collection<LaunchTemplateConfig> launchTemplateConfigs) The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs
) in your Spot Fleet request. If you specifiedLaunchSpecifications
in your Spot Fleet request, then omit this parameter.- Parameters:
launchTemplateConfigs
- The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specifiedLaunchSpecifications
in your Spot Fleet request, then omit this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifySpotFleetRequestRequest.Builder launchTemplateConfigs(LaunchTemplateConfig... launchTemplateConfigs) The launch template and overrides. You can only use this parameter if you specified a launch template (
LaunchTemplateConfigs
) in your Spot Fleet request. If you specifiedLaunchSpecifications
in your Spot Fleet request, then omit this parameter.- Parameters:
launchTemplateConfigs
- The launch template and overrides. You can only use this parameter if you specified a launch template (LaunchTemplateConfigs
) in your Spot Fleet request. If you specifiedLaunchSpecifications
in your Spot Fleet request, then omit this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateConfigs
ModifySpotFleetRequestRequest.Builder launchTemplateConfigs(Consumer<LaunchTemplateConfig.Builder>... launchTemplateConfigs) The launch template and overrides. You can only use this parameter if you specified a launch template (
This is a convenience method that creates an instance of theLaunchTemplateConfigs
) in your Spot Fleet request. If you specifiedLaunchSpecifications
in your Spot Fleet request, then omit this parameter.LaunchTemplateConfig.Builder
avoiding the need to create one manually viaLaunchTemplateConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateConfigs(List<LaunchTemplateConfig>)
.- Parameters:
launchTemplateConfigs
- a consumer that will call methods onLaunchTemplateConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spotFleetRequestId
The ID of the Spot Fleet request.
- Parameters:
spotFleetRequestId
- The ID of the Spot Fleet request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCapacity
The size of the fleet.
- Parameters:
targetCapacity
- The size of the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandTargetCapacity
The number of On-Demand Instances in the fleet.
- Parameters:
onDemandTargetCapacity
- The number of On-Demand Instances in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
Reserved.
- Parameters:
context
- Reserved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifySpotFleetRequestRequest.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
ModifySpotFleetRequestRequest.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.
-