public static final class CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty |
build()
Builds the configured instance.
|
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder |
launchTemplateId(java.lang.String launchTemplateId)
|
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder |
launchTemplateName(java.lang.String launchTemplateName)
|
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder |
version(java.lang.String version)
Sets the value of
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.getVersion() |
public CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder version(java.lang.String version)
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.getVersion()
version
- The launch template version number, `$Latest` , or `$Default` . You must specify a value, otherwise the request fails. This parameter is required.
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.
this
public CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder launchTemplateId(java.lang.String launchTemplateId)
launchTemplateId
- The ID of the launch template.
You must specify the LaunchTemplateId
or the LaunchTemplateName
, but not both.this
public CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.Builder launchTemplateName(java.lang.String launchTemplateName)
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty.getLaunchTemplateName()
launchTemplateName
- The name of the launch template.
You must specify the LaunchTemplateName
or the LaunchTemplateId
, but not both.this
public CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty build()
CfnEC2Fleet.FleetLaunchTemplateSpecificationRequestProperty
java.lang.NullPointerException
- if any required attribute was not provided