AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGameSessionQueueRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/FilterConfiguration.h>
12#include <aws/gamelift/model/PriorityConfiguration.h>
13#include <aws/gamelift/model/PlayerLatencyPolicy.h>
14#include <aws/gamelift/model/GameSessionQueueDestination.h>
15#include <aws/gamelift/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace GameLift
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateGameSessionQueue"; }
37
38 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
39
41
42
44
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateGameSessionQueueRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateGameSessionQueueRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateGameSessionQueueRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
65 inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
66 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
67 inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
70
72
80 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const{ return m_playerLatencyPolicies; }
81 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
82 inline void SetPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = value; }
83 inline void SetPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = std::move(value); }
86 inline CreateGameSessionQueueRequest& AddPlayerLatencyPolicies(const PlayerLatencyPolicy& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(value); return *this; }
87 inline CreateGameSessionQueueRequest& AddPlayerLatencyPolicies(PlayerLatencyPolicy&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(std::move(value)); return *this; }
89
91
97 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const{ return m_destinations; }
98 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
99 inline void SetDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
100 inline void SetDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
103 inline CreateGameSessionQueueRequest& AddDestinations(const GameSessionQueueDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
104 inline CreateGameSessionQueueRequest& AddDestinations(GameSessionQueueDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
106
108
114 inline const FilterConfiguration& GetFilterConfiguration() const{ return m_filterConfiguration; }
115 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
116 inline void SetFilterConfiguration(const FilterConfiguration& value) { m_filterConfigurationHasBeenSet = true; m_filterConfiguration = value; }
117 inline void SetFilterConfiguration(FilterConfiguration&& value) { m_filterConfigurationHasBeenSet = true; m_filterConfiguration = std::move(value); }
121
123
129 inline const PriorityConfiguration& GetPriorityConfiguration() const{ return m_priorityConfiguration; }
130 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
131 inline void SetPriorityConfiguration(const PriorityConfiguration& value) { m_priorityConfigurationHasBeenSet = true; m_priorityConfiguration = value; }
132 inline void SetPriorityConfiguration(PriorityConfiguration&& value) { m_priorityConfigurationHasBeenSet = true; m_priorityConfiguration = std::move(value); }
136
138
142 inline const Aws::String& GetCustomEventData() const{ return m_customEventData; }
143 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
144 inline void SetCustomEventData(const Aws::String& value) { m_customEventDataHasBeenSet = true; m_customEventData = value; }
145 inline void SetCustomEventData(Aws::String&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::move(value); }
146 inline void SetCustomEventData(const char* value) { m_customEventDataHasBeenSet = true; m_customEventData.assign(value); }
148 inline CreateGameSessionQueueRequest& WithCustomEventData(Aws::String&& value) { SetCustomEventData(std::move(value)); return *this;}
149 inline CreateGameSessionQueueRequest& WithCustomEventData(const char* value) { SetCustomEventData(value); return *this;}
151
153
159 inline const Aws::String& GetNotificationTarget() const{ return m_notificationTarget; }
160 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
161 inline void SetNotificationTarget(const Aws::String& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = value; }
162 inline void SetNotificationTarget(Aws::String&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::move(value); }
163 inline void SetNotificationTarget(const char* value) { m_notificationTargetHasBeenSet = true; m_notificationTarget.assign(value); }
166 inline CreateGameSessionQueueRequest& WithNotificationTarget(const char* value) { SetNotificationTarget(value); return *this;}
168
170
179 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
183 inline CreateGameSessionQueueRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
184 inline CreateGameSessionQueueRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
185 inline CreateGameSessionQueueRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
186 inline CreateGameSessionQueueRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
188 private:
189
190 Aws::String m_name;
191 bool m_nameHasBeenSet = false;
192
193 int m_timeoutInSeconds;
194 bool m_timeoutInSecondsHasBeenSet = false;
195
196 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
197 bool m_playerLatencyPoliciesHasBeenSet = false;
198
200 bool m_destinationsHasBeenSet = false;
201
202 FilterConfiguration m_filterConfiguration;
203 bool m_filterConfigurationHasBeenSet = false;
204
205 PriorityConfiguration m_priorityConfiguration;
206 bool m_priorityConfigurationHasBeenSet = false;
207
208 Aws::String m_customEventData;
209 bool m_customEventDataHasBeenSet = false;
210
211 Aws::String m_notificationTarget;
212 bool m_notificationTargetHasBeenSet = false;
213
214 Aws::Vector<Tag> m_tags;
215 bool m_tagsHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace GameLift
220} // namespace Aws
CreateGameSessionQueueRequest & WithPriorityConfiguration(const PriorityConfiguration &value)
CreateGameSessionQueueRequest & AddDestinations(GameSessionQueueDestination &&value)
CreateGameSessionQueueRequest & AddPlayerLatencyPolicies(const PlayerLatencyPolicy &value)
CreateGameSessionQueueRequest & WithPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
void SetPriorityConfiguration(const PriorityConfiguration &value)
CreateGameSessionQueueRequest & WithNotificationTarget(const Aws::String &value)
CreateGameSessionQueueRequest & WithCustomEventData(Aws::String &&value)
CreateGameSessionQueueRequest & WithName(const char *value)
CreateGameSessionQueueRequest & WithPriorityConfiguration(PriorityConfiguration &&value)
CreateGameSessionQueueRequest & WithCustomEventData(const Aws::String &value)
void SetDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
CreateGameSessionQueueRequest & WithTimeoutInSeconds(int value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
void SetDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
CreateGameSessionQueueRequest & WithName(Aws::String &&value)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
CreateGameSessionQueueRequest & WithPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
CreateGameSessionQueueRequest & WithNotificationTarget(const char *value)
CreateGameSessionQueueRequest & WithDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
CreateGameSessionQueueRequest & AddTags(const Tag &value)
CreateGameSessionQueueRequest & WithTags(const Aws::Vector< Tag > &value)
void SetPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
CreateGameSessionQueueRequest & WithTags(Aws::Vector< Tag > &&value)
CreateGameSessionQueueRequest & WithNotificationTarget(Aws::String &&value)
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
CreateGameSessionQueueRequest & AddDestinations(const GameSessionQueueDestination &value)
void SetPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
CreateGameSessionQueueRequest & WithDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
CreateGameSessionQueueRequest & WithName(const Aws::String &value)
CreateGameSessionQueueRequest & AddPlayerLatencyPolicies(PlayerLatencyPolicy &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGameSessionQueueRequest & WithCustomEventData(const char *value)
CreateGameSessionQueueRequest & WithFilterConfiguration(const FilterConfiguration &value)
CreateGameSessionQueueRequest & WithFilterConfiguration(FilterConfiguration &&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