Class StandaloneMatchmakingConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.StandaloneMatchmakingConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StandaloneMatchmakingConfigurationProps>
- Enclosing interface:
StandaloneMatchmakingConfigurationProps
@Stability(Experimental)
public static final class StandaloneMatchmakingConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<StandaloneMatchmakingConfigurationProps>
A builder for
StandaloneMatchmakingConfigurationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptanceTimeout(Duration acceptanceTimeout) Sets the value ofMatchmakingConfigurationProps.getAcceptanceTimeout()build()Builds the configured instance.customEventData(String customEventData) Sets the value ofMatchmakingConfigurationProps.getCustomEventData()description(String description) Sets the value ofMatchmakingConfigurationProps.getDescription()matchmakingConfigurationName(String matchmakingConfigurationName) Sets the value ofMatchmakingConfigurationProps.getMatchmakingConfigurationName()notificationTarget(ITopic notificationTarget) Sets the value ofMatchmakingConfigurationProps.getNotificationTarget()requestTimeout(Duration requestTimeout) Sets the value ofMatchmakingConfigurationProps.getRequestTimeout()requireAcceptance(Boolean requireAcceptance) Sets the value ofMatchmakingConfigurationProps.getRequireAcceptance()ruleSet(IMatchmakingRuleSet ruleSet) Sets the value ofMatchmakingConfigurationProps.getRuleSet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
matchmakingConfigurationName
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder matchmakingConfigurationName(String matchmakingConfigurationName) Sets the value ofMatchmakingConfigurationProps.getMatchmakingConfigurationName()- Parameters:
matchmakingConfigurationName- A unique identifier for the matchmaking configuration. This parameter is required. This name is used to identify the configuration associated with a matchmaking request or ticket.- Returns:
this
-
ruleSet
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder ruleSet(IMatchmakingRuleSet ruleSet) Sets the value ofMatchmakingConfigurationProps.getRuleSet()- Parameters:
ruleSet- A matchmaking rule set to use with this configuration. This parameter is required. A matchmaking configuration can only use rule sets that are defined in the same Region.- Returns:
this
-
acceptanceTimeout
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder acceptanceTimeout(Duration acceptanceTimeout) Sets the value ofMatchmakingConfigurationProps.getAcceptanceTimeout()- Parameters:
acceptanceTimeout- The length of time (in seconds) to wait for players to accept a proposed match, if acceptance is required.- Returns:
this
-
customEventData
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder customEventData(String customEventData) Sets the value ofMatchmakingConfigurationProps.getCustomEventData()- Parameters:
customEventData- Information to add to all events related to the matchmaking configuration.- Returns:
this
-
description
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder description(String description) Sets the value ofMatchmakingConfigurationProps.getDescription()- Parameters:
description- A human-readable description of the matchmaking configuration.- Returns:
this
-
notificationTarget
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder notificationTarget(ITopic notificationTarget) Sets the value ofMatchmakingConfigurationProps.getNotificationTarget()- Parameters:
notificationTarget- An SNS topic ARN that is set up to receive matchmaking notifications.- Returns:
this
-
requestTimeout
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder requestTimeout(Duration requestTimeout) Sets the value ofMatchmakingConfigurationProps.getRequestTimeout()- Parameters:
requestTimeout- The maximum duration, 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
-
requireAcceptance
@Stability(Experimental) public StandaloneMatchmakingConfigurationProps.Builder requireAcceptance(Boolean requireAcceptance) Sets the value ofMatchmakingConfigurationProps.getRequireAcceptance()- Parameters:
requireAcceptance- A flag that determines whether a match that was created with this configuration must be accepted by the matched players. With this option enabled, matchmaking tickets use the statusREQUIRES_ACCEPTANCEto indicate when a completed potential match is waiting for player acceptance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StandaloneMatchmakingConfigurationProps>- Returns:
- a new instance of
StandaloneMatchmakingConfigurationProps - Throws:
NullPointerException- if any required attribute was not provided
-