AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TerminateGameSessionRequest.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 <aws/gamelift/model/TerminationMode.h>
11#include <utility>
12
13namespace Aws
14{
15namespace GameLift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GAMELIFT_API TerminateGameSessionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "TerminateGameSession"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
37
39
45 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
46 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
47 template<typename GameSessionIdT = Aws::String>
48 void SetGameSessionId(GameSessionIdT&& value) { m_gameSessionIdHasBeenSet = true; m_gameSessionId = std::forward<GameSessionIdT>(value); }
49 template<typename GameSessionIdT = Aws::String>
50 TerminateGameSessionRequest& WithGameSessionId(GameSessionIdT&& value) { SetGameSessionId(std::forward<GameSessionIdT>(value)); return *this;}
52
54
73 inline TerminationMode GetTerminationMode() const { return m_terminationMode; }
74 inline bool TerminationModeHasBeenSet() const { return m_terminationModeHasBeenSet; }
75 inline void SetTerminationMode(TerminationMode value) { m_terminationModeHasBeenSet = true; m_terminationMode = value; }
78 private:
79
80 Aws::String m_gameSessionId;
81 bool m_gameSessionIdHasBeenSet = false;
82
84 bool m_terminationModeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GameLift
89} // 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