AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
SuspendGameServerGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/GameServerGroupAction.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API SuspendGameServerGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SuspendGameServerGroup"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetGameServerGroupName() const { return m_gameServerGroupName; }
41 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
42 template <typename GameServerGroupNameT = Aws::String>
43 void SetGameServerGroupName(GameServerGroupNameT&& value) {
44 m_gameServerGroupNameHasBeenSet = true;
45 m_gameServerGroupName = std::forward<GameServerGroupNameT>(value);
46 }
47 template <typename GameServerGroupNameT = Aws::String>
49 SetGameServerGroupName(std::forward<GameServerGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<GameServerGroupAction>& GetSuspendActions() const { return m_suspendActions; }
59 inline bool SuspendActionsHasBeenSet() const { return m_suspendActionsHasBeenSet; }
60 template <typename SuspendActionsT = Aws::Vector<GameServerGroupAction>>
61 void SetSuspendActions(SuspendActionsT&& value) {
62 m_suspendActionsHasBeenSet = true;
63 m_suspendActions = std::forward<SuspendActionsT>(value);
64 }
65 template <typename SuspendActionsT = Aws::Vector<GameServerGroupAction>>
67 SetSuspendActions(std::forward<SuspendActionsT>(value));
68 return *this;
69 }
71 m_suspendActionsHasBeenSet = true;
72 m_suspendActions.push_back(value);
73 return *this;
74 }
76 private:
77 Aws::String m_gameServerGroupName;
78 bool m_gameServerGroupNameHasBeenSet = false;
79
81 bool m_suspendActionsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GameLift
86} // namespace Aws
AWS_GAMELIFT_API SuspendGameServerGroupRequest()=default
AWS_GAMELIFT_API Aws::String SerializePayload() const override
SuspendGameServerGroupRequest & WithSuspendActions(SuspendActionsT &&value)
SuspendGameServerGroupRequest & WithGameServerGroupName(GameServerGroupNameT &&value)
SuspendGameServerGroupRequest & AddSuspendActions(GameServerGroupAction value)
const Aws::Vector< GameServerGroupAction > & GetSuspendActions() const
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector