AWS SDK for C++  1.8.51
AWS SDK for C++
ListScriptsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ListScripts"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
41  inline int GetLimit() const{ return m_limit; }
42 
47  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
48 
53  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
54 
59  inline ListScriptsRequest& WithLimit(int value) { SetLimit(value); return *this;}
60 
61 
67  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
68 
74  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 
81  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 
88  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
89 
95  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 
102  inline ListScriptsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
103 
109  inline ListScriptsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 
116  inline ListScriptsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 
118  private:
119 
120  int m_limit;
121  bool m_limitHasBeenSet;
122 
123  Aws::String m_nextToken;
124  bool m_nextTokenHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace GameLift
129 } // namespace Aws
#define AWS_GAMELIFT_API
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ListScriptsRequest & WithNextToken(const char *value)
void SetNextToken(const Aws::String &value)
ListScriptsRequest & WithLimit(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListScriptsRequest & WithNextToken(const Aws::String &value)
ListScriptsRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const