Class CfnSpotFleet.LaunchTemplateConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.LaunchTemplateConfigProperty.Builder
- All Implemented Interfaces:
 software.amazon.jsii.Builder<CfnSpotFleet.LaunchTemplateConfigProperty>
- Enclosing interface:
 - CfnSpotFleet.LaunchTemplateConfigProperty
 
@Stability(Stable)
public static final class CfnSpotFleet.LaunchTemplateConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.LaunchTemplateConfigProperty>
A builder for 
CfnSpotFleet.LaunchTemplateConfigProperty- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateSpecification(IResolvable launchTemplateSpecification) launchTemplateSpecification(CfnSpotFleet.FleetLaunchTemplateSpecificationProperty launchTemplateSpecification) Sets the value ofCfnSpotFleet.LaunchTemplateConfigProperty.getOverrides()overrides(IResolvable overrides) Sets the value ofCfnSpotFleet.LaunchTemplateConfigProperty.getOverrides() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
launchTemplateSpecification
@Stability(Stable) public CfnSpotFleet.LaunchTemplateConfigProperty.Builder launchTemplateSpecification(IResolvable launchTemplateSpecification) - 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:
 this
 - 
launchTemplateSpecification
@Stability(Stable) public CfnSpotFleet.LaunchTemplateConfigProperty.Builder launchTemplateSpecification(CfnSpotFleet.FleetLaunchTemplateSpecificationProperty launchTemplateSpecification) - 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:
 this
 - 
overrides
@Stability(Stable) public CfnSpotFleet.LaunchTemplateConfigProperty.Builder overrides(IResolvable overrides) Sets the value ofCfnSpotFleet.LaunchTemplateConfigProperty.getOverrides()- Parameters:
 overrides- Any parameters that you specify override the same parameters in the launch template.- Returns:
 this
 - 
overrides
@Stability(Stable) public CfnSpotFleet.LaunchTemplateConfigProperty.Builder overrides(List<? extends Object> overrides) Sets the value ofCfnSpotFleet.LaunchTemplateConfigProperty.getOverrides()- Parameters:
 overrides- Any parameters that you specify override the same parameters in the launch template.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.LaunchTemplateConfigProperty>- Returns:
 - a new instance of 
CfnSpotFleet.LaunchTemplateConfigProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -