Class CfnFleet.TargetConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnFleet.TargetConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.TargetConfigurationProperty>
- Enclosing interface:
CfnFleet.TargetConfigurationProperty
@Stability(Stable)
public static final class CfnFleet.TargetConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.TargetConfigurationProperty>
A builder for
CfnFleet.TargetConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetValue
(Number targetValue) Sets the value ofCfnFleet.TargetConfigurationProperty.getTargetValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetValue
@Stability(Stable) public CfnFleet.TargetConfigurationProperty.Builder targetValue(Number targetValue) Sets the value ofCfnFleet.TargetConfigurationProperty.getTargetValue()
- Parameters:
targetValue
- Desired value to use with a target-based scaling policy. This parameter is required. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFleet.TargetConfigurationProperty>
- Returns:
- a new instance of
CfnFleet.TargetConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-