Class CfnGameSessionQueueProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnGameSessionQueueProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameSessionQueueProps>
- Enclosing interface:
CfnGameSessionQueueProps
@Stability(Stable)
public static final class CfnGameSessionQueueProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameSessionQueueProps>
A builder for
CfnGameSessionQueueProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customEventData
(String customEventData) Sets the value ofCfnGameSessionQueueProps.getCustomEventData()
destinations
(List<? extends Object> destinations) Sets the value ofCfnGameSessionQueueProps.getDestinations()
destinations
(IResolvable destinations) Sets the value ofCfnGameSessionQueueProps.getDestinations()
filterConfiguration
(IResolvable filterConfiguration) Sets the value ofCfnGameSessionQueueProps.getFilterConfiguration()
filterConfiguration
(CfnGameSessionQueue.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnGameSessionQueueProps.getFilterConfiguration()
Sets the value ofCfnGameSessionQueueProps.getName()
notificationTarget
(String notificationTarget) Sets the value ofCfnGameSessionQueueProps.getNotificationTarget()
playerLatencyPolicies
(List<? extends Object> playerLatencyPolicies) Sets the value ofCfnGameSessionQueueProps.getPlayerLatencyPolicies()
playerLatencyPolicies
(IResolvable playerLatencyPolicies) Sets the value ofCfnGameSessionQueueProps.getPlayerLatencyPolicies()
priorityConfiguration
(IResolvable priorityConfiguration) Sets the value ofCfnGameSessionQueueProps.getPriorityConfiguration()
priorityConfiguration
(CfnGameSessionQueue.PriorityConfigurationProperty priorityConfiguration) Sets the value ofCfnGameSessionQueueProps.getPriorityConfiguration()
Sets the value ofCfnGameSessionQueueProps.getTags()
timeoutInSeconds
(Number timeoutInSeconds) Sets the value ofCfnGameSessionQueueProps.getTimeoutInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnGameSessionQueueProps.getName()
- Parameters:
name
- A descriptive label that is associated with game session queue. This parameter is required. Queue names must be unique within each Region.- Returns:
this
-
customEventData
Sets the value ofCfnGameSessionQueueProps.getCustomEventData()
- Parameters:
customEventData
- Information to be added to all events that are related to this game session queue.- Returns:
this
-
destinations
Sets the value ofCfnGameSessionQueueProps.getDestinations()
- Parameters:
destinations
- A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue. Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.- Returns:
this
-
destinations
@Stability(Stable) public CfnGameSessionQueueProps.Builder destinations(List<? extends Object> destinations) Sets the value ofCfnGameSessionQueueProps.getDestinations()
- Parameters:
destinations
- A list of fleets and/or fleet aliases that can be used to fulfill game session placement requests in the queue. Destinations are identified by either a fleet ARN or a fleet alias ARN, and are listed in order of placement preference.- Returns:
this
-
filterConfiguration
@Stability(Stable) public CfnGameSessionQueueProps.Builder filterConfiguration(IResolvable filterConfiguration) Sets the value ofCfnGameSessionQueueProps.getFilterConfiguration()
- Parameters:
filterConfiguration
- 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
. If this parameter is not set, game sessions can be placed in any queue location.- Returns:
this
-
filterConfiguration
@Stability(Stable) public CfnGameSessionQueueProps.Builder filterConfiguration(CfnGameSessionQueue.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnGameSessionQueueProps.getFilterConfiguration()
- Parameters:
filterConfiguration
- 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
. If this parameter is not set, game sessions can be placed in any queue location.- Returns:
this
-
notificationTarget
@Stability(Stable) public CfnGameSessionQueueProps.Builder notificationTarget(String notificationTarget) Sets the value ofCfnGameSessionQueueProps.getNotificationTarget()
- Parameters:
notificationTarget
- An SNS topic ARN that is set up to receive game session placement notifications. See Setting up notifications for game session placement .- Returns:
this
-
playerLatencyPolicies
@Stability(Stable) public CfnGameSessionQueueProps.Builder playerLatencyPolicies(IResolvable playerLatencyPolicies) Sets the value ofCfnGameSessionQueueProps.getPlayerLatencyPolicies()
- Parameters:
playerLatencyPolicies
- A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. Use multiple policies to gradually relax the cap over time if Amazon GameLift can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value.- Returns:
this
-
playerLatencyPolicies
@Stability(Stable) public CfnGameSessionQueueProps.Builder playerLatencyPolicies(List<? extends Object> playerLatencyPolicies) Sets the value ofCfnGameSessionQueueProps.getPlayerLatencyPolicies()
- Parameters:
playerLatencyPolicies
- A set of policies that enforce a sliding cap on player latency when processing game sessions placement requests. Use multiple policies to gradually relax the cap over time if Amazon GameLift can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value.- Returns:
this
-
priorityConfiguration
@Stability(Stable) public CfnGameSessionQueueProps.Builder priorityConfiguration(IResolvable priorityConfiguration) Sets the value ofCfnGameSessionQueueProps.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
-
priorityConfiguration
@Stability(Stable) public CfnGameSessionQueueProps.Builder priorityConfiguration(CfnGameSessionQueue.PriorityConfigurationProperty priorityConfiguration) Sets the value ofCfnGameSessionQueueProps.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
-
tags
Sets the value ofCfnGameSessionQueueProps.getTags()
- Parameters:
tags
- A list of labels to assign to the new game session queue resource. Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference . Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.- Returns:
this
-
timeoutInSeconds
@Stability(Stable) public CfnGameSessionQueueProps.Builder timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnGameSessionQueueProps.getTimeoutInSeconds()
- Parameters:
timeoutInSeconds
- The maximum time, in seconds, 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<CfnGameSessionQueueProps>
- Returns:
- a new instance of
CfnGameSessionQueueProps
- Throws:
NullPointerException
- if any required attribute was not provided
-