AWS SDK for C++  1.9.16
AWS SDK for C++
DeregisterGameServerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "DeregisterGameServer"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
42 
47  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
48 
53  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
54 
59  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
60 
65  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
66 
71  inline DeregisterGameServerRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
72 
77  inline DeregisterGameServerRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
78 
83  inline DeregisterGameServerRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
84 
85 
89  inline const Aws::String& GetGameServerId() const{ return m_gameServerId; }
90 
94  inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; }
95 
99  inline void SetGameServerId(const Aws::String& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = value; }
100 
104  inline void SetGameServerId(Aws::String&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::move(value); }
105 
109  inline void SetGameServerId(const char* value) { m_gameServerIdHasBeenSet = true; m_gameServerId.assign(value); }
110 
114  inline DeregisterGameServerRequest& WithGameServerId(const Aws::String& value) { SetGameServerId(value); return *this;}
115 
119  inline DeregisterGameServerRequest& WithGameServerId(Aws::String&& value) { SetGameServerId(std::move(value)); return *this;}
120 
124  inline DeregisterGameServerRequest& WithGameServerId(const char* value) { SetGameServerId(value); return *this;}
125 
126  private:
127 
128  Aws::String m_gameServerGroupName;
129  bool m_gameServerGroupNameHasBeenSet;
130 
131  Aws::String m_gameServerId;
132  bool m_gameServerIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace GameLift
137 } // namespace Aws
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerId
DeregisterGameServerRequest & WithGameServerId(const char *value)
Definition: DeregisterGameServerRequest.h:124
Aws::GameLift::Model::DeregisterGameServerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: DeregisterGameServerRequest.h:53
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerGroupName
DeregisterGameServerRequest & WithGameServerGroupName(const Aws::String &value)
Definition: DeregisterGameServerRequest.h:71
Aws::GameLift::Model::DeregisterGameServerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeregisterGameServerRequest.h:30
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerGroupName
DeregisterGameServerRequest & WithGameServerGroupName(const char *value)
Definition: DeregisterGameServerRequest.h:83
Aws::GameLift::Model::DeregisterGameServerRequest::GetGameServerId
const Aws::String & GetGameServerId() const
Definition: DeregisterGameServerRequest.h:89
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::DeregisterGameServerRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: DeregisterGameServerRequest.h:47
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerGroupName
DeregisterGameServerRequest & WithGameServerGroupName(Aws::String &&value)
Definition: DeregisterGameServerRequest.h:77
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerId
void SetGameServerId(const char *value)
Definition: DeregisterGameServerRequest.h:109
Aws::GameLift::Model::DeregisterGameServerRequest
Definition: DeregisterGameServerRequest.h:22
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: DeregisterGameServerRequest.h:65
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerId
void SetGameServerId(const Aws::String &value)
Definition: DeregisterGameServerRequest.h:99
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerId
DeregisterGameServerRequest & WithGameServerId(const Aws::String &value)
Definition: DeregisterGameServerRequest.h:114
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: DeregisterGameServerRequest.h:59
Aws::GameLift::Model::DeregisterGameServerRequest::SetGameServerId
void SetGameServerId(Aws::String &&value)
Definition: DeregisterGameServerRequest.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::DeregisterGameServerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::DeregisterGameServerRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: DeregisterGameServerRequest.h:41
Aws::GameLift::Model::DeregisterGameServerRequest::DeregisterGameServerRequest
DeregisterGameServerRequest()
Aws::GameLift::Model::DeregisterGameServerRequest::WithGameServerId
DeregisterGameServerRequest & WithGameServerId(Aws::String &&value)
Definition: DeregisterGameServerRequest.h:119
Aws::GameLift::Model::DeregisterGameServerRequest::GameServerIdHasBeenSet
bool GameServerIdHasBeenSet() const
Definition: DeregisterGameServerRequest.h:94