AWS SDK for C++  1.8.56
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:
53  GameSessionQueue& operator=(Aws::Utils::Json::JsonView jsonValue);
54  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetGameSessionQueueArn(const char *value)
GameSessionQueue & WithName(const Aws::String &value)
GameSessionQueue & WithName(Aws::String &&value)
const Aws::String & GetName() const
void SetGameSessionQueueArn(const Aws::String &value)
#define AWS_GAMELIFT_API
const Aws::Vector< PlayerLatencyPolicy > & GetPlayerLatencyPolicies() const
GameSessionQueue & WithDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
GameSessionQueue & WithGameSessionQueueArn(Aws::String &&value)
void SetPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
const Aws::Vector< GameSessionQueueDestination > & GetDestinations() const
GameSessionQueue & AddDestinations(const GameSessionQueueDestination &value)
GameSessionQueue & WithName(const char *value)
GameSessionQueue & WithGameSessionQueueArn(const Aws::String &value)
GameSessionQueue & WithDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
GameSessionQueue & WithGameSessionQueueArn(const char *value)
GameSessionQueue & AddPlayerLatencyPolicies(const PlayerLatencyPolicy &value)
const Aws::String & GetGameSessionQueueArn() const
void SetGameSessionQueueArn(Aws::String &&value)
void SetDestinations(Aws::Vector< GameSessionQueueDestination > &&value)
GameSessionQueue & AddPlayerLatencyPolicies(PlayerLatencyPolicy &&value)
GameSessionQueue & WithPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GameSessionQueue & WithPlayerLatencyPolicies(Aws::Vector< PlayerLatencyPolicy > &&value)
void SetName(const Aws::String &value)
GameSessionQueue & WithTimeoutInSeconds(int value)
GameSessionQueue & AddDestinations(GameSessionQueueDestination &&value)
void SetDestinations(const Aws::Vector< GameSessionQueueDestination > &value)
void SetPlayerLatencyPolicies(const Aws::Vector< PlayerLatencyPolicy > &value)