AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateMatchmakingRuleSetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API CreateMatchmakingRuleSetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingRuleSet"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetRuleSetBody() const { return m_ruleSetBody; }
61 inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; }
62 template <typename RuleSetBodyT = Aws::String>
63 void SetRuleSetBody(RuleSetBodyT&& value) {
64 m_ruleSetBodyHasBeenSet = true;
65 m_ruleSetBody = std::forward<RuleSetBodyT>(value);
66 }
67 template <typename RuleSetBodyT = Aws::String>
69 SetRuleSetBody(std::forward<RuleSetBodyT>(value));
70 return *this;
71 }
73
75
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template <typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags = std::forward<TagsT>(value);
90 }
91 template <typename TagsT = Aws::Vector<Tag>>
93 SetTags(std::forward<TagsT>(value));
94 return *this;
95 }
96 template <typename TagsT = Tag>
98 m_tagsHasBeenSet = true;
99 m_tags.emplace_back(std::forward<TagsT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_name;
105
106 Aws::String m_ruleSetBody;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_nameHasBeenSet = false;
110 bool m_ruleSetBodyHasBeenSet = false;
111 bool m_tagsHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace GameLift
116} // 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