AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
GameSessionQueue.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/crt/cbor/Cbor.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
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace GameLift {
26namespace Model {
27
36 public:
37 AWS_GAMELIFT_API GameSessionQueue() = default;
38 AWS_GAMELIFT_API GameSessionQueue(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_GAMELIFT_API GameSessionQueue& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
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) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 GameSessionQueue& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
71 inline const Aws::String& GetGameSessionQueueArn() const { return m_gameSessionQueueArn; }
72 inline bool GameSessionQueueArnHasBeenSet() const { return m_gameSessionQueueArnHasBeenSet; }
73 template <typename GameSessionQueueArnT = Aws::String>
74 void SetGameSessionQueueArn(GameSessionQueueArnT&& value) {
75 m_gameSessionQueueArnHasBeenSet = true;
76 m_gameSessionQueueArn = std::forward<GameSessionQueueArnT>(value);
77 }
78 template <typename GameSessionQueueArnT = Aws::String>
79 GameSessionQueue& WithGameSessionQueueArn(GameSessionQueueArnT&& value) {
80 SetGameSessionQueueArn(std::forward<GameSessionQueueArnT>(value));
81 return *this;
82 }
84
86
92 inline int64_t GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
93 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
94 inline void SetTimeoutInSeconds(int64_t value) {
95 m_timeoutInSecondsHasBeenSet = true;
96 m_timeoutInSeconds = value;
97 }
98 inline GameSessionQueue& WithTimeoutInSeconds(int64_t value) {
100 return *this;
101 }
103
105
112 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const { return m_playerLatencyPolicies; }
113 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
114 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
115 void SetPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
116 m_playerLatencyPoliciesHasBeenSet = true;
117 m_playerLatencyPolicies = std::forward<PlayerLatencyPoliciesT>(value);
118 }
119 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
120 GameSessionQueue& WithPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
121 SetPlayerLatencyPolicies(std::forward<PlayerLatencyPoliciesT>(value));
122 return *this;
123 }
124 template <typename PlayerLatencyPoliciesT = PlayerLatencyPolicy>
125 GameSessionQueue& AddPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
126 m_playerLatencyPoliciesHasBeenSet = true;
127 m_playerLatencyPolicies.emplace_back(std::forward<PlayerLatencyPoliciesT>(value));
128 return *this;
129 }
131
133
139 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const { return m_destinations; }
140 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
141 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
142 void SetDestinations(DestinationsT&& value) {
143 m_destinationsHasBeenSet = true;
144 m_destinations = std::forward<DestinationsT>(value);
145 }
146 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
147 GameSessionQueue& WithDestinations(DestinationsT&& value) {
148 SetDestinations(std::forward<DestinationsT>(value));
149 return *this;
150 }
151 template <typename DestinationsT = GameSessionQueueDestination>
152 GameSessionQueue& AddDestinations(DestinationsT&& value) {
153 m_destinationsHasBeenSet = true;
154 m_destinations.emplace_back(std::forward<DestinationsT>(value));
155 return *this;
156 }
158
160
166 inline const FilterConfiguration& GetFilterConfiguration() const { return m_filterConfiguration; }
167 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
168 template <typename FilterConfigurationT = FilterConfiguration>
169 void SetFilterConfiguration(FilterConfigurationT&& value) {
170 m_filterConfigurationHasBeenSet = true;
171 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
172 }
173 template <typename FilterConfigurationT = FilterConfiguration>
174 GameSessionQueue& WithFilterConfiguration(FilterConfigurationT&& value) {
175 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
176 return *this;
177 }
179
181
187 inline const PriorityConfiguration& GetPriorityConfiguration() const { return m_priorityConfiguration; }
188 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
189 template <typename PriorityConfigurationT = PriorityConfiguration>
190 void SetPriorityConfiguration(PriorityConfigurationT&& value) {
191 m_priorityConfigurationHasBeenSet = true;
192 m_priorityConfiguration = std::forward<PriorityConfigurationT>(value);
193 }
194 template <typename PriorityConfigurationT = PriorityConfiguration>
195 GameSessionQueue& WithPriorityConfiguration(PriorityConfigurationT&& value) {
196 SetPriorityConfiguration(std::forward<PriorityConfigurationT>(value));
197 return *this;
198 }
200
202
206 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
207 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
208 template <typename CustomEventDataT = Aws::String>
209 void SetCustomEventData(CustomEventDataT&& value) {
210 m_customEventDataHasBeenSet = true;
211 m_customEventData = std::forward<CustomEventDataT>(value);
212 }
213 template <typename CustomEventDataT = Aws::String>
214 GameSessionQueue& WithCustomEventData(CustomEventDataT&& value) {
215 SetCustomEventData(std::forward<CustomEventDataT>(value));
216 return *this;
217 }
219
221
227 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
228 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
229 template <typename NotificationTargetT = Aws::String>
230 void SetNotificationTarget(NotificationTargetT&& value) {
231 m_notificationTargetHasBeenSet = true;
232 m_notificationTarget = std::forward<NotificationTargetT>(value);
233 }
234 template <typename NotificationTargetT = Aws::String>
235 GameSessionQueue& WithNotificationTarget(NotificationTargetT&& value) {
236 SetNotificationTarget(std::forward<NotificationTargetT>(value));
237 return *this;
238 }
240
242
249 inline const GameSessionQueueLogConfiguration& GetLogConfiguration() const { return m_logConfiguration; }
250 inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; }
251 template <typename LogConfigurationT = GameSessionQueueLogConfiguration>
252 void SetLogConfiguration(LogConfigurationT&& value) {
253 m_logConfigurationHasBeenSet = true;
254 m_logConfiguration = std::forward<LogConfigurationT>(value);
255 }
256 template <typename LogConfigurationT = GameSessionQueueLogConfiguration>
257 GameSessionQueue& WithLogConfiguration(LogConfigurationT&& value) {
258 SetLogConfiguration(std::forward<LogConfigurationT>(value));
259 return *this;
260 }
262 private:
263 Aws::String m_name;
264
265 Aws::String m_gameSessionQueueArn;
266
267 int64_t m_timeoutInSeconds{0};
268
269 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
270
272
273 FilterConfiguration m_filterConfiguration;
274
275 PriorityConfiguration m_priorityConfiguration;
276
277 Aws::String m_customEventData;
278
279 Aws::String m_notificationTarget;
280
281 GameSessionQueueLogConfiguration m_logConfiguration;
282 bool m_nameHasBeenSet = false;
283 bool m_gameSessionQueueArnHasBeenSet = false;
284 bool m_timeoutInSecondsHasBeenSet = false;
285 bool m_playerLatencyPoliciesHasBeenSet = false;
286 bool m_destinationsHasBeenSet = false;
287 bool m_filterConfigurationHasBeenSet = false;
288 bool m_priorityConfigurationHasBeenSet = false;
289 bool m_customEventDataHasBeenSet = false;
290 bool m_notificationTargetHasBeenSet = false;
291 bool m_logConfigurationHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace GameLift
296} // namespace Aws
const GameSessionQueueLogConfiguration & GetLogConfiguration() const
void SetCustomEventData(CustomEventDataT &&value)
GameSessionQueue & WithGameSessionQueueArn(GameSessionQueueArnT &&value)
void SetPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
GameSessionQueue & AddPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
AWS_GAMELIFT_API GameSessionQueue()=default
void SetLogConfiguration(LogConfigurationT &&value)
void SetDestinations(DestinationsT &&value)
GameSessionQueue & AddDestinations(DestinationsT &&value)
GameSessionQueue & WithPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
GameSessionQueue & WithName(NameT &&value)
const FilterConfiguration & GetFilterConfiguration() const
GameSessionQueue & WithFilterConfiguration(FilterConfigurationT &&value)
const Aws::String & GetNotificationTarget() const
void SetFilterConfiguration(FilterConfigurationT &&value)
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
const Aws::String & GetGameSessionQueueArn() const
const Aws::String & GetCustomEventData() const
GameSessionQueue & WithDestinations(DestinationsT &&value)
GameSessionQueue & WithCustomEventData(CustomEventDataT &&value)
GameSessionQueue & WithTimeoutInSeconds(int64_t value)
void SetNotificationTarget(NotificationTargetT &&value)
void SetGameSessionQueueArn(GameSessionQueueArnT &&value)
AWS_GAMELIFT_API GameSessionQueue(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetName() const
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
GameSessionQueue & WithLogConfiguration(LogConfigurationT &&value)
const PriorityConfiguration & GetPriorityConfiguration() const
void SetPriorityConfiguration(PriorityConfigurationT &&value)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
AWS_GAMELIFT_API GameSessionQueue & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameSessionQueue & WithNotificationTarget(NotificationTargetT &&value)
GameSessionQueue & WithPriorityConfiguration(PriorityConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector