AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
41 inline const Aws::String& GetGameSessionId() const { return m_gameSessionId; }
42 inline bool GameSessionIdHasBeenSet() const { return m_gameSessionIdHasBeenSet; }
43 template <typename GameSessionIdT = Aws::String>
44 void SetGameSessionId(GameSessionIdT&& value) {
45 m_gameSessionIdHasBeenSet = true;
46 m_gameSessionId = std::forward<GameSessionIdT>(value);
47 }
48 template <typename GameSessionIdT = Aws::String>
50 SetGameSessionId(std::forward<GameSessionIdT>(value));
51 return *this;
52 }
54
56
75 inline TerminationMode GetTerminationMode() const { return m_terminationMode; }
76 inline bool TerminationModeHasBeenSet() const { return m_terminationModeHasBeenSet; }
78 m_terminationModeHasBeenSet = true;
79 m_terminationMode = value;
80 }
82 SetTerminationMode(value);
83 return *this;
84 }
86 private:
87 Aws::String m_gameSessionId;
88
90 bool m_gameSessionIdHasBeenSet = false;
91 bool m_terminationModeHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace GameLift
96} // 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