Class CfnContainerFleetPropsMixin.TargetConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnContainerFleetPropsMixin.TargetConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.TargetConfigurationProperty>
- Enclosing interface:
CfnContainerFleetPropsMixin.TargetConfigurationProperty
@Stability(Stable)
public static final class CfnContainerFleetPropsMixin.TargetConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainerFleetPropsMixin.TargetConfigurationProperty>
A builder for
CfnContainerFleetPropsMixin.TargetConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetValue(Number targetValue) Sets the value ofCfnContainerFleetPropsMixin.TargetConfigurationProperty.getTargetValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetValue
@Stability(Stable) public CfnContainerFleetPropsMixin.TargetConfigurationProperty.Builder targetValue(Number targetValue) Sets the value ofCfnContainerFleetPropsMixin.TargetConfigurationProperty.getTargetValue()- Parameters:
targetValue- Desired value to use with a target-based scaling policy. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainerFleetPropsMixin.TargetConfigurationProperty>- Returns:
- a new instance of
CfnContainerFleetPropsMixin.TargetConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-