Interface LaunchTemplateConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<LaunchTemplateConfig.Builder,,LaunchTemplateConfig> SdkBuilder<LaunchTemplateConfig.Builder,,LaunchTemplateConfig> SdkPojo
- Enclosing class:
LaunchTemplateConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault LaunchTemplateConfig.BuilderlaunchTemplateSpecification(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
NetworkInterfaceIdparameter 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 theNetworkInterfaceIdparameter 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 theNetworkInterfaceIdparameter because you can't specify a network interface ID in a Spot Fleet.FleetLaunchTemplateSpecification.Builderavoiding the need to create one manually viaFleetLaunchTemplateSpecification.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaLaunchTemplateOverrides.builder().When the
Consumercompletes,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:
-