Class CfnFleetPropsMixin.LocationCapacityProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnFleetPropsMixin.LocationCapacityProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleetPropsMixin.LocationCapacityProperty>
- Enclosing interface:
CfnFleetPropsMixin.LocationCapacityProperty
@Stability(Stable)
public static final class CfnFleetPropsMixin.LocationCapacityProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleetPropsMixin.LocationCapacityProperty>
A builder for
CfnFleetPropsMixin.LocationCapacityProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredEc2Instances(Number desiredEc2Instances) Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getDesiredEc2Instances()managedCapacityConfiguration(CfnFleetPropsMixin.ManagedCapacityConfigurationProperty managedCapacityConfiguration) managedCapacityConfiguration(IResolvable managedCapacityConfiguration) Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getMaxSize()Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredEc2Instances
@Stability(Stable) public CfnFleetPropsMixin.LocationCapacityProperty.Builder desiredEc2Instances(Number desiredEc2Instances) Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getDesiredEc2Instances()- Parameters:
desiredEc2Instances- The number of Amazon EC2 instances you want to maintain in the specified fleet location. This value must fall between the minimum and maximum size limits. Changes in desired instance value can take up to 1 minute to be reflected when viewing the fleet's capacity settings.- Returns:
this
-
managedCapacityConfiguration
@Stability(Stable) public CfnFleetPropsMixin.LocationCapacityProperty.Builder managedCapacityConfiguration(IResolvable managedCapacityConfiguration) - Parameters:
managedCapacityConfiguration- Configuration options for Amazon GameLift Servers-managed capacity behavior.- Returns:
this
-
managedCapacityConfiguration
@Stability(Stable) public CfnFleetPropsMixin.LocationCapacityProperty.Builder managedCapacityConfiguration(CfnFleetPropsMixin.ManagedCapacityConfigurationProperty managedCapacityConfiguration) - Parameters:
managedCapacityConfiguration- Configuration options for Amazon GameLift Servers-managed capacity behavior.- Returns:
this
-
maxSize
@Stability(Stable) public CfnFleetPropsMixin.LocationCapacityProperty.Builder maxSize(Number maxSize) Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getMaxSize()- Parameters:
maxSize- The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 1.- Returns:
this
-
minSize
@Stability(Stable) public CfnFleetPropsMixin.LocationCapacityProperty.Builder minSize(Number minSize) Sets the value ofCfnFleetPropsMixin.LocationCapacityProperty.getMinSize()- Parameters:
minSize- The minimum number of instances that are allowed in the specified fleet location. If this parameter is not set, the default is 0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleetPropsMixin.LocationCapacityProperty>- Returns:
- a new instance of
CfnFleetPropsMixin.LocationCapacityProperty - Throws:
NullPointerException- if any required attribute was not provided
-