/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GameLift { namespace Model { /** */ class CreateMatchmakingRuleSetRequest : public GameLiftRequest { public: AWS_GAMELIFT_API CreateMatchmakingRuleSetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingRuleSet"; } AWS_GAMELIFT_API Aws::String SerializePayload() const override; AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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.

*/ inline const Aws::String& GetName() const{ return m_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.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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.

*/ inline CreateMatchmakingRuleSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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.

*/ inline CreateMatchmakingRuleSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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.

*/ inline CreateMatchmakingRuleSetRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline const Aws::String& GetRuleSetBody() const{ return m_ruleSetBody; } /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; } /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline void SetRuleSetBody(const Aws::String& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = value; } /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline void SetRuleSetBody(Aws::String&& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = std::move(value); } /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline void SetRuleSetBody(const char* value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody.assign(value); } /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(const Aws::String& value) { SetRuleSetBody(value); return *this;} /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(Aws::String&& value) { SetRuleSetBody(std::move(value)); return *this;} /** *

A collection of matchmaking rules, formatted as a JSON string. Comments are * not allowed in JSON, but most elements support a description field.

*/ inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(const char* value) { SetRuleSetBody(value); return *this;} /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline CreateMatchmakingRuleSetRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline CreateMatchmakingRuleSetRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline CreateMatchmakingRuleSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of labels to assign to the new matchmaking rule set resource. Tags are * developer-defined key-value pairs. Tagging Amazon Web Services resources are * useful for resource management, access management and cost allocation. For more * information, see Tagging * Amazon Web Services Resources in the Amazon Web Services General * Reference.

*/ inline CreateMatchmakingRuleSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_ruleSetBody; bool m_ruleSetBodyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws