Class CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty>
- Enclosing interface:
- CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty
@Stability(Stable)
public static final class CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty>
A builder for
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateSpecification(IResolvable launchTemplateSpecification) launchTemplateSpecification(CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty launchTemplateSpecification) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getOverrides()overrides(IResolvable overrides) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getOverrides()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateSpecification
@Stability(Stable) public CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder launchTemplateSpecification(IResolvable launchTemplateSpecification) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getLaunchTemplateSpecification()- Parameters:
launchTemplateSpecification- The launch template to use. You must specify either the launch template ID or launch template name in the request.- Returns:
this
-
launchTemplateSpecification
@Stability(Stable) public CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder launchTemplateSpecification(CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty launchTemplateSpecification) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getLaunchTemplateSpecification()- Parameters:
launchTemplateSpecification- The launch template to use. You must specify either the launch template ID or launch template name in the request.- Returns:
this
-
overrides
@Stability(Stable) public CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder overrides(IResolvable overrides) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getOverrides()- Parameters:
overrides- Any parameters that you specify override the same parameters in the launch template. For fleets of typerequestandmaintain, a maximum of 300 items is allowed across all launch templates.- Returns:
this
-
overrides
@Stability(Stable) public CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.Builder overrides(List<? extends Object> overrides) Sets the value ofCfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty.getOverrides()- Parameters:
overrides- Any parameters that you specify override the same parameters in the launch template. For fleets of typerequestandmaintain, a maximum of 300 items is allowed across all launch templates.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty>- Returns:
- a new instance of
CfnEC2Fleet.FleetLaunchTemplateConfigRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-