Class CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty>
- Enclosing interface:
CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty
@Stability(Stable)
public static final class CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateId(String launchTemplateId) launchTemplateId(ILaunchTemplateRef launchTemplateId) launchTemplateName(String launchTemplateName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateId
@Stability(Stable) public CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder launchTemplateId(String launchTemplateId) Sets the value ofCfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIdor theLaunchTemplateName, but not both.- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder launchTemplateId(ILaunchTemplateRef launchTemplateId) Sets the value ofCfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.getLaunchTemplateId()- Parameters:
launchTemplateId- The ID of the launch template. You must specify theLaunchTemplateIdor theLaunchTemplateName, but not both.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.getLaunchTemplateName()- Parameters:
launchTemplateName- The name of the launch template. You must specify theLaunchTemplateNameor theLaunchTemplateId, but not both.- Returns:
this
-
version
@Stability(Stable) public CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty.Builder version(String version) - Parameters:
version- The version number of the launch template. Specifying$Latestor$Defaultfor the template version number is not supported. However, you can specifyLatestVersionNumberorDefaultVersionNumberusing theFn::GetAttintrinsic function. For more information, see Fn::GetAtt .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty>- Returns:
- a new instance of
CfnSpotFleetPropsMixin.FleetLaunchTemplateSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-