AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
46 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
47 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
49 inline ListGameServersRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
50 inline ListGameServersRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
52
54
60 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
61 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
62 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
63 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
64 inline ListGameServersRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
65 inline ListGameServersRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
67
69
73 inline int GetLimit() const{ return m_limit; }
74 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
75 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
76 inline ListGameServersRequest& WithLimit(int value) { SetLimit(value); return *this;}
78
80
85 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
88 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
89 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
90 inline ListGameServersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
91 inline ListGameServersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 inline ListGameServersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
94 private:
95
96 Aws::String m_gameServerGroupName;
97 bool m_gameServerGroupNameHasBeenSet = false;
98
99 SortOrder m_sortOrder;
100 bool m_sortOrderHasBeenSet = false;
101
102 int m_limit;
103 bool m_limitHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GameLift
111} // namespace Aws
ListGameServersRequest & WithGameServerGroupName(const char *value)
ListGameServersRequest & WithSortOrder(const SortOrder &value)
ListGameServersRequest & WithNextToken(Aws::String &&value)
ListGameServersRequest & WithGameServerGroupName(Aws::String &&value)
ListGameServersRequest & WithNextToken(const char *value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListGameServersRequest & WithSortOrder(SortOrder &&value)
void SetGameServerGroupName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListGameServersRequest & WithNextToken(const Aws::String &value)
ListGameServersRequest & WithGameServerGroupName(const Aws::String &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
ListGameServersRequest & WithLimit(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String