Class MatchmakingConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.MatchmakingConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MatchmakingConfigurationProps>
- Enclosing interface:
MatchmakingConfigurationProps
@Stability(Experimental)
public static final class MatchmakingConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<MatchmakingConfigurationProps>
A builder for
MatchmakingConfigurationProps
-
Constructor Summary
-
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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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 MatchmakingConfigurationProps.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_ACCEPTANCE
to indicate when a completed potential match is waiting for player acceptance.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<MatchmakingConfigurationProps>
- Returns:
- a new instance of
MatchmakingConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-