AWS SDK for C++  1.8.56
AWS SDK for C++
CreateMatchmakingRuleSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/gamelift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingRuleSet"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
47  inline const Aws::String& GetName() const{ return m_name; }
48 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
61  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 
68  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 
75  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 
82  inline CreateMatchmakingRuleSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
83 
89  inline CreateMatchmakingRuleSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
90 
96  inline CreateMatchmakingRuleSetRequest& WithName(const char* value) { SetName(value); return *this;}
97 
98 
103  inline const Aws::String& GetRuleSetBody() const{ return m_ruleSetBody; }
104 
109  inline bool RuleSetBodyHasBeenSet() const { return m_ruleSetBodyHasBeenSet; }
110 
115  inline void SetRuleSetBody(const Aws::String& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = value; }
116 
121  inline void SetRuleSetBody(Aws::String&& value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody = std::move(value); }
122 
127  inline void SetRuleSetBody(const char* value) { m_ruleSetBodyHasBeenSet = true; m_ruleSetBody.assign(value); }
128 
133  inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(const Aws::String& value) { SetRuleSetBody(value); return *this;}
134 
139  inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(Aws::String&& value) { SetRuleSetBody(std::move(value)); return *this;}
140 
145  inline CreateMatchmakingRuleSetRequest& WithRuleSetBody(const char* value) { SetRuleSetBody(value); return *this;}
146 
147 
159  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
160 
172  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
173 
185  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
186 
198  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
199 
211  inline CreateMatchmakingRuleSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
212 
224  inline CreateMatchmakingRuleSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
225 
237  inline CreateMatchmakingRuleSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 
250  inline CreateMatchmakingRuleSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
251 
252  private:
253 
254  Aws::String m_name;
255  bool m_nameHasBeenSet;
256 
257  Aws::String m_ruleSetBody;
258  bool m_ruleSetBodyHasBeenSet;
259 
260  Aws::Vector<Tag> m_tags;
261  bool m_tagsHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace GameLift
266 } // namespace Aws
#define AWS_GAMELIFT_API
CreateMatchmakingRuleSetRequest & AddTags(const Tag &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateMatchmakingRuleSetRequest & WithRuleSetBody(const char *value)
CreateMatchmakingRuleSetRequest & WithName(const Aws::String &value)
CreateMatchmakingRuleSetRequest & WithName(const char *value)
CreateMatchmakingRuleSetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateMatchmakingRuleSetRequest & WithName(Aws::String &&value)
CreateMatchmakingRuleSetRequest & WithRuleSetBody(Aws::String &&value)
CreateMatchmakingRuleSetRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMatchmakingRuleSetRequest & AddTags(Tag &&value)
CreateMatchmakingRuleSetRequest & WithRuleSetBody(const Aws::String &value)