Class CfnMatchmakingConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnMatchmakingConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMatchmakingConfigurationMixinProps>
- Enclosing interface:
CfnMatchmakingConfigurationMixinProps
@Stability(Stable)
public static final class CfnMatchmakingConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMatchmakingConfigurationMixinProps>
A builder for
CfnMatchmakingConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptanceRequired(Boolean acceptanceRequired) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceRequired()acceptanceRequired(IResolvable acceptanceRequired) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceRequired()acceptanceTimeoutSeconds(Number acceptanceTimeoutSeconds) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceTimeoutSeconds()additionalPlayerCount(Number additionalPlayerCount) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAdditionalPlayerCount()backfillMode(String backfillMode) Sets the value ofCfnMatchmakingConfigurationMixinProps.getBackfillMode()build()Builds the configured instance.creationTime(String creationTime) Sets the value ofCfnMatchmakingConfigurationMixinProps.getCreationTime()customEventData(String customEventData) Sets the value ofCfnMatchmakingConfigurationMixinProps.getCustomEventData()description(String description) Sets the value ofCfnMatchmakingConfigurationMixinProps.getDescription()flexMatchMode(String flexMatchMode) Sets the value ofCfnMatchmakingConfigurationMixinProps.getFlexMatchMode()gameProperties(List<? extends Object> gameProperties) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameProperties()gameProperties(IResolvable gameProperties) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameProperties()gameSessionData(String gameSessionData) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameSessionData()gameSessionQueueArns(List<String> gameSessionQueueArns) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameSessionQueueArns()Sets the value ofCfnMatchmakingConfigurationMixinProps.getName()notificationTarget(String notificationTarget) Sets the value ofCfnMatchmakingConfigurationMixinProps.getNotificationTarget()requestTimeoutSeconds(Number requestTimeoutSeconds) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRequestTimeoutSeconds()ruleSetArn(String ruleSetArn) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRuleSetArn()ruleSetName(String ruleSetName) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRuleSetName()Sets the value ofCfnMatchmakingConfigurationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acceptanceRequired
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder acceptanceRequired(Boolean acceptanceRequired) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceRequired()- Parameters:
acceptanceRequired- A flag that determines whether a match that was created with this configuration must be accepted by the matched players. To require acceptance, set toTRUE. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCEto indicate when a completed potential match is waiting for player acceptance.- Returns:
this
-
acceptanceRequired
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder acceptanceRequired(IResolvable acceptanceRequired) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceRequired()- Parameters:
acceptanceRequired- A flag that determines whether a match that was created with this configuration must be accepted by the matched players. To require acceptance, set toTRUE. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCEto indicate when a completed potential match is waiting for player acceptance.- Returns:
this
-
acceptanceTimeoutSeconds
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder acceptanceTimeoutSeconds(Number acceptanceTimeoutSeconds) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAcceptanceTimeoutSeconds()- Parameters:
acceptanceTimeoutSeconds- The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.- Returns:
this
-
additionalPlayerCount
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder additionalPlayerCount(Number additionalPlayerCount) Sets the value ofCfnMatchmakingConfigurationMixinProps.getAdditionalPlayerCount()- Parameters:
additionalPlayerCount- The number of player slots in a match to keep open for future players. For example, if the configuration's rule set specifies a match for a single 12-person team, and the additional player count is set to 2, only 10 players are selected for the match. This parameter is not used ifFlexMatchModeis set toSTANDALONE.- Returns:
this
-
backfillMode
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder backfillMode(String backfillMode) Sets the value ofCfnMatchmakingConfigurationMixinProps.getBackfillMode()- Parameters:
backfillMode- The method used to backfill game sessions that are created with this matchmaking configuration. SpecifyMANUALwhen your game manages backfill requests manually or does not use the match backfill feature. SpecifyAUTOMATICto have GameLift create aStartMatchBackfillrequest whenever a game session has one or more open slots. Learn more about manual and automatic backfill in Backfill Existing Games with FlexMatch . Automatic backfill is not available whenFlexMatchModeis set toSTANDALONE.- Returns:
this
-
creationTime
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder creationTime(String creationTime) Sets the value ofCfnMatchmakingConfigurationMixinProps.getCreationTime()- Parameters:
creationTime- A time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example"1469498468.057").- Returns:
this
-
customEventData
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder customEventData(String customEventData) Sets the value ofCfnMatchmakingConfigurationMixinProps.getCustomEventData()- Parameters:
customEventData- Information to add to all events related to the matchmaking configuration.- Returns:
this
-
description
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder description(String description) Sets the value ofCfnMatchmakingConfigurationMixinProps.getDescription()- Parameters:
description- A description for the matchmaking configuration.- Returns:
this
-
flexMatchMode
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder flexMatchMode(String flexMatchMode) Sets the value ofCfnMatchmakingConfigurationMixinProps.getFlexMatchMode()- Parameters:
flexMatchMode- Indicates whether this matchmaking configuration is being used with Amazon GameLift Servers hosting or as a standalone matchmaking solution.- STANDALONE - FlexMatch forms matches and returns match information, including players and team assignments, in a MatchmakingSucceeded event.
- WITH_QUEUE - FlexMatch forms matches and uses the specified Amazon GameLift Servers queue to start a game session for the match.
- Returns:
this
-
gameProperties
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder gameProperties(IResolvable gameProperties) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameProperties()- Parameters:
gameProperties- A set of custom properties for a game session, formatted as key-value pairs. These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used ifFlexMatchModeis set toSTANDALONE.- Returns:
this
-
gameProperties
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder gameProperties(List<? extends Object> gameProperties) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameProperties()- Parameters:
gameProperties- A set of custom properties for a game session, formatted as key-value pairs. These properties are passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used ifFlexMatchModeis set toSTANDALONE.- Returns:
this
-
gameSessionData
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder gameSessionData(String gameSessionData) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameSessionData()- Parameters:
gameSessionData- A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session. See Start a Game Session . This parameter is not used ifFlexMatchModeis set toSTANDALONE.- Returns:
this
-
gameSessionQueueArns
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder gameSessionQueueArns(List<String> gameSessionQueueArns) Sets the value ofCfnMatchmakingConfigurationMixinProps.getGameSessionQueueArns()- Parameters:
gameSessionQueueArns- The Amazon Resource Name ( ARN ) that is assigned to a Amazon GameLift Servers game session queue resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::gamesessionqueue/<queue name>. Queues can be located in any Region. Queues are used to start new Amazon GameLift Servers-hosted game sessions for matches that are created with this matchmaking configuration. IfFlexMatchModeis set toSTANDALONE, do not set this parameter.- Returns:
this
-
name
Sets the value ofCfnMatchmakingConfigurationMixinProps.getName()- Parameters:
name- A unique identifier for the matchmaking configuration. This name is used to identify the configuration associated with a matchmaking request or ticket.- Returns:
this
-
notificationTarget
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder notificationTarget(String notificationTarget) Sets the value ofCfnMatchmakingConfigurationMixinProps.getNotificationTarget()- Parameters:
notificationTarget- An SNS topic ARN that is set up to receive matchmaking notifications. See Setting up notifications for matchmaking for more information.- Returns:
this
-
requestTimeoutSeconds
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder requestTimeoutSeconds(Number requestTimeoutSeconds) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRequestTimeoutSeconds()- Parameters:
requestTimeoutSeconds- The maximum duration, in seconds, that a matchmaking ticket can remain in process before timing out. Requests that fail due to timing out can be resubmitted as needed.- Returns:
this
-
ruleSetArn
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder ruleSetArn(String ruleSetArn) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRuleSetArn()- Parameters:
ruleSetArn- The Amazon Resource Name ( ARN ) associated with the GameLift matchmaking rule set resource that this configuration uses.- Returns:
this
-
ruleSetName
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder ruleSetName(String ruleSetName) Sets the value ofCfnMatchmakingConfigurationMixinProps.getRuleSetName()- Parameters:
ruleSetName- A unique identifier for the matchmaking rule set to use with this configuration. You can use either the rule set name or ARN value. A matchmaking configuration can only use rule sets that are defined in the same Region.- Returns:
this
-
tags
@Stability(Stable) public CfnMatchmakingConfigurationMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnMatchmakingConfigurationMixinProps.getTags()- Parameters:
tags- A list of labels to assign to the new matchmaking configuration 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMatchmakingConfigurationMixinProps>- Returns:
- a new instance of
CfnMatchmakingConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-