Class GameSessionQueueProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.GameSessionQueueProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GameSessionQueueProps>
- Enclosing interface:
GameSessionQueueProps
@Stability(Experimental)
public static final class GameSessionQueueProps.Builder
extends Object
implements software.amazon.jsii.Builder<GameSessionQueueProps>
A builder for
GameSessionQueueProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedLocations
(List<String> allowedLocations) Sets the value ofGameSessionQueueProps.getAllowedLocations()
build()
Builds the configured instance.customEventData
(String customEventData) Sets the value ofGameSessionQueueProps.getCustomEventData()
destinations
(List<? extends IGameSessionQueueDestination> destinations) Sets the value ofGameSessionQueueProps.getDestinations()
gameSessionQueueName
(String gameSessionQueueName) Sets the value ofGameSessionQueueProps.getGameSessionQueueName()
notificationTarget
(ITopic notificationTarget) Sets the value ofGameSessionQueueProps.getNotificationTarget()
playerLatencyPolicies
(List<? extends PlayerLatencyPolicy> playerLatencyPolicies) Sets the value ofGameSessionQueueProps.getPlayerLatencyPolicies()
priorityConfiguration
(PriorityConfiguration priorityConfiguration) Sets the value ofGameSessionQueueProps.getPriorityConfiguration()
Sets the value ofGameSessionQueueProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
@Stability(Experimental) public GameSessionQueueProps.Builder destinations(List<? extends IGameSessionQueueDestination> destinations) Sets the value ofGameSessionQueueProps.getDestinations()
- Parameters:
destinations
- A list of fleets and/or fleet alias that can be used to fulfill game session placement requests in the queue. This parameter is required. Destinations are listed in order of placement preference.- Returns:
this
-
gameSessionQueueName
@Stability(Experimental) public GameSessionQueueProps.Builder gameSessionQueueName(String gameSessionQueueName) Sets the value ofGameSessionQueueProps.getGameSessionQueueName()
- Parameters:
gameSessionQueueName
- Name of this gameSessionQueue. This parameter is required.- Returns:
this
-
allowedLocations
@Stability(Experimental) public GameSessionQueueProps.Builder allowedLocations(List<String> allowedLocations) Sets the value ofGameSessionQueueProps.getAllowedLocations()
- Parameters:
allowedLocations
- A list of locations where a queue is allowed to place new game sessions. Locations are specified in the form of AWS Region codes, such asus-west-2
.For queues that have multi-location fleets, you can use a filter configuration allow placement with some, but not all of these locations.
- Returns:
this
-
customEventData
@Stability(Experimental) public GameSessionQueueProps.Builder customEventData(String customEventData) Sets the value ofGameSessionQueueProps.getCustomEventData()
- Parameters:
customEventData
- Information to be added to all events that are related to this game session queue.- Returns:
this
-
notificationTarget
@Stability(Experimental) public GameSessionQueueProps.Builder notificationTarget(ITopic notificationTarget) Sets the value ofGameSessionQueueProps.getNotificationTarget()
- Parameters:
notificationTarget
- An SNS topic is set up to receive game session placement notifications.- Returns:
this
-
playerLatencyPolicies
@Stability(Experimental) public GameSessionQueueProps.Builder playerLatencyPolicies(List<? extends PlayerLatencyPolicy> playerLatencyPolicies) Sets the value ofGameSessionQueueProps.getPlayerLatencyPolicies()
- Parameters:
playerLatencyPolicies
- A set of policies that act as a sliding cap on player latency. FleetIQ works to deliver low latency for most players in a game session. These policies ensure that no individual player can be placed into a game with unreasonably high latency. Use multiple policies to gradually relax latency requirements a step at a time. Multiple policies are applied based on their maximum allowed latency, starting with the lowest value.- Returns:
this
-
priorityConfiguration
@Stability(Experimental) public GameSessionQueueProps.Builder priorityConfiguration(PriorityConfiguration priorityConfiguration) Sets the value ofGameSessionQueueProps.getPriorityConfiguration()
- Parameters:
priorityConfiguration
- Custom settings to use when prioritizing destinations and locations for game session placements. This configuration replaces the FleetIQ default prioritization process.Priority types that are not explicitly named will be automatically applied at the end of the prioritization process.
- Returns:
this
-
timeout
Sets the value ofGameSessionQueueProps.getTimeout()
- Parameters:
timeout
- The maximum time, that a new game session placement request remains in the queue. When a request exceeds this time, the game session placement changes to aTIMED_OUT
status.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<GameSessionQueueProps>
- Returns:
- a new instance of
GameSessionQueueProps
- Throws:
NullPointerException
- if any required attribute was not provided
-