AWS SDK for C++  1.9.18
AWS SDK for C++
SuspendGameServerGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "SuspendGameServerGroup"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
44 
49  inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
50 
55  inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
56 
61  inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
62 
67  inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
68 
73  inline SuspendGameServerGroupRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
74 
79  inline SuspendGameServerGroupRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
80 
85  inline SuspendGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
86 
87 
91  inline const Aws::Vector<GameServerGroupAction>& GetSuspendActions() const{ return m_suspendActions; }
92 
96  inline bool SuspendActionsHasBeenSet() const { return m_suspendActionsHasBeenSet; }
97 
101  inline void SetSuspendActions(const Aws::Vector<GameServerGroupAction>& value) { m_suspendActionsHasBeenSet = true; m_suspendActions = value; }
102 
106  inline void SetSuspendActions(Aws::Vector<GameServerGroupAction>&& value) { m_suspendActionsHasBeenSet = true; m_suspendActions = std::move(value); }
107 
111  inline SuspendGameServerGroupRequest& WithSuspendActions(const Aws::Vector<GameServerGroupAction>& value) { SetSuspendActions(value); return *this;}
112 
116  inline SuspendGameServerGroupRequest& WithSuspendActions(Aws::Vector<GameServerGroupAction>&& value) { SetSuspendActions(std::move(value)); return *this;}
117 
121  inline SuspendGameServerGroupRequest& AddSuspendActions(const GameServerGroupAction& value) { m_suspendActionsHasBeenSet = true; m_suspendActions.push_back(value); return *this; }
122 
126  inline SuspendGameServerGroupRequest& AddSuspendActions(GameServerGroupAction&& value) { m_suspendActionsHasBeenSet = true; m_suspendActions.push_back(std::move(value)); return *this; }
127 
128  private:
129 
130  Aws::String m_gameServerGroupName;
131  bool m_gameServerGroupNameHasBeenSet;
132 
133  Aws::Vector<GameServerGroupAction> m_suspendActions;
134  bool m_suspendActionsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace GameLift
139 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::SuspendGameServerGroupRequest::SetSuspendActions
void SetSuspendActions(const Aws::Vector< GameServerGroupAction > &value)
Definition: SuspendGameServerGroupRequest.h:101
Aws::GameLift::Model::SuspendGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: SuspendGameServerGroupRequest.h:55
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::SuspendGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: SuspendGameServerGroupRequest.h:67
Aws::GameLift::Model::SuspendGameServerGroupRequest::AddSuspendActions
SuspendGameServerGroupRequest & AddSuspendActions(GameServerGroupAction &&value)
Definition: SuspendGameServerGroupRequest.h:126
Aws::GameLift::Model::SuspendGameServerGroupRequest::WithSuspendActions
SuspendGameServerGroupRequest & WithSuspendActions(const Aws::Vector< GameServerGroupAction > &value)
Definition: SuspendGameServerGroupRequest.h:111
AWSVector.h
Aws::GameLift::Model::SuspendGameServerGroupRequest::SuspendGameServerGroupRequest
SuspendGameServerGroupRequest()
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::SuspendGameServerGroupRequest::GetSuspendActions
const Aws::Vector< GameServerGroupAction > & GetSuspendActions() const
Definition: SuspendGameServerGroupRequest.h:91
Aws::GameLift::Model::SuspendGameServerGroupRequest
Definition: SuspendGameServerGroupRequest.h:24
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::SuspendGameServerGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::SuspendGameServerGroupRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: SuspendGameServerGroupRequest.h:43
Aws::GameLift::Model::GameServerGroupAction
GameServerGroupAction
Definition: GameServerGroupAction.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::SuspendGameServerGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::SuspendGameServerGroupRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: SuspendGameServerGroupRequest.h:49
Aws::GameLift::Model::SuspendGameServerGroupRequest::AddSuspendActions
SuspendGameServerGroupRequest & AddSuspendActions(const GameServerGroupAction &value)
Definition: SuspendGameServerGroupRequest.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::SuspendGameServerGroupRequest::WithGameServerGroupName
SuspendGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
Definition: SuspendGameServerGroupRequest.h:79
Aws::GameLift::Model::SuspendGameServerGroupRequest::WithSuspendActions
SuspendGameServerGroupRequest & WithSuspendActions(Aws::Vector< GameServerGroupAction > &&value)
Definition: SuspendGameServerGroupRequest.h:116
Aws::GameLift::Model::SuspendGameServerGroupRequest::WithGameServerGroupName
SuspendGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
Definition: SuspendGameServerGroupRequest.h:73
Aws::GameLift::Model::SuspendGameServerGroupRequest::SetSuspendActions
void SetSuspendActions(Aws::Vector< GameServerGroupAction > &&value)
Definition: SuspendGameServerGroupRequest.h:106
Aws::GameLift::Model::SuspendGameServerGroupRequest::SuspendActionsHasBeenSet
bool SuspendActionsHasBeenSet() const
Definition: SuspendGameServerGroupRequest.h:96
GameServerGroupAction.h
Aws::GameLift::Model::SuspendGameServerGroupRequest::WithGameServerGroupName
SuspendGameServerGroupRequest & WithGameServerGroupName(const char *value)
Definition: SuspendGameServerGroupRequest.h:85
Aws::GameLift::Model::SuspendGameServerGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SuspendGameServerGroupRequest.h:32
Aws::GameLift::Model::SuspendGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: SuspendGameServerGroupRequest.h:61