AWS SDK for C++  1.8.71
AWS SDK for C++
ListItemsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace MediaStoreData
19 {
20 namespace Model
21 {
22 
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 "ListItems"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetPath() const{ return m_path; }
46 
51  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
52 
57  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
58 
63  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
64 
69  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
70 
75  inline ListItemsRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
76 
81  inline ListItemsRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
82 
87  inline ListItemsRequest& WithPath(const char* value) { SetPath(value); return *this;}
88 
89 
100  inline int GetMaxResults() const{ return m_maxResults; }
101 
112  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 
124  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
125 
136  inline ListItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
137 
138 
148  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
149 
159  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
160 
170  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
171 
181  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
182 
192  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
193 
203  inline ListItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
204 
214  inline ListItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
215 
225  inline ListItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
226 
227  private:
228 
229  Aws::String m_path;
230  bool m_pathHasBeenSet;
231 
232  int m_maxResults;
233  bool m_maxResultsHasBeenSet;
234 
235  Aws::String m_nextToken;
236  bool m_nextTokenHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace MediaStoreData
241 } // namespace Aws
void SetPath(const Aws::String &value)
ListItemsRequest & WithMaxResults(int value)
#define AWS_MEDIASTOREDATA_API
ListItemsRequest & WithPath(Aws::String &&value)
ListItemsRequest & WithNextToken(const Aws::String &value)
ListItemsRequest & WithNextToken(Aws::String &&value)
ListItemsRequest & WithNextToken(const char *value)
ListItemsRequest & WithPath(const char *value)
virtual const char * GetServiceRequestName() const override
ListItemsRequest & WithPath(const Aws::String &value)
void SetNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97