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 are identified by AWS Region codes such asus-west-2. Each location can only be listed once.- Returns:
this
-
priorityOrder
@Stability(Stable) public CfnGameSessionQueue.PriorityConfigurationProperty.Builder priorityOrder(List<String> priorityOrder) Sets the value ofCfnGameSessionQueue.PriorityConfigurationProperty.getPriorityOrder()- Parameters:
priorityOrder- The recommended sequence to use when prioritizing where to place new game sessions. Each type can only be listed once.LATENCY-- FleetIQ prioritizes locations where the average player latency (provided in each game session request) is lowest.COST-- FleetIQ prioritizes destinations with the lowest current hosting costs. Cost is evaluated based on the location, instance type, and fleet type (Spot or On-Demand) for each destination in the queue.DESTINATION-- FleetIQ prioritizes based on the order that destinations are listed in the queue configuration.LOCATION-- FleetIQ 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
-