Class CfnGameServerGroup.InstanceDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameServerGroup.InstanceDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameServerGroup.InstanceDefinitionProperty>
- Enclosing interface:
CfnGameServerGroup.InstanceDefinitionProperty
@Stability(Stable)
public static final class CfnGameServerGroup.InstanceDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameServerGroup.InstanceDefinitionProperty>
A builder for
CfnGameServerGroup.InstanceDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceType
(String instanceType) Sets the value ofCfnGameServerGroup.InstanceDefinitionProperty.getInstanceType()
weightedCapacity
(String weightedCapacity) Sets the value ofCfnGameServerGroup.InstanceDefinitionProperty.getWeightedCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceType
@Stability(Stable) public CfnGameServerGroup.InstanceDefinitionProperty.Builder instanceType(String instanceType) Sets the value ofCfnGameServerGroup.InstanceDefinitionProperty.getInstanceType()
- Parameters:
instanceType
- An Amazon EC2 instance type designation. This parameter is required.- Returns:
this
-
weightedCapacity
@Stability(Stable) public CfnGameServerGroup.InstanceDefinitionProperty.Builder weightedCapacity(String weightedCapacity) Sets the value ofCfnGameServerGroup.InstanceDefinitionProperty.getWeightedCapacity()
- Parameters:
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 Amazon 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".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGameServerGroup.InstanceDefinitionProperty>
- Returns:
- a new instance of
CfnGameServerGroup.InstanceDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-