@Stability(value=Stable) public static final class CfnGameServerGroup.InstanceDefinitionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnGameServerGroup.InstanceDefinitionProperty>
CfnGameServerGroup.InstanceDefinitionProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnGameServerGroup.InstanceDefinitionProperty |
build()
Builds the configured instance.
|
CfnGameServerGroup.InstanceDefinitionProperty.Builder |
instanceType(String instanceType)
Sets the value of
CfnGameServerGroup.InstanceDefinitionProperty.getInstanceType() |
CfnGameServerGroup.InstanceDefinitionProperty.Builder |
weightedCapacity(String weightedCapacity)
Sets the value of
CfnGameServerGroup.InstanceDefinitionProperty.getWeightedCapacity() |
@Stability(value=Stable) public CfnGameServerGroup.InstanceDefinitionProperty.Builder instanceType(String instanceType)
CfnGameServerGroup.InstanceDefinitionProperty.getInstanceType()instanceType - An Amazon EC2 instance type designation. This parameter is required.this@Stability(value=Stable) public CfnGameServerGroup.InstanceDefinitionProperty.Builder weightedCapacity(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@Stability(value=Stable) public CfnGameServerGroup.InstanceDefinitionProperty build()
build in interface software.amazon.jsii.Builder<CfnGameServerGroup.InstanceDefinitionProperty>CfnGameServerGroup.InstanceDefinitionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.