Class LocationCapacity.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.LocationCapacity.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocationCapacity>
- Enclosing interface:
LocationCapacity
@Stability(Experimental)
public static final class LocationCapacity.Builder
extends Object
implements software.amazon.jsii.Builder<LocationCapacity>
A builder for
LocationCapacity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.desiredCapacity
(Number desiredCapacity) Sets the value ofLocationCapacity.getDesiredCapacity()
Sets the value ofLocationCapacity.getMaxSize()
Sets the value ofLocationCapacity.getMinSize()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredCapacity
Sets the value ofLocationCapacity.getDesiredCapacity()
- Parameters:
desiredCapacity
- 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.- Returns:
this
-
maxSize
Sets the value ofLocationCapacity.getMaxSize()
- Parameters:
maxSize
- The maximum number of instances that are allowed in the specified fleet location.- Returns:
this
-
minSize
Sets the value ofLocationCapacity.getMinSize()
- Parameters:
minSize
- The minimum number of instances that are allowed in the specified fleet location.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LocationCapacity>
- Returns:
- a new instance of
LocationCapacity
- Throws:
NullPointerException
- if any required attribute was not provided
-