Interface ModifySpotFleetRequestRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>
,Ec2Request.Builder
,SdkBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- ModifySpotFleetRequestRequest
public static interface ModifySpotFleetRequestRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifySpotFleetRequestRequest.Builder,ModifySpotFleetRequestRequest>
-
-
Method Summary
-
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 Detail
-
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
,ExcessCapacityTerminationPolicy
-
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:
ExcessCapacityTerminationPolicy
,ExcessCapacityTerminationPolicy
-
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 to#launchTemplateConfigs(List
.) - 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:
#launchTemplateConfigs(java.util.Collection
)
-
spotFleetRequestId
ModifySpotFleetRequestRequest.Builder spotFleetRequestId(String 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
ModifySpotFleetRequestRequest.Builder targetCapacity(Integer 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
ModifySpotFleetRequestRequest.Builder onDemandTargetCapacity(Integer 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
ModifySpotFleetRequestRequest.Builder context(String 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)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ModifySpotFleetRequestRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-