AWS SDK for C++  1.9.130
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 
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
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateMatchmakingRuleSetRequest.h:47
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateMatchmakingRuleSetRequest.h:68
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithRuleSetBody
CreateMatchmakingRuleSetRequest & WithRuleSetBody(const Aws::String &value)
Definition: CreateMatchmakingRuleSetRequest.h:133
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetRuleSetBody
void SetRuleSetBody(const Aws::String &value)
Definition: CreateMatchmakingRuleSetRequest.h:115
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateMatchmakingRuleSetRequest.h:159
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithTags
CreateMatchmakingRuleSetRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateMatchmakingRuleSetRequest.h:211
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetRuleSetBody
void SetRuleSetBody(const char *value)
Definition: CreateMatchmakingRuleSetRequest.h:127
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithTags
CreateMatchmakingRuleSetRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateMatchmakingRuleSetRequest.h:224
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithRuleSetBody
CreateMatchmakingRuleSetRequest & WithRuleSetBody(const char *value)
Definition: CreateMatchmakingRuleSetRequest.h:145
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::RuleSetBodyHasBeenSet
bool RuleSetBodyHasBeenSet() const
Definition: CreateMatchmakingRuleSetRequest.h:109
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::GetRuleSetBody
const Aws::String & GetRuleSetBody() const
Definition: CreateMatchmakingRuleSetRequest.h:103
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest
Definition: CreateMatchmakingRuleSetRequest.h:27
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateMatchmakingRuleSetRequest.h:61
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetName
void SetName(const char *value)
Definition: CreateMatchmakingRuleSetRequest.h:75
AWSVector.h
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateMatchmakingRuleSetRequest.h:185
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithName
CreateMatchmakingRuleSetRequest & WithName(const Aws::String &value)
Definition: CreateMatchmakingRuleSetRequest.h:82
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateMatchmakingRuleSetRequest.h:172
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateMatchmakingRuleSetRequest.h:35
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateMatchmakingRuleSetRequest.h:198
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::CreateMatchmakingRuleSetRequest
CreateMatchmakingRuleSetRequest()
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithName
CreateMatchmakingRuleSetRequest & WithName(const char *value)
Definition: CreateMatchmakingRuleSetRequest.h:96
Aws::GameLift::Model::Tag
Definition: Tag.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateMatchmakingRuleSetRequest.h:54
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithRuleSetBody
CreateMatchmakingRuleSetRequest & WithRuleSetBody(Aws::String &&value)
Definition: CreateMatchmakingRuleSetRequest.h:139
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::WithName
CreateMatchmakingRuleSetRequest & WithName(Aws::String &&value)
Definition: CreateMatchmakingRuleSetRequest.h:89
Tag.h
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::AddTags
CreateMatchmakingRuleSetRequest & AddTags(const Tag &value)
Definition: CreateMatchmakingRuleSetRequest.h:237
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::AddTags
CreateMatchmakingRuleSetRequest & AddTags(Tag &&value)
Definition: CreateMatchmakingRuleSetRequest.h:250
Aws::GameLift::Model::CreateMatchmakingRuleSetRequest::SetRuleSetBody
void SetRuleSetBody(Aws::String &&value)
Definition: CreateMatchmakingRuleSetRequest.h:121