Class CfnGameServerGroup.LaunchTemplateProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameServerGroup.LaunchTemplateProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameServerGroup.LaunchTemplateProperty>
- Enclosing interface:
CfnGameServerGroup.LaunchTemplateProperty
@Stability(Stable)
public static final class CfnGameServerGroup.LaunchTemplateProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameServerGroup.LaunchTemplateProperty>
A builder for
CfnGameServerGroup.LaunchTemplateProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.launchTemplateId
(String launchTemplateId) Sets the value ofCfnGameServerGroup.LaunchTemplateProperty.getLaunchTemplateId()
launchTemplateName
(String launchTemplateName) Sets the value ofCfnGameServerGroup.LaunchTemplateProperty.getLaunchTemplateName()
Sets the value ofCfnGameServerGroup.LaunchTemplateProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
launchTemplateId
@Stability(Stable) public CfnGameServerGroup.LaunchTemplateProperty.Builder launchTemplateId(String launchTemplateId) Sets the value ofCfnGameServerGroup.LaunchTemplateProperty.getLaunchTemplateId()
- Parameters:
launchTemplateId
- A unique identifier for an existing Amazon EC2 launch template.- Returns:
this
-
launchTemplateName
@Stability(Stable) public CfnGameServerGroup.LaunchTemplateProperty.Builder launchTemplateName(String launchTemplateName) Sets the value ofCfnGameServerGroup.LaunchTemplateProperty.getLaunchTemplateName()
- Parameters:
launchTemplateName
- A readable identifier for an existing Amazon EC2 launch template.- Returns:
this
-
version
Sets the value ofCfnGameServerGroup.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnGameServerGroup.LaunchTemplateProperty>
- Returns:
- a new instance of
CfnGameServerGroup.LaunchTemplateProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-