AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePlayerSessionRequest.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 <utility>
11
12namespace Aws
13{
14namespace GameLift
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_GAMELIFT_API CreatePlayerSessionRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreatePlayerSession"; }
31
32 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetGameSessionId() const{ return m_gameSessionId; }
42 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
43 inline void SetGameSessionId(const Aws::String& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = value; }
44 inline void SetGameSessionId(Aws::String&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::move(value); }
45 inline void SetGameSessionId(const char* value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId.assign(value); }
46 inline CreatePlayerSessionRequest& WithGameSessionId(const Aws::String& value) { SetGameSessionId(value); return *this;}
47 inline CreatePlayerSessionRequest& WithGameSessionId(Aws::String&& value) { SetGameSessionId(std::move(value)); return *this;}
48 inline CreatePlayerSessionRequest& WithGameSessionId(const char* value) { SetGameSessionId(value); return *this;}
50
52
55 inline const Aws::String& GetPlayerId() const{ return m_playerId; }
56 inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
57 inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
58 inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
59 inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
60 inline CreatePlayerSessionRequest& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
61 inline CreatePlayerSessionRequest& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
62 inline CreatePlayerSessionRequest& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
64
66
70 inline const Aws::String& GetPlayerData() const{ return m_playerData; }
71 inline bool PlayerDataHasBeenSet() const { return m_playerDataHasBeenSet; }
72 inline void SetPlayerData(const Aws::String& value) { m_playerDataHasBeenSet = true; m_playerData = value; }
73 inline void SetPlayerData(Aws::String&& value) { m_playerDataHasBeenSet = true; m_playerData = std::move(value); }
74 inline void SetPlayerData(const char* value) { m_playerDataHasBeenSet = true; m_playerData.assign(value); }
75 inline CreatePlayerSessionRequest& WithPlayerData(const Aws::String& value) { SetPlayerData(value); return *this;}
76 inline CreatePlayerSessionRequest& WithPlayerData(Aws::String&& value) { SetPlayerData(std::move(value)); return *this;}
77 inline CreatePlayerSessionRequest& WithPlayerData(const char* value) { SetPlayerData(value); return *this;}
79 private:
80
81 Aws::String m_gameSessionId;
82 bool m_gameSessionIdHasBeenSet = false;
83
84 Aws::String m_playerId;
85 bool m_playerIdHasBeenSet = false;
86
87 Aws::String m_playerData;
88 bool m_playerDataHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GameLift
93} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePlayerSessionRequest & WithGameSessionId(const char *value)
CreatePlayerSessionRequest & WithPlayerData(const Aws::String &value)
CreatePlayerSessionRequest & WithPlayerData(const char *value)
CreatePlayerSessionRequest & WithPlayerId(const char *value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreatePlayerSessionRequest & WithPlayerData(Aws::String &&value)
CreatePlayerSessionRequest & WithGameSessionId(Aws::String &&value)
CreatePlayerSessionRequest & WithPlayerId(Aws::String &&value)
CreatePlayerSessionRequest & WithPlayerId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePlayerSessionRequest & WithGameSessionId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String