Class CfnMatchmakingRuleSetProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.CfnMatchmakingRuleSetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMatchmakingRuleSetProps>
- Enclosing interface:
CfnMatchmakingRuleSetProps
@Stability(Stable)
public static final class CfnMatchmakingRuleSetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMatchmakingRuleSetProps>
A builder for
CfnMatchmakingRuleSetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnMatchmakingRuleSetProps.getName()
ruleSetBody
(String ruleSetBody) Sets the value ofCfnMatchmakingRuleSetProps.getRuleSetBody()
Sets the value ofCfnMatchmakingRuleSetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnMatchmakingRuleSetProps.getName()
- Parameters:
name
- A unique identifier for the matchmaking rule set. This parameter is required. A matchmaking configuration identifies the rule set it uses by this name value. Note that the rule set name is different from the optionalname
field in the rule set body.- Returns:
this
-
ruleSetBody
Sets the value ofCfnMatchmakingRuleSetProps.getRuleSetBody()
- Parameters:
ruleSetBody
- A collection of matchmaking rules, formatted as a JSON string. This parameter is required. Comments are not allowed in JSON, but most elements support a description field.- Returns:
this
-
tags
Sets the value ofCfnMatchmakingRuleSetProps.getTags()
- Parameters:
tags
- A list of labels to assign to the new matchmaking rule set 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnMatchmakingRuleSetProps>
- Returns:
- a new instance of
CfnMatchmakingRuleSetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-