Class CfnMatchmakingRuleSet.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.CfnMatchmakingRuleSet.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMatchmakingRuleSet>
Enclosing class:
CfnMatchmakingRuleSet

@Stability(Stable) public static final class CfnMatchmakingRuleSet.Builder extends Object implements software.amazon.jsii.Builder<CfnMatchmakingRuleSet>
A fluent builder for CfnMatchmakingRuleSet.
  • Method Details

    • create

      @Stability(Stable) public static CfnMatchmakingRuleSet.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnMatchmakingRuleSet.Builder.
    • name

      @Stability(Stable) public CfnMatchmakingRuleSet.Builder name(String name)
      A unique identifier for the matchmaking rule set.

      A matchmaking configuration identifies the rule set it uses by this name value. Note that the rule set name is different from the optional name field in the rule set body.

      Parameters:
      name - A unique identifier for the matchmaking rule set. This parameter is required.
      Returns:
      this
    • ruleSetBody

      @Stability(Stable) public CfnMatchmakingRuleSet.Builder ruleSetBody(String ruleSetBody)
      A collection of matchmaking rules, formatted as a JSON string.

      Comments are not allowed in JSON, but most elements support a description field.

      Parameters:
      ruleSetBody - A collection of matchmaking rules, formatted as a JSON string. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnMatchmakingRuleSet.Builder tags(List<? extends CfnTag> 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.

      Parameters:
      tags - A list of labels to assign to the new matchmaking rule set resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnMatchmakingRuleSet build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMatchmakingRuleSet>
      Returns:
      a newly built instance of CfnMatchmakingRuleSet.