Class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSpotFleet.FleetLaunchTemplateSpecificationProperty>
- Enclosing interface:
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty
@Stability(Stable)
public static final class CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSpotFleet.FleetLaunchTemplateSpecificationProperty>
A builder for
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.launchTemplateId
(String launchTemplateId) launchTemplateName
(String launchTemplateName) Sets the value ofCfnSpotFleet.FleetLaunchTemplateSpecificationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
version
@Stability(Stable) public CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder version(String version) Sets the value ofCfnSpotFleet.FleetLaunchTemplateSpecificationProperty.getVersion()
- Parameters:
version
- The version number of the launch template. This parameter is required. Specifying$Latest
or$Default
for the template version number is not supported. However, you can specifyLatestVersionNumber
orDefaultVersionNumber
using theFn::GetAtt
intrinsic function. For more information, see Fn::GetAtt .- Returns:
this
-
launchTemplateId
@Stability(Stable) public CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder launchTemplateId(String launchTemplateId) - Parameters:
launchTemplateId
- The ID of the launch template. You must specify theLaunchTemplateId
or theLaunchTemplateName
, but not both.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnSpotFleet.FleetLaunchTemplateSpecificationProperty.Builder launchTemplateName(String launchTemplateName) - Parameters:
launchTemplateName
- The name of the launch template. You must specify theLaunchTemplateName
or theLaunchTemplateId
, but not both.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSpotFleet.FleetLaunchTemplateSpecificationProperty>
- Returns:
- a new instance of
CfnSpotFleet.FleetLaunchTemplateSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-