Class CfnGameSessionQueueMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnGameSessionQueueMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGameSessionQueueMixinProps>
- Enclosing interface:
CfnGameSessionQueueMixinProps
@Stability(Stable)
public static final class CfnGameSessionQueueMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGameSessionQueueMixinProps>
A builder for
CfnGameSessionQueueMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customEventData(String customEventData) Sets the value ofCfnGameSessionQueueMixinProps.getCustomEventData()destinations(List<? extends Object> destinations) Sets the value ofCfnGameSessionQueueMixinProps.getDestinations()destinations(IResolvable destinations) Sets the value ofCfnGameSessionQueueMixinProps.getDestinations()filterConfiguration(CfnGameSessionQueuePropsMixin.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.getFilterConfiguration()filterConfiguration(IResolvable filterConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.getFilterConfiguration()Sets the value ofCfnGameSessionQueueMixinProps.getName()notificationTarget(String notificationTarget) Sets the value ofCfnGameSessionQueueMixinProps.getNotificationTarget()playerLatencyPolicies(List<? extends Object> playerLatencyPolicies) Sets the value ofCfnGameSessionQueueMixinProps.getPlayerLatencyPolicies()playerLatencyPolicies(IResolvable playerLatencyPolicies) Sets the value ofCfnGameSessionQueueMixinProps.getPlayerLatencyPolicies()priorityConfiguration(CfnGameSessionQueuePropsMixin.PriorityConfigurationProperty priorityConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.getPriorityConfiguration()priorityConfiguration(IResolvable priorityConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.getPriorityConfiguration()Sets the value ofCfnGameSessionQueueMixinProps.getTags()timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnGameSessionQueueMixinProps.getTimeoutInSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customEventData
@Stability(Stable) public CfnGameSessionQueueMixinProps.Builder customEventData(String customEventData) Sets the value ofCfnGameSessionQueueMixinProps.getCustomEventData()- Parameters:
customEventData- Information to be added to all events that are related to this game session queue.- Returns:
this
-
destinations
@Stability(Stable) public CfnGameSessionQueueMixinProps.Builder destinations(IResolvable destinations) Sets the value ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder destinations(List<? extends Object> destinations) Sets the value ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder filterConfiguration(IResolvable filterConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder filterConfiguration(CfnGameSessionQueuePropsMixin.FilterConfigurationProperty filterConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.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
-
name
Sets the value ofCfnGameSessionQueueMixinProps.getName()- Parameters:
name- A descriptive label that is associated with game session queue. Queue names must be unique within each Region.- Returns:
this
-
notificationTarget
@Stability(Stable) public CfnGameSessionQueueMixinProps.Builder notificationTarget(String notificationTarget) Sets the value ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder playerLatencyPolicies(IResolvable playerLatencyPolicies) Sets the value ofCfnGameSessionQueueMixinProps.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 Servers can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value.- Returns:
this
-
playerLatencyPolicies
@Stability(Stable) public CfnGameSessionQueueMixinProps.Builder playerLatencyPolicies(List<? extends Object> playerLatencyPolicies) Sets the value ofCfnGameSessionQueueMixinProps.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 Servers can't make a placement. Policies are evaluated in order starting with the lowest maximum latency value.- Returns:
this
-
priorityConfiguration
@Stability(Stable) public CfnGameSessionQueueMixinProps.Builder priorityConfiguration(IResolvable priorityConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder priorityConfiguration(CfnGameSessionQueuePropsMixin.PriorityConfigurationProperty priorityConfiguration) Sets the value ofCfnGameSessionQueueMixinProps.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 ofCfnGameSessionQueueMixinProps.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 CfnGameSessionQueueMixinProps.Builder timeoutInSeconds(Number timeoutInSeconds) Sets the value ofCfnGameSessionQueueMixinProps.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_OUTstatus. If you don't specify a request timeout, the queue uses a default value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGameSessionQueueMixinProps>- Returns:
- a new instance of
CfnGameSessionQueueMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-