AWS SDK for C++  1.8.149
AWS SDK for C++
GameSessionQueue.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace GameLift
25 {
26 namespace Model
27 {
28 
49  {
50  public:
55 
56 
61  inline const Aws::String& GetName() const{ return m_name; }
62 
67  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 
73  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 
79  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
80 
85  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 
91  inline GameSessionQueue& WithName(const Aws::String& value) { SetName(value); return *this;}
92 
97  inline GameSessionQueue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 
103  inline GameSessionQueue& WithName(const char* value) { SetName(value); return *this;}
104 
105 
113  inline const Aws::String& GetGameSessionQueueArn() const{ return m_gameSessionQueueArn; }
114 
122  inline bool GameSessionQueueArnHasBeenSet() const { return m_gameSessionQueueArnHasBeenSet; }
123 
131  inline void SetGameSessionQueueArn(const Aws::String& value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn = value; }
132 
140  inline void SetGameSessionQueueArn(Aws::String&& value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn = std::move(value); }
141 
149  inline void SetGameSessionQueueArn(const char* value) { m_gameSessionQueueArnHasBeenSet = true; m_gameSessionQueueArn.assign(value); }
150 
158  inline GameSessionQueue& WithGameSessionQueueArn(const Aws::String& value) { SetGameSessionQueueArn(value); return *this;}
159 
167  inline GameSessionQueue& WithGameSessionQueueArn(Aws::String&& value) { SetGameSessionQueueArn(std::move(value)); return *this;}
168 
176  inline GameSessionQueue& WithGameSessionQueueArn(const char* value) { SetGameSessionQueueArn(value); return *this;}
177 
178 
184  inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
185 
191  inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
192 
198  inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
199 
205  inline GameSessionQueue& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
206 
207 
218  inline const Aws::Vector<PlayerLatencyPolicy>& GetPlayerLatencyPolicies() const{ return m_playerLatencyPolicies; }
219 
230  inline bool PlayerLatencyPoliciesHasBeenSet() const { return m_playerLatencyPoliciesHasBeenSet; }
231 
242  inline void SetPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = value; }
243 
254  inline void SetPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies = std::move(value); }
255 
266  inline GameSessionQueue& WithPlayerLatencyPolicies(const Aws::Vector<PlayerLatencyPolicy>& value) { SetPlayerLatencyPolicies(value); return *this;}
267 
278  inline GameSessionQueue& WithPlayerLatencyPolicies(Aws::Vector<PlayerLatencyPolicy>&& value) { SetPlayerLatencyPolicies(std::move(value)); return *this;}
279 
290  inline GameSessionQueue& AddPlayerLatencyPolicies(const PlayerLatencyPolicy& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(value); return *this; }
291 
302  inline GameSessionQueue& AddPlayerLatencyPolicies(PlayerLatencyPolicy&& value) { m_playerLatencyPoliciesHasBeenSet = true; m_playerLatencyPolicies.push_back(std::move(value)); return *this; }
303 
304 
310  inline const Aws::Vector<GameSessionQueueDestination>& GetDestinations() const{ return m_destinations; }
311 
317  inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
318 
324  inline void SetDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
325 
331  inline void SetDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
332 
338  inline GameSessionQueue& WithDestinations(const Aws::Vector<GameSessionQueueDestination>& value) { SetDestinations(value); return *this;}
339 
345  inline GameSessionQueue& WithDestinations(Aws::Vector<GameSessionQueueDestination>&& value) { SetDestinations(std::move(value)); return *this;}
346 
352  inline GameSessionQueue& AddDestinations(const GameSessionQueueDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
353 
359  inline GameSessionQueue& AddDestinations(GameSessionQueueDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
360 
361  private:
362 
363  Aws::String m_name;
364  bool m_nameHasBeenSet;
365 
366  Aws::String m_gameSessionQueueArn;
367  bool m_gameSessionQueueArnHasBeenSet;
368 
369  int m_timeoutInSeconds;
370  bool m_timeoutInSecondsHasBeenSet;
371 
372  Aws::Vector<PlayerLatencyPolicy> m_playerLatencyPolicies;
373  bool m_playerLatencyPoliciesHasBeenSet;
374 
376  bool m_destinationsHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace GameLift
381 } // namespace Aws
Aws::GameLift::Model::GameSessionQueueDestination
Definition: GameSessionQueueDestination.h:37
Aws::GameLift::Model::GameSessionQueue
Definition: GameSessionQueue.h:49
Aws::GameLift::Model::PlayerLatencyPolicy
Definition: PlayerLatencyPolicy.h:38
Aws::GameLift::Model::GameSessionQueue::SetName
void SetName(const char *value)
Definition: GameSessionQueue.h:85
Aws::GameLift::Model::GameSessionQueue::SetGameSessionQueueArn
void SetGameSessionQueueArn(const char *value)
Definition: GameSessionQueue.h:149
Aws::GameLift::Model::GameSessionQueue::SetTimeoutInSeconds
void SetTimeoutInSeconds(int value)
Definition: GameSessionQueue.h:198
Aws::GameLift::Model::GameSessionQueue::SetGameSessionQueueArn
void SetGameSessionQueueArn(const Aws::String &value)
Definition: GameSessionQueue.h:131
Aws::GameLift::Model::GameSessionQueue::WithName
GameSessionQueue & WithName(const char *value)
Definition: GameSessionQueue.h:103
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GameSessionQueue::SetPlayerLatencyPolicies
void SetPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
Definition: GameSessionQueue.h:242
Aws::GameLift::Model::GameSessionQueue::PlayerLatencyPoliciesHasBeenSet
bool PlayerLatencyPoliciesHasBeenSet() const
Definition: GameSessionQueue.h:230
Aws::GameLift::Model::GameSessionQueue::WithDestinations
GameSessionQueue & WithDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
Definition: GameSessionQueue.h:345
Aws::GameLift::Model::GameSessionQueue::WithDestinations
GameSessionQueue & WithDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
Definition: GameSessionQueue.h:338
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::GameSessionQueue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::GameSessionQueue::TimeoutInSecondsHasBeenSet
bool TimeoutInSecondsHasBeenSet() const
Definition: GameSessionQueue.h:191
Aws::GameLift::Model::GameSessionQueue::WithName
GameSessionQueue & WithName(Aws::String &&value)
Definition: GameSessionQueue.h:97
AWSVector.h
Aws::GameLift::Model::GameSessionQueue::GetGameSessionQueueArn
const Aws::String & GetGameSessionQueueArn() const
Definition: GameSessionQueue.h:113
Aws::GameLift::Model::GameSessionQueue::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GameSessionQueue.h:67
GameLift_EXPORTS.h
Aws::GameLift::Model::GameSessionQueue::operator=
GameSessionQueue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::GameSessionQueue::GetTimeoutInSeconds
int GetTimeoutInSeconds() const
Definition: GameSessionQueue.h:184
Aws::GameLift::Model::GameSessionQueue::WithGameSessionQueueArn
GameSessionQueue & WithGameSessionQueueArn(Aws::String &&value)
Definition: GameSessionQueue.h:167
Aws::GameLift::Model::GameSessionQueue::WithGameSessionQueueArn
GameSessionQueue & WithGameSessionQueueArn(const char *value)
Definition: GameSessionQueue.h:176
Aws::GameLift::Model::GameSessionQueue::SetPlayerLatencyPolicies
void SetPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
Definition: GameSessionQueue.h:254
Aws::GameLift::Model::GameSessionQueue::SetGameSessionQueueArn
void SetGameSessionQueueArn(Aws::String &&value)
Definition: GameSessionQueue.h:140
Aws::GameLift::Model::GameSessionQueue::SetName
void SetName(const Aws::String &value)
Definition: GameSessionQueue.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::GameSessionQueue::WithPlayerLatencyPolicies
GameSessionQueue & WithPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
Definition: GameSessionQueue.h:266
Aws::GameLift::Model::GameSessionQueue::GetName
const Aws::String & GetName() const
Definition: GameSessionQueue.h:61
Aws::GameLift::Model::GameSessionQueue::DestinationsHasBeenSet
bool DestinationsHasBeenSet() const
Definition: GameSessionQueue.h:317
Aws::GameLift::Model::GameSessionQueue::WithPlayerLatencyPolicies
GameSessionQueue & WithPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
Definition: GameSessionQueue.h:278
Aws::GameLift::Model::GameSessionQueue::WithName
GameSessionQueue & WithName(const Aws::String &value)
Definition: GameSessionQueue.h:91
Aws::GameLift::Model::GameSessionQueue::AddDestinations
GameSessionQueue & AddDestinations(GameSessionQueueDestination &&value)
Definition: GameSessionQueue.h:359
Aws::GameLift::Model::GameSessionQueue::WithGameSessionQueueArn
GameSessionQueue & WithGameSessionQueueArn(const Aws::String &value)
Definition: GameSessionQueue.h:158
Aws::GameLift::Model::GameSessionQueue::AddDestinations
GameSessionQueue & AddDestinations(const GameSessionQueueDestination &value)
Definition: GameSessionQueue.h:352
Aws::GameLift::Model::GameSessionQueue::GameSessionQueueArnHasBeenSet
bool GameSessionQueueArnHasBeenSet() const
Definition: GameSessionQueue.h:122
Aws::GameLift::Model::GameSessionQueue::GameSessionQueue
GameSessionQueue(Aws::Utils::Json::JsonView jsonValue)
PlayerLatencyPolicy.h
Aws::GameLift::Model::GameSessionQueue::AddPlayerLatencyPolicies
GameSessionQueue & AddPlayerLatencyPolicies(PlayerLatencyPolicy &&value)
Definition: GameSessionQueue.h:302
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameSessionQueue::GetPlayerLatencyPolicies
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
Definition: GameSessionQueue.h:218
Aws::GameLift::Model::GameSessionQueue::SetDestinations
void SetDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
Definition: GameSessionQueue.h:331
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::GameSessionQueue::WithTimeoutInSeconds
GameSessionQueue & WithTimeoutInSeconds(int value)
Definition: GameSessionQueue.h:205
GameSessionQueueDestination.h
Aws::GameLift::Model::GameSessionQueue::AddPlayerLatencyPolicies
GameSessionQueue & AddPlayerLatencyPolicies(const PlayerLatencyPolicy &value)
Definition: GameSessionQueue.h:290
Aws::GameLift::Model::GameSessionQueue::SetName
void SetName(Aws::String &&value)
Definition: GameSessionQueue.h:79
Aws::GameLift::Model::GameSessionQueue::SetDestinations
void SetDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
Definition: GameSessionQueue.h:324
Aws::GameLift::Model::GameSessionQueue::GetDestinations
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
Definition: GameSessionQueue.h:310
Aws::GameLift::Model::GameSessionQueue::GameSessionQueue
GameSessionQueue()