AWS SDK for C++  1.8.71
AWS SDK for C++
DeleteGameServerGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GameLift
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "DeleteGameServerGroup"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
42  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
43 
48  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
49 
54  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
55 
60  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
61 
66  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
67 
72  inline DeleteGameServerGroupRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
73 
78  inline DeleteGameServerGroupRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
79 
84  inline DeleteGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
85 
86 
97  inline const GameServerGroupDeleteOption& GetDeleteOption() const{ return m_deleteOption; }
98 
109  inline bool DeleteOptionHasBeenSet() const { return m_deleteOptionHasBeenSet; }
110 
121  inline void SetDeleteOption(const GameServerGroupDeleteOption& value) { m_deleteOptionHasBeenSet = true; m_deleteOption = value; }
122 
133  inline void SetDeleteOption(GameServerGroupDeleteOption&& value) { m_deleteOptionHasBeenSet = true; m_deleteOption = std::move(value); }
134 
145  inline DeleteGameServerGroupRequest& WithDeleteOption(const GameServerGroupDeleteOption& value) { SetDeleteOption(value); return *this;}
146 
157  inline DeleteGameServerGroupRequest& WithDeleteOption(GameServerGroupDeleteOption&& value) { SetDeleteOption(std::move(value)); return *this;}
158 
159  private:
160 
161  Aws::String m_gameServerGroupName;
162  bool m_gameServerGroupNameHasBeenSet;
163 
164  GameServerGroupDeleteOption m_deleteOption;
165  bool m_deleteOptionHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace GameLift
170 } // namespace Aws
DeleteGameServerGroupRequest & WithGameServerGroupName(const char *value)
const GameServerGroupDeleteOption & GetDeleteOption() const
#define AWS_GAMELIFT_API
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DeleteGameServerGroupRequest & WithDeleteOption(const GameServerGroupDeleteOption &value)
DeleteGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
DeleteGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
DeleteGameServerGroupRequest & WithDeleteOption(GameServerGroupDeleteOption &&value)
void SetDeleteOption(const GameServerGroupDeleteOption &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDeleteOption(GameServerGroupDeleteOption &&value)