AWS SDK for C++  1.8.71
AWS SDK for C++
ListBuildsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GameLift
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListBuilds"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
52  inline const BuildStatus& GetStatus() const{ return m_status; }
53 
65  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 
78  inline void SetStatus(const BuildStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 
91  inline void SetStatus(BuildStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 
104  inline ListBuildsRequest& WithStatus(const BuildStatus& value) { SetStatus(value); return *this;}
105 
117  inline ListBuildsRequest& WithStatus(BuildStatus&& value) { SetStatus(std::move(value)); return *this;}
118 
119 
124  inline int GetLimit() const{ return m_limit; }
125 
130  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
131 
136  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
137 
142  inline ListBuildsRequest& WithLimit(int value) { SetLimit(value); return *this;}
143 
144 
150  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
151 
157  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
158 
164  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
165 
171  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
172 
178  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
179 
185  inline ListBuildsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
186 
192  inline ListBuildsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
193 
199  inline ListBuildsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
200 
201  private:
202 
203  BuildStatus m_status;
204  bool m_statusHasBeenSet;
205 
206  int m_limit;
207  bool m_limitHasBeenSet;
208 
209  Aws::String m_nextToken;
210  bool m_nextTokenHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace GameLift
215 } // namespace Aws
ListBuildsRequest & WithNextToken(const char *value)
ListBuildsRequest & WithNextToken(const Aws::String &value)
#define AWS_GAMELIFT_API
const BuildStatus & GetStatus() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::String & GetNextToken() const
ListBuildsRequest & WithStatus(const BuildStatus &value)
ListBuildsRequest & WithNextToken(Aws::String &&value)
ListBuildsRequest & WithStatus(BuildStatus &&value)
virtual const char * GetServiceRequestName() const override
void SetStatus(const BuildStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListBuildsRequest & WithLimit(int value)
void SetNextToken(const Aws::String &value)