Interface LaunchTemplateConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LaunchTemplateConfig.Builder,
,LaunchTemplateConfig> SdkBuilder<LaunchTemplateConfig.Builder,
,LaunchTemplateConfig> SdkPojo
- Enclosing class:
LaunchTemplateConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault LaunchTemplateConfig.Builder
launchTemplateSpecification
(Consumer<FleetLaunchTemplateSpecification.Builder> launchTemplateSpecification) The launch template to use.launchTemplateSpecification
(FleetLaunchTemplateSpecification launchTemplateSpecification) The launch template to use.overrides
(Collection<LaunchTemplateOverrides> overrides) Any parameters that you specify override the same parameters in the launch template.overrides
(Consumer<LaunchTemplateOverrides.Builder>... overrides) Any parameters that you specify override the same parameters in the launch template.overrides
(LaunchTemplateOverrides... overrides) Any parameters that you specify override the same parameters in the launch template.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
launchTemplateSpecification
LaunchTemplateConfig.Builder launchTemplateSpecification(FleetLaunchTemplateSpecification launchTemplateSpecification) The launch template to use. Make sure that the launch template does not contain the
NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet.- Parameters:
launchTemplateSpecification
- The launch template to use. Make sure that the launch template does not contain theNetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTemplateSpecification
default LaunchTemplateConfig.Builder launchTemplateSpecification(Consumer<FleetLaunchTemplateSpecification.Builder> launchTemplateSpecification) The launch template to use. Make sure that the launch template does not contain the
This is a convenience method that creates an instance of theNetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet.FleetLaunchTemplateSpecification.Builder
avoiding the need to create one manually viaFleetLaunchTemplateSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolaunchTemplateSpecification(FleetLaunchTemplateSpecification)
.- Parameters:
launchTemplateSpecification
- a consumer that will call methods onFleetLaunchTemplateSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrides
Any parameters that you specify override the same parameters in the launch template.
- Parameters:
overrides
- Any parameters that you specify override the same parameters in the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrides
Any parameters that you specify override the same parameters in the launch template.
- Parameters:
overrides
- Any parameters that you specify override the same parameters in the launch template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrides
Any parameters that you specify override the same parameters in the launch template.
This is a convenience method that creates an instance of theLaunchTemplateOverrides.Builder
avoiding the need to create one manually viaLaunchTemplateOverrides.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooverrides(List<LaunchTemplateOverrides>)
.- Parameters:
overrides
- a consumer that will call methods onLaunchTemplateOverrides.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-