AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListGameServersRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/SortOrder.h>
11#include <utility>
12
13namespace Aws
14{
15namespace GameLift
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GAMELIFT_API ListGameServersRequest() = default;
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 "ListGameServers"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetGameServerGroupName() const { return m_gameServerGroupName; }
44 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
45 template<typename GameServerGroupNameT = Aws::String>
46 void SetGameServerGroupName(GameServerGroupNameT&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::forward<GameServerGroupNameT>(value); }
47 template<typename GameServerGroupNameT = Aws::String>
48 ListGameServersRequest& WithGameServerGroupName(GameServerGroupNameT&& value) { SetGameServerGroupName(std::forward<GameServerGroupNameT>(value)); return *this;}
50
52
58 inline SortOrder GetSortOrder() const { return m_sortOrder; }
59 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
60 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
61 inline ListGameServersRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
63
65
69 inline int GetLimit() const { return m_limit; }
70 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
71 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
72 inline ListGameServersRequest& WithLimit(int value) { SetLimit(value); return *this;}
74
76
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
83 template<typename NextTokenT = Aws::String>
84 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
85 template<typename NextTokenT = Aws::String>
86 ListGameServersRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
88 private:
89
90 Aws::String m_gameServerGroupName;
91 bool m_gameServerGroupNameHasBeenSet = false;
92
93 SortOrder m_sortOrder{SortOrder::NOT_SET};
94 bool m_sortOrderHasBeenSet = false;
95
96 int m_limit{0};
97 bool m_limitHasBeenSet = false;
98
99 Aws::String m_nextToken;
100 bool m_nextTokenHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace GameLift
105} // namespace Aws
ListGameServersRequest & WithSortOrder(SortOrder value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetGameServerGroupName(GameServerGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
ListGameServersRequest & WithGameServerGroupName(GameServerGroupNameT &&value)
ListGameServersRequest & WithNextToken(NextTokenT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AWS_GAMELIFT_API ListGameServersRequest()=default
ListGameServersRequest & WithLimit(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String