AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameSessionQueue.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/FilterConfiguration.h>
11#include <aws/gamelift/model/PriorityConfiguration.h>
12#include <aws/gamelift/model/PlayerLatencyPolicy.h>
13#include <aws/gamelift/model/GameSessionQueueDestination.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_GAMELIFT_API GameSessionQueue();
42 AWS_GAMELIFT_API GameSessionQueue(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline GameSessionQueue& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline GameSessionQueue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline GameSessionQueue& WithName(const char* value) { SetName(value); return *this;}
61
63
72 inline const Aws::String& GetGameSessionQueueArn() const{ return m_gameSessionQueueArn; }
73 inline bool GameSessionQueueArnHasBeenSet() const { return m_gameSessionQueueArnHasBeenSet; }
74 inline void SetGameSessionQueueArn(const Aws::String& value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn = value; }
75 inline void SetGameSessionQueueArn(Aws::String&& value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn = std::move(value); }
76 inline void SetGameSessionQueueArn(const char* value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn.assign(value); }
77 inline GameSessionQueue& WithGameSessionQueueArn(const Aws::String& value) { SetGameSessionQueueArn(value); return *this;}
78 inline GameSessionQueue& WithGameSessionQueueArn(Aws::String&& value) { SetGameSessionQueueArn(std::move(value)); return *this;}
79 inline GameSessionQueue& WithGameSessionQueueArn(const char* value) { SetGameSessionQueueArn(value); return *this;}
81
83
89 inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
90 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
91 inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
92 inline GameSessionQueue& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
94
96
104 inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const{ return m_playerLatencyPolicies; }
105 inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
106 inline void SetPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = value; }
107 inline void SetPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = std::move(value); }
110 inline GameSessionQueue& AddPlayerLatencyPolicies(const PlayerLatencyPolicy& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(value); return *this; }
111 inline GameSessionQueue& AddPlayerLatencyPolicies(PlayerLatencyPolicy&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(std::move(value)); return *this; }
113
115
121 inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const{ return m_destinations; }
122 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
123 inline void SetDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
124 inline void SetDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
127 inline GameSessionQueue& AddDestinations(const GameSessionQueueDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
128 inline GameSessionQueue& AddDestinations(GameSessionQueueDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
130
132
138 inline const FilterConfiguration& GetFilterConfiguration() const{ return m_filterConfiguration; }
139 inline bool FilterConfigurationHasBeenSet() const { return m_filterConfigurationHasBeenSet; }
140 inline void SetFilterConfiguration(const FilterConfiguration& value) { m_filterConfigurationHasBeenSet = true; m_filterConfiguration = value; }
141 inline void SetFilterConfiguration(FilterConfiguration&& value) { m_filterConfigurationHasBeenSet = true; m_filterConfiguration = std::move(value); }
143 inline GameSessionQueue& WithFilterConfiguration(FilterConfiguration&& value) { SetFilterConfiguration(std::move(value)); return *this;}
145
147
153 inline const PriorityConfiguration& GetPriorityConfiguration() const{ return m_priorityConfiguration; }
154 inline bool PriorityConfigurationHasBeenSet() const { return m_priorityConfigurationHasBeenSet; }
155 inline void SetPriorityConfiguration(const PriorityConfiguration& value) { m_priorityConfigurationHasBeenSet = true; m_priorityConfiguration = value; }
156 inline void SetPriorityConfiguration(PriorityConfiguration&& value) { m_priorityConfigurationHasBeenSet = true; m_priorityConfiguration = std::move(value); }
160
162
166 inline const Aws::String& GetCustomEventData() const{ return m_customEventData; }
167 inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
168 inline void SetCustomEventData(const Aws::String& value) { m_customEventDataHasBeenSet = true; m_customEventData = value; }
169 inline void SetCustomEventData(Aws::String&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::move(value); }
170 inline void SetCustomEventData(const char* value) { m_customEventDataHasBeenSet = true; m_customEventData.assign(value); }
171 inline GameSessionQueue& WithCustomEventData(const Aws::String& value) { SetCustomEventData(value); return *this;}
172 inline GameSessionQueue& WithCustomEventData(Aws::String&& value) { SetCustomEventData(std::move(value)); return *this;}
173 inline GameSessionQueue& WithCustomEventData(const char* value) { SetCustomEventData(value); return *this;}
175
177
183 inline const Aws::String& GetNotificationTarget() const{ return m_notificationTarget; }
184 inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
185 inline void SetNotificationTarget(const Aws::String& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = value; }
186 inline void SetNotificationTarget(Aws::String&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::move(value); }
187 inline void SetNotificationTarget(const char* value) { m_notificationTargetHasBeenSet = true; m_notificationTarget.assign(value); }
188 inline GameSessionQueue& WithNotificationTarget(const Aws::String& value) { SetNotificationTarget(value); return *this;}
189 inline GameSessionQueue& WithNotificationTarget(Aws::String&& value) { SetNotificationTarget(std::move(value)); return *this;}
190 inline GameSessionQueue& WithNotificationTarget(const char* value) { SetNotificationTarget(value); return *this;}
192 private:
193
194 Aws::String m_name;
195 bool m_nameHasBeenSet = false;
196
197 Aws::String m_gameSessionQueueArn;
198 bool m_gameSessionQueueArnHasBeenSet = false;
199
200 int m_timeoutInSeconds;
201 bool m_timeoutInSecondsHasBeenSet = false;
202
203 Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
204 bool m_playerLatencyPoliciesHasBeenSet = false;
205
207 bool m_destinationsHasBeenSet = false;
208
209 FilterConfiguration m_filterConfiguration;
210 bool m_filterConfigurationHasBeenSet = false;
211
212 PriorityConfiguration m_priorityConfiguration;
213 bool m_priorityConfigurationHasBeenSet = false;
214
215 Aws::String m_customEventData;
216 bool m_customEventDataHasBeenSet = false;
217
218 Aws::String m_notificationTarget;
219 bool m_notificationTargetHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace GameLift
224} // namespace Aws
void SetNotificationTarget(const Aws::String &value)
void SetPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
void SetName(const Aws::String &value)
AWS_GAMELIFT_API GameSessionQueue & operator=(Aws::Utils::Json::JsonView jsonValue)
GameSessionQueue & AddDestinations(GameSessionQueueDestination &&value)
GameSessionQueue & WithGameSessionQueueArn(const Aws::String &value)
void SetDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
void SetNotificationTarget(const char *value)
void SetNotificationTarget(Aws::String &&value)
void SetDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
GameSessionQueue & WithDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
GameSessionQueue & AddPlayerLatencyPolicies(PlayerLatencyPolicy &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
GameSessionQueue & WithDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
void SetPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
void SetFilterConfiguration(FilterConfiguration &&value)
const FilterConfiguration & GetFilterConfiguration() const
void SetPriorityConfiguration(PriorityConfiguration &&value)
GameSessionQueue & WithTimeoutInSeconds(int value)
const Aws::String & GetNotificationTarget() const
void SetGameSessionQueueArn(const char *value)
GameSessionQueue & AddDestinations(const GameSessionQueueDestination &value)
void SetCustomEventData(const Aws::String &value)
GameSessionQueue & WithFilterConfiguration(FilterConfiguration &&value)
void SetPriorityConfiguration(const PriorityConfiguration &value)
GameSessionQueue & WithName(const Aws::String &value)
GameSessionQueue & WithName(Aws::String &&value)
GameSessionQueue & WithNotificationTarget(const Aws::String &value)
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
GameSessionQueue & WithFilterConfiguration(const FilterConfiguration &value)
GameSessionQueue & WithCustomEventData(const char *value)
GameSessionQueue & WithCustomEventData(Aws::String &&value)
const Aws::String & GetGameSessionQueueArn() const
const Aws::String & GetCustomEventData() const
void SetGameSessionQueueArn(Aws::String &&value)
GameSessionQueue & WithGameSessionQueueArn(const char *value)
GameSessionQueue & WithPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
GameSessionQueue & WithName(const char *value)
const Aws::String & GetName() const
GameSessionQueue & WithPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
GameSessionQueue & WithCustomEventData(const Aws::String &value)
GameSessionQueue & WithNotificationTarget(const char *value)
void SetGameSessionQueueArn(const Aws::String &value)
void SetFilterConfiguration(const FilterConfiguration &value)
GameSessionQueue & WithPriorityConfiguration(const PriorityConfiguration &value)
void SetCustomEventData(Aws::String &&value)
const PriorityConfiguration & GetPriorityConfiguration() const
GameSessionQueue & WithPriorityConfiguration(PriorityConfiguration &&value)
AWS_GAMELIFT_API GameSessionQueue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
GameSessionQueue & AddPlayerLatencyPolicies(const PlayerLatencyPolicy &value)
GameSessionQueue & WithGameSessionQueueArn(Aws::String &&value)
GameSessionQueue & WithNotificationTarget(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue