AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
UpdateGameSessionQueueRequest.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/LogDeliveryDestination.h>
14#include <aws/gamelift/model/PlayerLatencyPolicy.h>
15#include <aws/gamelift/model/PriorityConfiguration.h>
16
17#include <utility>
18
19namespace Aws {
20namespace GameLift {
21namespace Model {
22
26 public:
27 AWS_GAMELIFT_API UpdateGameSessionQueueRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateGameSessionQueue"; }
34
35 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
36
38
40
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
66 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
67 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
68 inline void SetTimeoutInSeconds(int value) {
69 m_timeoutInSecondsHasBeenSet = true;
70 m_timeoutInSeconds = value;
71 }
74 return *this;
75 }
77
79
86 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const { return m_playerLatencyPolicies; }
87 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
88 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
89 void SetPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
90 m_playerLatencyPoliciesHasBeenSet = true;
91 m_playerLatencyPolicies = std::forward<PlayerLatencyPoliciesT>(value);
92 }
93 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
95 SetPlayerLatencyPolicies(std::forward<PlayerLatencyPoliciesT>(value));
96 return *this;
97 }
98 template <typename PlayerLatencyPoliciesT = PlayerLatencyPolicy>
100 m_playerLatencyPoliciesHasBeenSet = true;
101 m_playerLatencyPolicies.emplace_back(std::forward<PlayerLatencyPoliciesT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const { return m_destinations; }
114 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
115 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
116 void SetDestinations(DestinationsT&& value) {
117 m_destinationsHasBeenSet = true;
118 m_destinations = std::forward<DestinationsT>(value);
119 }
120 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
122 SetDestinations(std::forward<DestinationsT>(value));
123 return *this;
124 }
125 template <typename DestinationsT = GameSessionQueueDestination>
127 m_destinationsHasBeenSet = true;
128 m_destinations.emplace_back(std::forward<DestinationsT>(value));
129 return *this;
130 }
132
134
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
163 inline const PriorityConfiguration& GetPriorityConfiguration() const { return m_priorityConfiguration; }
164 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
165 template <typename PriorityConfigurationT = PriorityConfiguration>
166 void SetPriorityConfiguration(PriorityConfigurationT&& value) {
167 m_priorityConfigurationHasBeenSet = true;
168 m_priorityConfiguration = std::forward<PriorityConfigurationT>(value);
169 }
170 template <typename PriorityConfigurationT = PriorityConfiguration>
172 SetPriorityConfiguration(std::forward<PriorityConfigurationT>(value));
173 return *this;
174 }
176
178
182 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
183 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
184 template <typename CustomEventDataT = Aws::String>
185 void SetCustomEventData(CustomEventDataT&& value) {
186 m_customEventDataHasBeenSet = true;
187 m_customEventData = std::forward<CustomEventDataT>(value);
188 }
189 template <typename CustomEventDataT = Aws::String>
191 SetCustomEventData(std::forward<CustomEventDataT>(value));
192 return *this;
193 }
195
197
203 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
204 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
205 template <typename NotificationTargetT = Aws::String>
206 void SetNotificationTarget(NotificationTargetT&& value) {
207 m_notificationTargetHasBeenSet = true;
208 m_notificationTarget = std::forward<NotificationTargetT>(value);
209 }
210 template <typename NotificationTargetT = Aws::String>
212 SetNotificationTarget(std::forward<NotificationTargetT>(value));
213 return *this;
214 }
216
218
222 inline const Aws::Vector<LogDeliveryDestination>& GetAddLogDeliveryDestinations() const { return m_addLogDeliveryDestinations; }
223 inline bool AddLogDeliveryDestinationsHasBeenSet() const { return m_addLogDeliveryDestinationsHasBeenSet; }
224 template <typename AddLogDeliveryDestinationsT = Aws::Vector<LogDeliveryDestination>>
225 void SetAddLogDeliveryDestinations(AddLogDeliveryDestinationsT&& value) {
226 m_addLogDeliveryDestinationsHasBeenSet = true;
227 m_addLogDeliveryDestinations = std::forward<AddLogDeliveryDestinationsT>(value);
228 }
229 template <typename AddLogDeliveryDestinationsT = Aws::Vector<LogDeliveryDestination>>
230 UpdateGameSessionQueueRequest& WithAddLogDeliveryDestinations(AddLogDeliveryDestinationsT&& value) {
231 SetAddLogDeliveryDestinations(std::forward<AddLogDeliveryDestinationsT>(value));
232 return *this;
233 }
234 template <typename AddLogDeliveryDestinationsT = LogDeliveryDestination>
235 UpdateGameSessionQueueRequest& AddAddLogDeliveryDestinations(AddLogDeliveryDestinationsT&& value) {
236 m_addLogDeliveryDestinationsHasBeenSet = true;
237 m_addLogDeliveryDestinations.emplace_back(std::forward<AddLogDeliveryDestinationsT>(value));
238 return *this;
239 }
241
243
247 inline const Aws::Vector<LogDeliveryDestination>& GetRemoveLogDeliveryDestinations() const { return m_removeLogDeliveryDestinations; }
248 inline bool RemoveLogDeliveryDestinationsHasBeenSet() const { return m_removeLogDeliveryDestinationsHasBeenSet; }
249 template <typename RemoveLogDeliveryDestinationsT = Aws::Vector<LogDeliveryDestination>>
250 void SetRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT&& value) {
251 m_removeLogDeliveryDestinationsHasBeenSet = true;
252 m_removeLogDeliveryDestinations = std::forward<RemoveLogDeliveryDestinationsT>(value);
253 }
254 template <typename RemoveLogDeliveryDestinationsT = Aws::Vector<LogDeliveryDestination>>
255 UpdateGameSessionQueueRequest& WithRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT&& value) {
256 SetRemoveLogDeliveryDestinations(std::forward<RemoveLogDeliveryDestinationsT>(value));
257 return *this;
258 }
259 template <typename RemoveLogDeliveryDestinationsT = LogDeliveryDestination>
260 UpdateGameSessionQueueRequest& AddRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT&& value) {
261 m_removeLogDeliveryDestinationsHasBeenSet = true;
262 m_removeLogDeliveryDestinations.emplace_back(std::forward<RemoveLogDeliveryDestinationsT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_name;
268
269 int m_timeoutInSeconds{0};
270
271 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
272
274
275 FilterConfiguration m_filterConfiguration;
276
277 PriorityConfiguration m_priorityConfiguration;
278
279 Aws::String m_customEventData;
280
281 Aws::String m_notificationTarget;
282
283 Aws::Vector<LogDeliveryDestination> m_addLogDeliveryDestinations;
284
285 Aws::Vector<LogDeliveryDestination> m_removeLogDeliveryDestinations;
286 bool m_nameHasBeenSet = false;
287 bool m_timeoutInSecondsHasBeenSet = false;
288 bool m_playerLatencyPoliciesHasBeenSet = false;
289 bool m_destinationsHasBeenSet = false;
290 bool m_filterConfigurationHasBeenSet = false;
291 bool m_priorityConfigurationHasBeenSet = false;
292 bool m_customEventDataHasBeenSet = false;
293 bool m_notificationTargetHasBeenSet = false;
294 bool m_addLogDeliveryDestinationsHasBeenSet = false;
295 bool m_removeLogDeliveryDestinationsHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace GameLift
300} // namespace Aws
UpdateGameSessionQueueRequest & WithFilterConfiguration(FilterConfigurationT &&value)
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
UpdateGameSessionQueueRequest & WithNotificationTarget(NotificationTargetT &&value)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
UpdateGameSessionQueueRequest & AddRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT &&value)
UpdateGameSessionQueueRequest & AddPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
void SetAddLogDeliveryDestinations(AddLogDeliveryDestinationsT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateGameSessionQueueRequest & WithCustomEventData(CustomEventDataT &&value)
const Aws::Vector< LogDeliveryDestination > & GetAddLogDeliveryDestinations() const
UpdateGameSessionQueueRequest & WithName(NameT &&value)
void SetRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT &&value)
UpdateGameSessionQueueRequest & AddAddLogDeliveryDestinations(AddLogDeliveryDestinationsT &&value)
const Aws::Vector< LogDeliveryDestination > & GetRemoveLogDeliveryDestinations() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateGameSessionQueueRequest & WithPriorityConfiguration(PriorityConfigurationT &&value)
UpdateGameSessionQueueRequest & WithDestinations(DestinationsT &&value)
AWS_GAMELIFT_API UpdateGameSessionQueueRequest()=default
UpdateGameSessionQueueRequest & WithPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
UpdateGameSessionQueueRequest & WithRemoveLogDeliveryDestinations(RemoveLogDeliveryDestinationsT &&value)
UpdateGameSessionQueueRequest & AddDestinations(DestinationsT &&value)
UpdateGameSessionQueueRequest & WithAddLogDeliveryDestinations(AddLogDeliveryDestinationsT &&value)
UpdateGameSessionQueueRequest & WithTimeoutInSeconds(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