AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateMatchmakingRuleSetRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API CreateMatchmakingRuleSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingRuleSet"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateMatchmakingRuleSetRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetRuleSetBody() const { return m_ruleSetBody; }
59 inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; }
60 template<typename RuleSetBodyT = Aws::String>
61 void SetRuleSetBody(RuleSetBodyT&& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = std::forward<RuleSetBodyT>(value); }
62 template<typename RuleSetBodyT = Aws::String>
63 CreateMatchmakingRuleSetRequest& WithRuleSetBody(RuleSetBodyT&& value) { SetRuleSetBody(std::forward<RuleSetBodyT>(value)); return *this;}
65
67
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 CreateMatchmakingRuleSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 CreateMatchmakingRuleSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85 private:
86
87 Aws::String m_name;
88 bool m_nameHasBeenSet = false;
89
90 Aws::String m_ruleSetBody;
91 bool m_ruleSetBodyHasBeenSet = false;
92
93 Aws::Vector<Tag> m_tags;
94 bool m_tagsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace GameLift
99} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMatchmakingRuleSetRequest & WithTags(TagsT &&value)
CreateMatchmakingRuleSetRequest & WithName(NameT &&value)
CreateMatchmakingRuleSetRequest & WithRuleSetBody(RuleSetBodyT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateMatchmakingRuleSetRequest & AddTags(TagsT &&value)
AWS_GAMELIFT_API CreateMatchmakingRuleSetRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector