AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CreateGameSessionQueueRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/FilterConfiguration.h>
12#include <aws/gamelift/model/GameSessionQueueDestination.h>
13#include <aws/gamelift/model/GameSessionQueueLogConfiguration.h>
14#include <aws/gamelift/model/PlayerLatencyPolicy.h>
15#include <aws/gamelift/model/PriorityConfiguration.h>
16#include <aws/gamelift/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace GameLift {
22namespace Model {
23
27 public:
28 AWS_GAMELIFT_API CreateGameSessionQueueRequest() = 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 "CreateGameSessionQueue"; }
35
36 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
41
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
67 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
68 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
69 inline void SetTimeoutInSeconds(int value) {
70 m_timeoutInSecondsHasBeenSet = true;
71 m_timeoutInSeconds = value;
72 }
75 return *this;
76 }
78
80
87 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const { return m_playerLatencyPolicies; }
88 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
89 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
90 void SetPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
91 m_playerLatencyPoliciesHasBeenSet = true;
92 m_playerLatencyPolicies = std::forward<PlayerLatencyPoliciesT>(value);
93 }
94 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
96 SetPlayerLatencyPolicies(std::forward<PlayerLatencyPoliciesT>(value));
97 return *this;
98 }
99 template <typename PlayerLatencyPoliciesT = PlayerLatencyPolicy>
101 m_playerLatencyPoliciesHasBeenSet = true;
102 m_playerLatencyPolicies.emplace_back(std::forward<PlayerLatencyPoliciesT>(value));
103 return *this;
104 }
106
108
114 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const { return m_destinations; }
115 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
116 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
117 void SetDestinations(DestinationsT&& value) {
118 m_destinationsHasBeenSet = true;
119 m_destinations = std::forward<DestinationsT>(value);
120 }
121 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
123 SetDestinations(std::forward<DestinationsT>(value));
124 return *this;
125 }
126 template <typename DestinationsT = GameSessionQueueDestination>
128 m_destinationsHasBeenSet = true;
129 m_destinations.emplace_back(std::forward<DestinationsT>(value));
130 return *this;
131 }
133
135
141 inline const FilterConfiguration& GetFilterConfiguration() const { return m_filterConfiguration; }
142 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
143 template <typename FilterConfigurationT = FilterConfiguration>
144 void SetFilterConfiguration(FilterConfigurationT&& value) {
145 m_filterConfigurationHasBeenSet = true;
146 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
147 }
148 template <typename FilterConfigurationT = FilterConfiguration>
150 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
151 return *this;
152 }
154
156
162 inline const PriorityConfiguration& GetPriorityConfiguration() const { return m_priorityConfiguration; }
163 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
164 template <typename PriorityConfigurationT = PriorityConfiguration>
165 void SetPriorityConfiguration(PriorityConfigurationT&& value) {
166 m_priorityConfigurationHasBeenSet = true;
167 m_priorityConfiguration = std::forward<PriorityConfigurationT>(value);
168 }
169 template <typename PriorityConfigurationT = PriorityConfiguration>
171 SetPriorityConfiguration(std::forward<PriorityConfigurationT>(value));
172 return *this;
173 }
175
177
181 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
182 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
183 template <typename CustomEventDataT = Aws::String>
184 void SetCustomEventData(CustomEventDataT&& value) {
185 m_customEventDataHasBeenSet = true;
186 m_customEventData = std::forward<CustomEventDataT>(value);
187 }
188 template <typename CustomEventDataT = Aws::String>
190 SetCustomEventData(std::forward<CustomEventDataT>(value));
191 return *this;
192 }
194
196
202 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
203 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
204 template <typename NotificationTargetT = Aws::String>
205 void SetNotificationTarget(NotificationTargetT&& value) {
206 m_notificationTargetHasBeenSet = true;
207 m_notificationTarget = std::forward<NotificationTargetT>(value);
208 }
209 template <typename NotificationTargetT = Aws::String>
211 SetNotificationTarget(std::forward<NotificationTargetT>(value));
212 return *this;
213 }
215
217
226 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
227 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 template <typename TagsT = Aws::Vector<Tag>>
229 void SetTags(TagsT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags = std::forward<TagsT>(value);
232 }
233 template <typename TagsT = Aws::Vector<Tag>>
235 SetTags(std::forward<TagsT>(value));
236 return *this;
237 }
238 template <typename TagsT = Tag>
240 m_tagsHasBeenSet = true;
241 m_tags.emplace_back(std::forward<TagsT>(value));
242 return *this;
243 }
245
247
254 inline const GameSessionQueueLogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
255 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
256 template <typename LogConfigurationT = GameSessionQueueLogConfiguration>
257 void SetLogConfiguration(LogConfigurationT&& value) {
258 m_logConfigurationHasBeenSet = true;
259 m_logConfiguration = std::forward<LogConfigurationT>(value);
260 }
261 template <typename LogConfigurationT = GameSessionQueueLogConfiguration>
263 SetLogConfiguration(std::forward<LogConfigurationT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_name;
269
270 int m_timeoutInSeconds{0};
271
272 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
273
275
276 FilterConfiguration m_filterConfiguration;
277
278 PriorityConfiguration m_priorityConfiguration;
279
280 Aws::String m_customEventData;
281
282 Aws::String m_notificationTarget;
283
284 Aws::Vector<Tag> m_tags;
285
286 GameSessionQueueLogConfiguration m_logConfiguration;
287 bool m_nameHasBeenSet = false;
288 bool m_timeoutInSecondsHasBeenSet = false;
289 bool m_playerLatencyPoliciesHasBeenSet = false;
290 bool m_destinationsHasBeenSet = false;
291 bool m_filterConfigurationHasBeenSet = false;
292 bool m_priorityConfigurationHasBeenSet = false;
293 bool m_customEventDataHasBeenSet = false;
294 bool m_notificationTargetHasBeenSet = false;
295 bool m_tagsHasBeenSet = false;
296 bool m_logConfigurationHasBeenSet = false;
297};
298
299} // namespace Model
300} // namespace GameLift
301} // namespace Aws
CreateGameSessionQueueRequest & WithName(NameT &&value)
CreateGameSessionQueueRequest & AddTags(TagsT &&value)
CreateGameSessionQueueRequest & WithPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
AWS_GAMELIFT_API CreateGameSessionQueueRequest()=default
CreateGameSessionQueueRequest & AddPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
const GameSessionQueueLogConfiguration & GetLogConfiguration() const
CreateGameSessionQueueRequest & WithNotificationTarget(NotificationTargetT &&value)
CreateGameSessionQueueRequest & WithFilterConfiguration(FilterConfigurationT &&value)
CreateGameSessionQueueRequest & WithPriorityConfiguration(PriorityConfigurationT &&value)
CreateGameSessionQueueRequest & WithTimeoutInSeconds(int value)
CreateGameSessionQueueRequest & WithDestinations(DestinationsT &&value)
CreateGameSessionQueueRequest & WithCustomEventData(CustomEventDataT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateGameSessionQueueRequest & WithLogConfiguration(LogConfigurationT &&value)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
CreateGameSessionQueueRequest & WithTags(TagsT &&value)
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
CreateGameSessionQueueRequest & AddDestinations(DestinationsT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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