AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
TerminateGameSessionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/TerminationMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API TerminateGameSessionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "TerminateGameSession"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
44 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
45 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
46 template <typename GameSessionIdT = Aws::String>
47 void SetGameSessionId(GameSessionIdT&& value) {
48 m_gameSessionIdHasBeenSet = true;
49 m_gameSessionId = std::forward<GameSessionIdT>(value);
50 }
51 template <typename GameSessionIdT = Aws::String>
53 SetGameSessionId(std::forward<GameSessionIdT>(value));
54 return *this;
55 }
57
59
78 inline TerminationMode GetTerminationMode() const { return m_terminationMode; }
79 inline bool TerminationModeHasBeenSet() const { return m_terminationModeHasBeenSet; }
81 m_terminationModeHasBeenSet = true;
82 m_terminationMode = value;
83 }
85 SetTerminationMode(value);
86 return *this;
87 }
89 private:
90 Aws::String m_gameSessionId;
91
93 bool m_gameSessionIdHasBeenSet = false;
94 bool m_terminationModeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GameLift
99} // namespace Aws
TerminateGameSessionRequest & WithGameSessionId(GameSessionIdT &&value)
AWS_GAMELIFT_API TerminateGameSessionRequest()=default
TerminateGameSessionRequest & WithTerminationMode(TerminationMode value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String