AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
29 AWS_GAMELIFT_API CreateMatchmakingConfigurationRequest() = default;
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 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateMatchmakingConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateMatchmakingConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
79 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
80 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
81 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
82 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value); }
83 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
84 CreateMatchmakingConfigurationRequest& WithGameSessionQueueArns(GameSessionQueueArnsT&& value) { SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value)); return *this;}
85 template<typename GameSessionQueueArnsT = Aws::String>
86 CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value)); return *this; }
88
90
95 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
96 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
97 inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
100
102
106 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
107 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
108 inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
111
113
120 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
121 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
122 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
125
127
132 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
133 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
134 template<typename RuleSetNameT = Aws::String>
135 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
136 template<typename RuleSetNameT = Aws::String>
137 CreateMatchmakingConfigurationRequest& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
139
141
146 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
147 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
148 template<typename NotificationTargetT = Aws::String>
149 void SetNotificationTarget(NotificationTargetT&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::forward<NotificationTargetT>(value); }
150 template<typename NotificationTargetT = Aws::String>
151 CreateMatchmakingConfigurationRequest& WithNotificationTarget(NotificationTargetT&& value) { SetNotificationTarget(std::forward<NotificationTargetT>(value)); return *this;}
153
155
162 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
163 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
164 inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
167
169
173 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
174 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
175 template<typename CustomEventDataT = Aws::String>
176 void SetCustomEventData(CustomEventDataT&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::forward<CustomEventDataT>(value); }
177 template<typename CustomEventDataT = Aws::String>
178 CreateMatchmakingConfigurationRequest& WithCustomEventData(CustomEventDataT&& value) { SetCustomEventData(std::forward<CustomEventDataT>(value)); return *this;}
180
182
189 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
190 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
191 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
192 void SetGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::forward<GamePropertiesT>(value); }
193 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
194 CreateMatchmakingConfigurationRequest& WithGameProperties(GamePropertiesT&& value) { SetGameProperties(std::forward<GamePropertiesT>(value)); return *this;}
195 template<typename GamePropertiesT = GameProperty>
196 CreateMatchmakingConfigurationRequest& AddGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value)); return *this; }
198
200
210 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
211 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
212 template<typename GameSessionDataT = Aws::String>
213 void SetGameSessionData(GameSessionDataT&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::forward<GameSessionDataT>(value); }
214 template<typename GameSessionDataT = Aws::String>
215 CreateMatchmakingConfigurationRequest& WithGameSessionData(GameSessionDataT&& value) { SetGameSessionData(std::forward<GameSessionDataT>(value)); return *this;}
217
219
230 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
231 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
232 inline void SetBackfillMode(BackfillMode value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
235
237
247 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
248 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
249 inline void SetFlexMatchMode(FlexMatchMode value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = value; }
252
254
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template<typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
267 template<typename TagsT = Aws::Vector<Tag>>
268 CreateMatchmakingConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
269 template<typename TagsT = Tag>
270 CreateMatchmakingConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
272 private:
273
274 Aws::String m_name;
275 bool m_nameHasBeenSet = false;
276
277 Aws::String m_description;
278 bool m_descriptionHasBeenSet = false;
279
280 Aws::Vector<Aws::String> m_gameSessionQueueArns;
281 bool m_gameSessionQueueArnsHasBeenSet = false;
282
283 int m_requestTimeoutSeconds{0};
284 bool m_requestTimeoutSecondsHasBeenSet = false;
285
286 int m_acceptanceTimeoutSeconds{0};
287 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
288
289 bool m_acceptanceRequired{false};
290 bool m_acceptanceRequiredHasBeenSet = false;
291
292 Aws::String m_ruleSetName;
293 bool m_ruleSetNameHasBeenSet = false;
294
295 Aws::String m_notificationTarget;
296 bool m_notificationTargetHasBeenSet = false;
297
298 int m_additionalPlayerCount{0};
299 bool m_additionalPlayerCountHasBeenSet = false;
300
301 Aws::String m_customEventData;
302 bool m_customEventDataHasBeenSet = false;
303
304 Aws::Vector<GameProperty> m_gameProperties;
305 bool m_gamePropertiesHasBeenSet = false;
306
307 Aws::String m_gameSessionData;
308 bool m_gameSessionDataHasBeenSet = false;
309
310 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
311 bool m_backfillModeHasBeenSet = false;
312
313 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
314 bool m_flexMatchModeHasBeenSet = false;
315
316 Aws::Vector<Tag> m_tags;
317 bool m_tagsHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace GameLift
322} // namespace Aws
CreateMatchmakingConfigurationRequest & WithFlexMatchMode(FlexMatchMode value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode value)
CreateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
CreateMatchmakingConfigurationRequest & WithDescription(DescriptionT &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(NotificationTargetT &&value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(GameSessionQueueArnsT &&value)
CreateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & AddGameProperties(GamePropertiesT &&value)
CreateMatchmakingConfigurationRequest & WithName(NameT &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(GameSessionQueueArnsT &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(GameSessionDataT &&value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(CustomEventDataT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateMatchmakingConfigurationRequest & WithRuleSetName(RuleSetNameT &&value)
CreateMatchmakingConfigurationRequest & WithGameProperties(GamePropertiesT &&value)
CreateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int 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