AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ClaimGameServerRequest.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/ClaimFilterOption.h>
11
12#include <utility>
13
14namespace Aws {
15namespace GameLift {
16namespace Model {
17
21 public:
22 AWS_GAMELIFT_API ClaimGameServerRequest() = 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 "ClaimGameServer"; }
29
30 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
31
33
35
41 inline const Aws::String& GetGameServerGroupName() const { return m_gameServerGroupName; }
42 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
43 template <typename GameServerGroupNameT = Aws::String>
44 void SetGameServerGroupName(GameServerGroupNameT&& value) {
45 m_gameServerGroupNameHasBeenSet = true;
46 m_gameServerGroupName = std::forward<GameServerGroupNameT>(value);
47 }
48 template <typename GameServerGroupNameT = Aws::String>
49 ClaimGameServerRequest& WithGameServerGroupName(GameServerGroupNameT&& value) {
50 SetGameServerGroupName(std::forward<GameServerGroupNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetGameServerId() const { return m_gameServerId; }
62 inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
63 template <typename GameServerIdT = Aws::String>
64 void SetGameServerId(GameServerIdT&& value) {
65 m_gameServerIdHasBeenSet = true;
66 m_gameServerId = std::forward<GameServerIdT>(value);
67 }
68 template <typename GameServerIdT = Aws::String>
69 ClaimGameServerRequest& WithGameServerId(GameServerIdT&& value) {
70 SetGameServerId(std::forward<GameServerIdT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetGameServerData() const { return m_gameServerData; }
82 inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; }
83 template <typename GameServerDataT = Aws::String>
84 void SetGameServerData(GameServerDataT&& value) {
85 m_gameServerDataHasBeenSet = true;
86 m_gameServerData = std::forward<GameServerDataT>(value);
87 }
88 template <typename GameServerDataT = Aws::String>
89 ClaimGameServerRequest& WithGameServerData(GameServerDataT&& value) {
90 SetGameServerData(std::forward<GameServerDataT>(value));
91 return *this;
92 }
94
96
99 inline const ClaimFilterOption& GetFilterOption() const { return m_filterOption; }
100 inline bool FilterOptionHasBeenSet() const { return m_filterOptionHasBeenSet; }
101 template <typename FilterOptionT = ClaimFilterOption>
102 void SetFilterOption(FilterOptionT&& value) {
103 m_filterOptionHasBeenSet = true;
104 m_filterOption = std::forward<FilterOptionT>(value);
105 }
106 template <typename FilterOptionT = ClaimFilterOption>
107 ClaimGameServerRequest& WithFilterOption(FilterOptionT&& value) {
108 SetFilterOption(std::forward<FilterOptionT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_gameServerGroupName;
114
115 Aws::String m_gameServerId;
116
117 Aws::String m_gameServerData;
118
119 ClaimFilterOption m_filterOption;
120 bool m_gameServerGroupNameHasBeenSet = false;
121 bool m_gameServerIdHasBeenSet = false;
122 bool m_gameServerDataHasBeenSet = false;
123 bool m_filterOptionHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GameLift
128} // namespace Aws
AWS_GAMELIFT_API ClaimGameServerRequest()=default
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ClaimGameServerRequest & WithGameServerData(GameServerDataT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ClaimGameServerRequest & WithGameServerId(GameServerIdT &&value)
void SetGameServerGroupName(GameServerGroupNameT &&value)
ClaimGameServerRequest & WithGameServerGroupName(GameServerGroupNameT &&value)
const ClaimFilterOption & GetFilterOption() const
ClaimGameServerRequest & WithFilterOption(FilterOptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String