Class CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.LaunchTemplateProperty>
- Enclosing interface:
CfnGameServerGroupPropsMixin.LaunchTemplateProperty
@Stability(Stable)
public static final class CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.LaunchTemplateProperty>
A builder for
CfnGameServerGroupPropsMixin.LaunchTemplateProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.launchTemplateId(String launchTemplateId) launchTemplateName(String launchTemplateName) Sets the value ofCfnGameServerGroupPropsMixin.LaunchTemplateProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateId
@Stability(Stable) public CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder launchTemplateId(String launchTemplateId) - Parameters:
launchTemplateId- A unique identifier for an existing Amazon EC2 launch template.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder launchTemplateName(String launchTemplateName) - Parameters:
launchTemplateName- A readable identifier for an existing Amazon EC2 launch template.- Returns:
this
-
version
@Stability(Stable) public CfnGameServerGroupPropsMixin.LaunchTemplateProperty.Builder version(String version) Sets the value ofCfnGameServerGroupPropsMixin.LaunchTemplateProperty.getVersion()- Parameters:
version- The version of the Amazon EC2 launch template to use. If no version is specified, the default version will be used. With Amazon EC2, you can specify a default version for a launch template. If none is set, the default is the first version created.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGameServerGroupPropsMixin.LaunchTemplateProperty>- Returns:
- a new instance of
CfnGameServerGroupPropsMixin.LaunchTemplateProperty - Throws:
NullPointerException- if any required attribute was not provided
-