Class Location.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Location.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Location>
- Enclosing interface:
Location
@Stability(Experimental)
public static final class Location.Builder
extends Object
implements software.amazon.jsii.Builder<Location>
A builder for
Location
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacity
(LocationCapacity capacity) Sets the value ofLocation.getCapacity()
Sets the value ofLocation.getRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
region
Sets the value ofLocation.getRegion()
- Parameters:
region
- An AWS Region code. This parameter is required.- Returns:
this
-
capacity
Sets the value ofLocation.getCapacity()
- Parameters:
capacity
- Current resource capacity settings in a specified fleet or location. The location value might refer to a fleet's remote location or its home Region.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<Location>
- Returns:
- a new instance of
Location
- Throws:
NullPointerException
- if any required attribute was not provided
-