AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeGameServerInstancesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace GameLift
16{
17namespace Model
18{
19
23 {
24 public:
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 "DescribeGameServerInstances"; }
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); }
50 inline DescribeGameServerInstancesRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
61 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
62 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
63 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
66 inline DescribeGameServerInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
67 inline DescribeGameServerInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
68 inline DescribeGameServerInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
70
72
76 inline int GetLimit() const{ return m_limit; }
77 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
78 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
79 inline DescribeGameServerInstancesRequest& WithLimit(int value) { SetLimit(value); return *this;}
81
83
88 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
91 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
92 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
93 inline DescribeGameServerInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
94 inline DescribeGameServerInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 inline DescribeGameServerInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97 private:
98
99 Aws::String m_gameServerGroupName;
100 bool m_gameServerGroupNameHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_instanceIds;
103 bool m_instanceIdsHasBeenSet = false;
104
105 int m_limit;
106 bool m_limitHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GameLift
114} // namespace Aws
DescribeGameServerInstancesRequest & AddInstanceIds(const Aws::String &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
DescribeGameServerInstancesRequest & WithGameServerGroupName(Aws::String &&value)
DescribeGameServerInstancesRequest & WithGameServerGroupName(const char *value)
DescribeGameServerInstancesRequest & AddInstanceIds(const char *value)
DescribeGameServerInstancesRequest & WithGameServerGroupName(const Aws::String &value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeGameServerInstancesRequest & WithNextToken(Aws::String &&value)
DescribeGameServerInstancesRequest & AddInstanceIds(Aws::String &&value)
DescribeGameServerInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
DescribeGameServerInstancesRequest & WithNextToken(const Aws::String &value)
DescribeGameServerInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeGameServerInstancesRequest & WithNextToken(const char *value)
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