AWS SDK for C++  1.9.108
AWS SDK for C++
ResumeGameServerGroupRequest.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 "ResumeGameServerGroup"; }
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 ResumeGameServerGroupRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;}
74 
79  inline ResumeGameServerGroupRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
80 
85  inline ResumeGameServerGroupRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
86 
87 
91  inline const Aws::Vector<GameServerGroupAction>& GetResumeActions() const{ return m_resumeActions; }
92 
96  inline bool ResumeActionsHasBeenSet() const { return m_resumeActionsHasBeenSet; }
97 
101  inline void SetResumeActions(const Aws::Vector<GameServerGroupAction>& value) { m_resumeActionsHasBeenSet = true; m_resumeActions = value; }
102 
106  inline void SetResumeActions(Aws::Vector<GameServerGroupAction>&& value) { m_resumeActionsHasBeenSet = true; m_resumeActions = std::move(value); }
107 
111  inline ResumeGameServerGroupRequest& WithResumeActions(const Aws::Vector<GameServerGroupAction>& value) { SetResumeActions(value); return *this;}
112 
116  inline ResumeGameServerGroupRequest& WithResumeActions(Aws::Vector<GameServerGroupAction>&& value) { SetResumeActions(std::move(value)); return *this;}
117 
121  inline ResumeGameServerGroupRequest& AddResumeActions(const GameServerGroupAction& value) { m_resumeActionsHasBeenSet = true; m_resumeActions.push_back(value); return *this; }
122 
126  inline ResumeGameServerGroupRequest& AddResumeActions(GameServerGroupAction&& value) { m_resumeActionsHasBeenSet = true; m_resumeActions.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_resumeActions;
134  bool m_resumeActionsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace GameLift
139 } // namespace Aws
Aws::GameLift::Model::ResumeGameServerGroupRequest::WithResumeActions
ResumeGameServerGroupRequest & WithResumeActions(Aws::Vector< GameServerGroupAction > &&value)
Definition: ResumeGameServerGroupRequest.h:116
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::ResumeGameServerGroupRequest::GameServerGroupNameHasBeenSet
bool GameServerGroupNameHasBeenSet() const
Definition: ResumeGameServerGroupRequest.h:49
Aws::GameLift::Model::ResumeGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(Aws::String &&value)
Definition: ResumeGameServerGroupRequest.h:61
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::ResumeGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const char *value)
Definition: ResumeGameServerGroupRequest.h:67
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::ResumeGameServerGroupRequest::ResumeGameServerGroupRequest
ResumeGameServerGroupRequest()
Aws::GameLift::Model::ResumeGameServerGroupRequest::WithGameServerGroupName
ResumeGameServerGroupRequest & WithGameServerGroupName(const Aws::String &value)
Definition: ResumeGameServerGroupRequest.h:73
AWSVector.h
Aws::GameLift::Model::ResumeGameServerGroupRequest::SetResumeActions
void SetResumeActions(Aws::Vector< GameServerGroupAction > &&value)
Definition: ResumeGameServerGroupRequest.h:106
Aws::GameLift::Model::ResumeGameServerGroupRequest::WithResumeActions
ResumeGameServerGroupRequest & WithResumeActions(const Aws::Vector< GameServerGroupAction > &value)
Definition: ResumeGameServerGroupRequest.h:111
Aws::GameLift::Model::ResumeGameServerGroupRequest::WithGameServerGroupName
ResumeGameServerGroupRequest & WithGameServerGroupName(Aws::String &&value)
Definition: ResumeGameServerGroupRequest.h:79
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::ResumeGameServerGroupRequest::GetResumeActions
const Aws::Vector< GameServerGroupAction > & GetResumeActions() const
Definition: ResumeGameServerGroupRequest.h:91
Aws::GameLift::Model::ResumeGameServerGroupRequest::ResumeActionsHasBeenSet
bool ResumeActionsHasBeenSet() const
Definition: ResumeGameServerGroupRequest.h:96
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::ResumeGameServerGroupRequest::AddResumeActions
ResumeGameServerGroupRequest & AddResumeActions(GameServerGroupAction &&value)
Definition: ResumeGameServerGroupRequest.h:126
Aws::GameLift::Model::ResumeGameServerGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResumeGameServerGroupRequest.h:32
Aws::GameLift::Model::ResumeGameServerGroupRequest::AddResumeActions
ResumeGameServerGroupRequest & AddResumeActions(const GameServerGroupAction &value)
Definition: ResumeGameServerGroupRequest.h:121
Aws::GameLift::Model::ResumeGameServerGroupRequest::SetGameServerGroupName
void SetGameServerGroupName(const Aws::String &value)
Definition: ResumeGameServerGroupRequest.h:55
Aws::GameLift::Model::GameServerGroupAction
GameServerGroupAction
Definition: GameServerGroupAction.h:17
Aws::GameLift::Model::ResumeGameServerGroupRequest::WithGameServerGroupName
ResumeGameServerGroupRequest & WithGameServerGroupName(const char *value)
Definition: ResumeGameServerGroupRequest.h:85
Aws::GameLift::Model::ResumeGameServerGroupRequest
Definition: ResumeGameServerGroupRequest.h:24
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::ResumeGameServerGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::ResumeGameServerGroupRequest::SetResumeActions
void SetResumeActions(const Aws::Vector< GameServerGroupAction > &value)
Definition: ResumeGameServerGroupRequest.h:101
GameServerGroupAction.h
Aws::GameLift::Model::ResumeGameServerGroupRequest::GetGameServerGroupName
const Aws::String & GetGameServerGroupName() const
Definition: ResumeGameServerGroupRequest.h:43
Aws::GameLift::Model::ResumeGameServerGroupRequest::SerializePayload
Aws::String SerializePayload() const override