AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateMatchmakingConfigurationRequest.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 <utility>
15
16namespace Aws
17{
18namespace GameLift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFT_API UpdateMatchmakingConfigurationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateMatchmakingConfiguration"; }
35
36 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 UpdateMatchmakingConfigurationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template<typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 UpdateMatchmakingConfigurationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
78 inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const { return m_gameSessionQueueArns; }
79 inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
80 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
81 void SetGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::forward<GameSessionQueueArnsT>(value); }
82 template<typename GameSessionQueueArnsT = Aws::Vector<Aws::String>>
83 UpdateMatchmakingConfigurationRequest& WithGameSessionQueueArns(GameSessionQueueArnsT&& value) { SetGameSessionQueueArns(std::forward<GameSessionQueueArnsT>(value)); return *this;}
84 template<typename GameSessionQueueArnsT = Aws::String>
85 UpdateMatchmakingConfigurationRequest& AddGameSessionQueueArns(GameSessionQueueArnsT&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.emplace_back(std::forward<GameSessionQueueArnsT>(value)); return *this; }
87
89
94 inline int GetRequestTimeoutSeconds() const { return m_requestTimeoutSeconds; }
95 inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
96 inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
99
101
105 inline int GetAcceptanceTimeoutSeconds() const { return m_acceptanceTimeoutSeconds; }
106 inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
107 inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
110
112
119 inline bool GetAcceptanceRequired() const { return m_acceptanceRequired; }
120 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
121 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
124
126
131 inline const Aws::String& GetRuleSetName() const { return m_ruleSetName; }
132 inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
133 template<typename RuleSetNameT = Aws::String>
134 void SetRuleSetName(RuleSetNameT&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::forward<RuleSetNameT>(value); }
135 template<typename RuleSetNameT = Aws::String>
136 UpdateMatchmakingConfigurationRequest& WithRuleSetName(RuleSetNameT&& value) { SetRuleSetName(std::forward<RuleSetNameT>(value)); return *this;}
138
140
145 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
146 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
147 template<typename NotificationTargetT = Aws::String>
148 void SetNotificationTarget(NotificationTargetT&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::forward<NotificationTargetT>(value); }
149 template<typename NotificationTargetT = Aws::String>
150 UpdateMatchmakingConfigurationRequest& WithNotificationTarget(NotificationTargetT&& value) { SetNotificationTarget(std::forward<NotificationTargetT>(value)); return *this;}
152
154
161 inline int GetAdditionalPlayerCount() const { return m_additionalPlayerCount; }
162 inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
163 inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
166
168
172 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
173 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
174 template<typename CustomEventDataT = Aws::String>
175 void SetCustomEventData(CustomEventDataT&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::forward<CustomEventDataT>(value); }
176 template<typename CustomEventDataT = Aws::String>
177 UpdateMatchmakingConfigurationRequest& WithCustomEventData(CustomEventDataT&& value) { SetCustomEventData(std::forward<CustomEventDataT>(value)); return *this;}
179
181
188 inline const Aws::Vector<GameProperty>& GetGameProperties() const { return m_gameProperties; }
189 inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
190 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
191 void SetGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::forward<GamePropertiesT>(value); }
192 template<typename GamePropertiesT = Aws::Vector<GameProperty>>
193 UpdateMatchmakingConfigurationRequest& WithGameProperties(GamePropertiesT&& value) { SetGameProperties(std::forward<GamePropertiesT>(value)); return *this;}
194 template<typename GamePropertiesT = GameProperty>
195 UpdateMatchmakingConfigurationRequest& AddGameProperties(GamePropertiesT&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.emplace_back(std::forward<GamePropertiesT>(value)); return *this; }
197
199
208 inline const Aws::String& GetGameSessionData() const { return m_gameSessionData; }
209 inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
210 template<typename GameSessionDataT = Aws::String>
211 void SetGameSessionData(GameSessionDataT&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::forward<GameSessionDataT>(value); }
212 template<typename GameSessionDataT = Aws::String>
213 UpdateMatchmakingConfigurationRequest& WithGameSessionData(GameSessionDataT&& value) { SetGameSessionData(std::forward<GameSessionDataT>(value)); return *this;}
215
217
227 inline BackfillMode GetBackfillMode() const { return m_backfillMode; }
228 inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
229 inline void SetBackfillMode(BackfillMode value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
232
234
244 inline FlexMatchMode GetFlexMatchMode() const { return m_flexMatchMode; }
245 inline bool FlexMatchModeHasBeenSet() const { return m_flexMatchModeHasBeenSet; }
246 inline void SetFlexMatchMode(FlexMatchMode value) { m_flexMatchModeHasBeenSet = true; m_flexMatchMode = value; }
249 private:
250
251 Aws::String m_name;
252 bool m_nameHasBeenSet = false;
253
254 Aws::String m_description;
255 bool m_descriptionHasBeenSet = false;
256
257 Aws::Vector<Aws::String> m_gameSessionQueueArns;
258 bool m_gameSessionQueueArnsHasBeenSet = false;
259
260 int m_requestTimeoutSeconds{0};
261 bool m_requestTimeoutSecondsHasBeenSet = false;
262
263 int m_acceptanceTimeoutSeconds{0};
264 bool m_acceptanceTimeoutSecondsHasBeenSet = false;
265
266 bool m_acceptanceRequired{false};
267 bool m_acceptanceRequiredHasBeenSet = false;
268
269 Aws::String m_ruleSetName;
270 bool m_ruleSetNameHasBeenSet = false;
271
272 Aws::String m_notificationTarget;
273 bool m_notificationTargetHasBeenSet = false;
274
275 int m_additionalPlayerCount{0};
276 bool m_additionalPlayerCountHasBeenSet = false;
277
278 Aws::String m_customEventData;
279 bool m_customEventDataHasBeenSet = false;
280
281 Aws::Vector<GameProperty> m_gameProperties;
282 bool m_gamePropertiesHasBeenSet = false;
283
284 Aws::String m_gameSessionData;
285 bool m_gameSessionDataHasBeenSet = false;
286
287 BackfillMode m_backfillMode{BackfillMode::NOT_SET};
288 bool m_backfillModeHasBeenSet = false;
289
290 FlexMatchMode m_flexMatchMode{FlexMatchMode::NOT_SET};
291 bool m_flexMatchModeHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace GameLift
296} // namespace Aws
UpdateMatchmakingConfigurationRequest & WithDescription(DescriptionT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateMatchmakingConfigurationRequest & WithGameSessionData(GameSessionDataT &&value)
UpdateMatchmakingConfigurationRequest & WithName(NameT &&value)
UpdateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
UpdateMatchmakingConfigurationRequest & AddGameProperties(GamePropertiesT &&value)
UpdateMatchmakingConfigurationRequest & AddGameSessionQueueArns(GameSessionQueueArnsT &&value)
UpdateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
UpdateMatchmakingConfigurationRequest & WithGameProperties(GamePropertiesT &&value)
UpdateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int value)
UpdateMatchmakingConfigurationRequest & WithRuleSetName(RuleSetNameT &&value)
UpdateMatchmakingConfigurationRequest & WithFlexMatchMode(FlexMatchMode value)
UpdateMatchmakingConfigurationRequest & WithGameSessionQueueArns(GameSessionQueueArnsT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
UpdateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode value)
UpdateMatchmakingConfigurationRequest & WithCustomEventData(CustomEventDataT &&value)
UpdateMatchmakingConfigurationRequest & WithNotificationTarget(NotificationTargetT &&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