public static final class CfnInstance.LaunchTemplateSpecificationProperty.Builder
extends java.lang.Object
CfnInstance.LaunchTemplateSpecificationProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInstance.LaunchTemplateSpecificationProperty |
build()
Builds the configured instance.
|
CfnInstance.LaunchTemplateSpecificationProperty.Builder |
launchTemplateId(java.lang.String launchTemplateId)
Sets the value of
CfnInstance.LaunchTemplateSpecificationProperty.getLaunchTemplateId() |
CfnInstance.LaunchTemplateSpecificationProperty.Builder |
launchTemplateName(java.lang.String launchTemplateName)
Sets the value of
CfnInstance.LaunchTemplateSpecificationProperty.getLaunchTemplateName() |
CfnInstance.LaunchTemplateSpecificationProperty.Builder |
version(java.lang.String version)
Sets the value of
CfnInstance.LaunchTemplateSpecificationProperty.getVersion() |
public CfnInstance.LaunchTemplateSpecificationProperty.Builder version(java.lang.String version)
CfnInstance.LaunchTemplateSpecificationProperty.getVersion()
version
- The version number of the launch template. This parameter is required.
AWS CloudFormation does not support specifying $Latest
, or $Default
for the template version number.this
public CfnInstance.LaunchTemplateSpecificationProperty.Builder launchTemplateId(java.lang.String launchTemplateId)
CfnInstance.LaunchTemplateSpecificationProperty.getLaunchTemplateId()
launchTemplateId
- The ID of the launch template.this
public CfnInstance.LaunchTemplateSpecificationProperty.Builder launchTemplateName(java.lang.String launchTemplateName)
CfnInstance.LaunchTemplateSpecificationProperty.getLaunchTemplateName()
launchTemplateName
- The name of the launch template.this
public CfnInstance.LaunchTemplateSpecificationProperty build()
CfnInstance.LaunchTemplateSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided