AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMatchmakingConfigurationRequest.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/BackfillMode.h>
12#include <aws/gamelift/model/FlexMatchMode.h>
13#include <aws/gamelift/model/GameProperty.h>
14#include <aws/gamelift/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace GameLift
20{
21namespace Model
22{
23
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 "CreateMatchmakingConfiguration"; }
36
37 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateMatchmakingConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateMatchmakingConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateMatchmakingConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateMatchmakingConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateMatchmakingConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
83 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const{ return m_gameSessionQueueArns; }
84 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
85 inline void SetGameSessionQueueArns(const Aws::Vector<Aws::String>& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = value; }
86 inline void SetGameSessionQueueArns(Aws::Vector<Aws::String>&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::move(value); }
89 inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(const Aws::String& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
90 inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(Aws::String&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(std::move(value)); return *this; }
91 inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(const char* value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
93
95
100 inline int GetRequestTimeoutSeconds() const{ return m_requestTimeoutSeconds; }
101 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
102 inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
105
107
111 inline int GetAcceptanceTimeoutSeconds() const{ return m_acceptanceTimeoutSeconds; }
112 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
113 inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
116
118
125 inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; }
126 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
127 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
130
132
137 inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
138 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
139 inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
140 inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
141 inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
143 inline CreateMatchmakingConfigurationRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
144 inline CreateMatchmakingConfigurationRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
146
148
153 inline const Aws::String& GetNotificationTarget() const{ return m_notificationTarget; }
154 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
155 inline void SetNotificationTarget(const Aws::String& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = value; }
156 inline void SetNotificationTarget(Aws::String&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::move(value); }
157 inline void SetNotificationTarget(const char* value) { m_notificationTargetHasBeenSet = true; m_notificationTarget.assign(value); }
162
164
172 inline int GetAdditionalPlayerCount() const{ return m_additionalPlayerCount; }
173 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
174 inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
177
179
183 inline const Aws::String& GetCustomEventData() const{ return m_customEventData; }
184 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
185 inline void SetCustomEventData(const Aws::String& value) { m_customEventDataHasBeenSet = true; m_customEventData = value; }
186 inline void SetCustomEventData(Aws::String&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::move(value); }
187 inline void SetCustomEventData(const char* value) { m_customEventDataHasBeenSet = true; m_customEventData.assign(value); }
190 inline CreateMatchmakingConfigurationRequest& WithCustomEventData(const char* value) { SetCustomEventData(value); return *this;}
192
194
201 inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
202 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
203 inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
204 inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
207 inline CreateMatchmakingConfigurationRequest& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
208 inline CreateMatchmakingConfigurationRequest& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
210
212
222 inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
223 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
224 inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
225 inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
226 inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
229 inline CreateMatchmakingConfigurationRequest& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
231
233
244 inline const BackfillMode& GetBackfillMode() const{ return m_backfillMode; }
245 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
246 inline void SetBackfillMode(const BackfillMode& value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
247 inline void SetBackfillMode(BackfillMode&& value) { m_backfillModeHasBeenSet = true; m_backfillMode = std::move(value); }
249 inline CreateMatchmakingConfigurationRequest& WithBackfillMode(BackfillMode&& value) { SetBackfillMode(std::move(value)); return *this;}
251
253
263 inline const FlexMatchMode& GetFlexMatchMode() const{ return m_flexMatchMode; }
264 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
265 inline void SetFlexMatchMode(const FlexMatchMode& value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = value; }
266 inline void SetFlexMatchMode(FlexMatchMode&& value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = std::move(value); }
270
272
281 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
282 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
283 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
284 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
285 inline CreateMatchmakingConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
286 inline CreateMatchmakingConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
287 inline CreateMatchmakingConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
288 inline CreateMatchmakingConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
290 private:
291
292 Aws::String m_name;
293 bool m_nameHasBeenSet = false;
294
295 Aws::String m_description;
296 bool m_descriptionHasBeenSet = false;
297
298 Aws::Vector<Aws::String> m_gameSessionQueueArns;
299 bool m_gameSessionQueueArnsHasBeenSet = false;
300
301 int m_requestTimeoutSeconds;
302 bool m_requestTimeoutSecondsHasBeenSet = false;
303
304 int m_acceptanceTimeoutSeconds;
305 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
306
307 bool m_acceptanceRequired;
308 bool m_acceptanceRequiredHasBeenSet = false;
309
310 Aws::String m_ruleSetName;
311 bool m_ruleSetNameHasBeenSet = false;
312
313 Aws::String m_notificationTarget;
314 bool m_notificationTargetHasBeenSet = false;
315
316 int m_additionalPlayerCount;
317 bool m_additionalPlayerCountHasBeenSet = false;
318
319 Aws::String m_customEventData;
320 bool m_customEventDataHasBeenSet = false;
321
322 Aws::Vector<GameProperty> m_gameProperties;
323 bool m_gamePropertiesHasBeenSet = false;
324
325 Aws::String m_gameSessionData;
326 bool m_gameSessionDataHasBeenSet = false;
327
328 BackfillMode m_backfillMode;
329 bool m_backfillModeHasBeenSet = false;
330
331 FlexMatchMode m_flexMatchMode;
332 bool m_flexMatchModeHasBeenSet = false;
333
334 Aws::Vector<Tag> m_tags;
335 bool m_tagsHasBeenSet = false;
336 };
337
338} // namespace Model
339} // namespace GameLift
340} // namespace Aws
CreateMatchmakingConfigurationRequest & WithName(Aws::String &&value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(const char *value)
CreateMatchmakingConfigurationRequest & WithGameProperties(const Aws::Vector< GameProperty > &value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(const BackfillMode &value)
CreateMatchmakingConfigurationRequest & WithName(const char *value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(const char *value)
CreateMatchmakingConfigurationRequest & WithName(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(const char *value)
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(const Aws::Vector< Aws::String > &value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
CreateMatchmakingConfigurationRequest & WithDescription(const char *value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithDescription(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(Aws::String &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & AddGameProperties(GameProperty &&value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode &&value)
CreateMatchmakingConfigurationRequest & WithDescription(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(const char *value)
CreateMatchmakingConfigurationRequest & AddGameProperties(const GameProperty &value)
CreateMatchmakingConfigurationRequest & WithGameProperties(Aws::Vector< GameProperty > &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(const char *value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(Aws::Vector< Aws::String > &&value)
CreateMatchmakingConfigurationRequest & AddTags(const Tag &value)
CreateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & WithFlexMatchMode(FlexMatchMode &&value)
CreateMatchmakingConfigurationRequest & WithFlexMatchMode(const FlexMatchMode &value)
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