AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
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
140 inline const FilterConfiguration& GetFilterConfiguration() const { return m_filterConfiguration; }
141 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
142 template <typename FilterConfigurationT = FilterConfiguration>
143 void SetFilterConfiguration(FilterConfigurationT&& value) {
144 m_filterConfigurationHasBeenSet = true;
145 m_filterConfiguration = std::forward<FilterConfigurationT>(value);
146 }
147 template <typename FilterConfigurationT = FilterConfiguration>
149 SetFilterConfiguration(std::forward<FilterConfigurationT>(value));
150 return *this;
151 }
153
155
161 inline const PriorityConfiguration& GetPriorityConfiguration() const { return m_priorityConfiguration; }
162 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
163 template <typename PriorityConfigurationT = PriorityConfiguration>
164 void SetPriorityConfiguration(PriorityConfigurationT&& value) {
165 m_priorityConfigurationHasBeenSet = true;
166 m_priorityConfiguration = std::forward<PriorityConfigurationT>(value);
167 }
168 template <typename PriorityConfigurationT = PriorityConfiguration>
170 SetPriorityConfiguration(std::forward<PriorityConfigurationT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetCustomEventData() const { return m_customEventData; }
181 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
182 template <typename CustomEventDataT = Aws::String>
183 void SetCustomEventData(CustomEventDataT&& value) {
184 m_customEventDataHasBeenSet = true;
185 m_customEventData = std::forward<CustomEventDataT>(value);
186 }
187 template <typename CustomEventDataT = Aws::String>
189 SetCustomEventData(std::forward<CustomEventDataT>(value));
190 return *this;
191 }
193
195
201 inline const Aws::String& GetNotificationTarget() const { return m_notificationTarget; }
202 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
203 template <typename NotificationTargetT = Aws::String>
204 void SetNotificationTarget(NotificationTargetT&& value) {
205 m_notificationTargetHasBeenSet = true;
206 m_notificationTarget = std::forward<NotificationTargetT>(value);
207 }
208 template <typename NotificationTargetT = Aws::String>
210 SetNotificationTarget(std::forward<NotificationTargetT>(value));
211 return *this;
212 }
214
216
225 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
226 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
227 template <typename TagsT = Aws::Vector<Tag>>
228 void SetTags(TagsT&& value) {
229 m_tagsHasBeenSet = true;
230 m_tags = std::forward<TagsT>(value);
231 }
232 template <typename TagsT = Aws::Vector<Tag>>
234 SetTags(std::forward<TagsT>(value));
235 return *this;
236 }
237 template <typename TagsT = Tag>
239 m_tagsHasBeenSet = true;
240 m_tags.emplace_back(std::forward<TagsT>(value));
241 return *this;
242 }
244 private:
245 Aws::String m_name;
246
247 int m_timeoutInSeconds{0};
248
249 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
250
252
253 FilterConfiguration m_filterConfiguration;
254
255 PriorityConfiguration m_priorityConfiguration;
256
257 Aws::String m_customEventData;
258
259 Aws::String m_notificationTarget;
260
261 Aws::Vector<Tag> m_tags;
262 bool m_nameHasBeenSet = false;
263 bool m_timeoutInSecondsHasBeenSet = false;
264 bool m_playerLatencyPoliciesHasBeenSet = false;
265 bool m_destinationsHasBeenSet = false;
266 bool m_filterConfigurationHasBeenSet = false;
267 bool m_priorityConfigurationHasBeenSet = false;
268 bool m_customEventDataHasBeenSet = false;
269 bool m_notificationTargetHasBeenSet = false;
270 bool m_tagsHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace GameLift
275} // 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