Class CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty>
- Enclosing interface:
CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty
@Stability(Stable)
public static final class CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateId(String launchTemplateId) launchTemplateName(String launchTemplateName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateId
@Stability(Stable) public CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder launchTemplateId(String launchTemplateId) Sets the value ofCfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIdor theLaunchTemplateName, but not both.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.getLaunchTemplateName()- Parameters:
launchTemplateName- The name of the launch template. You must specify theLaunchTemplateNameor theLaunchTemplateId, but not both.- Returns:
this
-
version
@Stability(Stable) public CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.Builder version(String version) Sets the value ofCfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty.getVersion()- Parameters:
version- The launch template version number,$Latest, or$Default. You must specify a value, otherwise the request fails. If the value is$Latest, Amazon EC2 uses the latest version of the launch template.If the value is
$Default, Amazon EC2 uses the default version of the launch template.- Returns:
this
-
build
@Stability(Stable) public CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty>- Returns:
- a new instance of
CfnEC2FleetPropsMixin.FleetLaunchTemplateSpecificationRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-