Class CfnGameSessionQueue.PriorityConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameSessionQueue.PriorityConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameSessionQueue.PriorityConfigurationProperty>
- Enclosing interface:
CfnGameSessionQueue.PriorityConfigurationProperty
@Stability(Stable)
public static final class CfnGameSessionQueue.PriorityConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameSessionQueue.PriorityConfigurationProperty>
A builder for
CfnGameSessionQueue.PriorityConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.locationOrder(List<String> locationOrder) Sets the value ofCfnGameSessionQueue.PriorityConfigurationProperty.getLocationOrder()priorityOrder(List<String> priorityOrder) Sets the value ofCfnGameSessionQueue.PriorityConfigurationProperty.getPriorityOrder()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
locationOrder
@Stability(Stable) public CfnGameSessionQueue.PriorityConfigurationProperty.Builder locationOrder(List<String> locationOrder) Sets the value ofCfnGameSessionQueue.PriorityConfigurationProperty.getLocationOrder()- Parameters:
locationOrder- The prioritization order to use for fleet locations, when thePriorityOrderproperty includesLOCATION. Locations can include AWS Region codes (such asus-west-2), local zones, and custom locations (for Anywhere fleets). Each location must be listed only once. For details, see Amazon GameLift Servers service locations.- Returns:
this
-
priorityOrder
@Stability(Stable) public CfnGameSessionQueue.PriorityConfigurationProperty.Builder priorityOrder(List<String> priorityOrder) Sets the value ofCfnGameSessionQueue.PriorityConfigurationProperty.getPriorityOrder()- Parameters:
priorityOrder- A custom sequence to use when prioritizing where to place new game sessions. Each priority type is listed once.LATENCY-- Amazon GameLift Servers prioritizes locations where the average player latency is lowest. Player latency data is provided in each game session placement request.COST-- Amazon GameLift Servers prioritizes queue destinations with the lowest current hosting costs. Cost is evaluated based on the destination's location, instance type, and fleet type (Spot or On-Demand).DESTINATION-- Amazon GameLift Servers prioritizes based on the list order of destinations in the queue configuration.LOCATION-- Amazon GameLift Servers prioritizes based on the provided order of locations, as defined inLocationOrder.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGameSessionQueue.PriorityConfigurationProperty>- Returns:
- a new instance of
CfnGameSessionQueue.PriorityConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-