AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/PlayerLatencyPolicy.h>
14#include <aws/gamelift/model/PriorityConfiguration.h>
15#include <aws/gamelift/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace GameLift {
21namespace Model {
22
26 public:
27 AWS_GAMELIFT_API CreateGameSessionQueueRequest() = 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 "CreateGameSessionQueue"; }
34
35 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
65 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
66 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
67 inline void SetTimeoutInSeconds(int value) {
68 m_timeoutInSecondsHasBeenSet = true;
69 m_timeoutInSeconds = value;
70 }
73 return *this;
74 }
76
78
85 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const { return m_playerLatencyPolicies; }
86 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
87 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
88 void SetPlayerLatencyPolicies(PlayerLatencyPoliciesT&& value) {
89 m_playerLatencyPoliciesHasBeenSet = true;
90 m_playerLatencyPolicies = std::forward<PlayerLatencyPoliciesT>(value);
91 }
92 template <typename PlayerLatencyPoliciesT = Aws::Vector<PlayerLatencyPolicy>>
94 SetPlayerLatencyPolicies(std::forward<PlayerLatencyPoliciesT>(value));
95 return *this;
96 }
97 template <typename PlayerLatencyPoliciesT = PlayerLatencyPolicy>
99 m_playerLatencyPoliciesHasBeenSet = true;
100 m_playerLatencyPolicies.emplace_back(std::forward<PlayerLatencyPoliciesT>(value));
101 return *this;
102 }
104
106
112 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const { return m_destinations; }
113 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
114 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
115 void SetDestinations(DestinationsT&& value) {
116 m_destinationsHasBeenSet = true;
117 m_destinations = std::forward<DestinationsT>(value);
118 }
119 template <typename DestinationsT = Aws::Vector<GameSessionQueueDestination>>
121 SetDestinations(std::forward<DestinationsT>(value));
122 return *this;
123 }
124 template <typename DestinationsT = GameSessionQueueDestination>
126 m_destinationsHasBeenSet = true;
127 m_destinations.emplace_back(std::forward<DestinationsT>(value));
128 return *this;
129 }
131
133
139 inline const FilterConfiguration& GetFilterConfiguration() const { return m_filterConfiguration; }
140 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
141 template <typename FilterConfigurationT = FilterConfiguration>
142 void SetFilterConfiguration(FilterConfigurationT&& value) {
143 m_filterConfigurationHasBeenSet = true;
144 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
145 }
146 template <typename FilterConfigurationT = FilterConfiguration>
148 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
149 return *this;
150 }
152
154
160 inline const PriorityConfiguration& GetPriorityConfiguration() const { return m_priorityConfiguration; }
161 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
162 template <typename PriorityConfigurationT = PriorityConfiguration>
163 void SetPriorityConfiguration(PriorityConfigurationT&& value) {
164 m_priorityConfigurationHasBeenSet = true;
165 m_priorityConfiguration = std::forward<PriorityConfigurationT>(value);
166 }
167 template <typename PriorityConfigurationT = PriorityConfiguration>
169 SetPriorityConfiguration(std::forward<PriorityConfigurationT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
180 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
181 template <typename CustomEventDataT = Aws::String>
182 void SetCustomEventData(CustomEventDataT&& value) {
183 m_customEventDataHasBeenSet = true;
184 m_customEventData = std::forward<CustomEventDataT>(value);
185 }
186 template <typename CustomEventDataT = Aws::String>
188 SetCustomEventData(std::forward<CustomEventDataT>(value));
189 return *this;
190 }
192
194
200 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
201 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
202 template <typename NotificationTargetT = Aws::String>
203 void SetNotificationTarget(NotificationTargetT&& value) {
204 m_notificationTargetHasBeenSet = true;
205 m_notificationTarget = std::forward<NotificationTargetT>(value);
206 }
207 template <typename NotificationTargetT = Aws::String>
209 SetNotificationTarget(std::forward<NotificationTargetT>(value));
210 return *this;
211 }
213
215
224 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
225 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
226 template <typename TagsT = Aws::Vector<Tag>>
227 void SetTags(TagsT&& value) {
228 m_tagsHasBeenSet = true;
229 m_tags = std::forward<TagsT>(value);
230 }
231 template <typename TagsT = Aws::Vector<Tag>>
233 SetTags(std::forward<TagsT>(value));
234 return *this;
235 }
236 template <typename TagsT = Tag>
238 m_tagsHasBeenSet = true;
239 m_tags.emplace_back(std::forward<TagsT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_name;
245
246 int m_timeoutInSeconds{0};
247
248 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
249
251
252 FilterConfiguration m_filterConfiguration;
253
254 PriorityConfiguration m_priorityConfiguration;
255
256 Aws::String m_customEventData;
257
258 Aws::String m_notificationTarget;
259
260 Aws::Vector<Tag> m_tags;
261 bool m_nameHasBeenSet = false;
262 bool m_timeoutInSecondsHasBeenSet = false;
263 bool m_playerLatencyPoliciesHasBeenSet = false;
264 bool m_destinationsHasBeenSet = false;
265 bool m_filterConfigurationHasBeenSet = false;
266 bool m_priorityConfigurationHasBeenSet = false;
267 bool m_customEventDataHasBeenSet = false;
268 bool m_notificationTargetHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace GameLift
274} // namespace Aws
CreateGameSessionQueueRequest & WithName(NameT &&value)
CreateGameSessionQueueRequest & AddTags(TagsT &&value)
CreateGameSessionQueueRequest & WithPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
AWS_GAMELIFT_API CreateGameSessionQueueRequest()=default
CreateGameSessionQueueRequest & AddPlayerLatencyPolicies(PlayerLatencyPoliciesT &&value)
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
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