public static final class CfnGameServerGroup.InstanceDefinitionProperty.Builder
extends java.lang.Object
CfnGameServerGroup.InstanceDefinitionProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnGameServerGroup.InstanceDefinitionProperty |
build()
Builds the configured instance.
|
CfnGameServerGroup.InstanceDefinitionProperty.Builder |
instanceType(java.lang.String instanceType)
Sets the value of
CfnGameServerGroup.InstanceDefinitionProperty.getInstanceType() |
CfnGameServerGroup.InstanceDefinitionProperty.Builder |
weightedCapacity(java.lang.String weightedCapacity)
Sets the value of
CfnGameServerGroup.InstanceDefinitionProperty.getWeightedCapacity() |
public CfnGameServerGroup.InstanceDefinitionProperty.Builder instanceType(java.lang.String instanceType)
CfnGameServerGroup.InstanceDefinitionProperty.getInstanceType()
instanceType
- An Amazon EC2 instance type designation. This parameter is required.this
public CfnGameServerGroup.InstanceDefinitionProperty.Builder weightedCapacity(java.lang.String weightedCapacity)
CfnGameServerGroup.InstanceDefinitionProperty.getWeightedCapacity()
weightedCapacity
- Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.
Instance weights are used by GameLift FleetIQ to calculate the instance type's cost per unit hour and better identify the most cost-effective options. For detailed information on weighting instance capacity, see Instance Weighting in the Amazon Elastic Compute Cloud Auto Scaling User Guide . Default value is "1".this
public CfnGameServerGroup.InstanceDefinitionProperty build()
CfnGameServerGroup.InstanceDefinitionProperty
java.lang.NullPointerException
- if any required attribute was not provided