AWS SDK for C++  1.9.20
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
Aws::MediaStoreData::Model::ListItemsRequest::WithNextToken
ListItemsRequest & WithNextToken(Aws::String &&value)
Definition: ListItemsRequest.h:214
MediaStoreData_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::MediaStoreData::Model::ListItemsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListItemsRequest.h:192
Aws::MediaStoreData::Model::ListItemsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListItemsRequest.h:34
Aws::MediaStoreData::Model::ListItemsRequest::WithPath
ListItemsRequest & WithPath(const Aws::String &value)
Definition: ListItemsRequest.h:75
Aws::MediaStoreData::Model::ListItemsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListItemsRequest.h:159
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::ListItemsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListItemsRequest.h:124
Aws::MediaStoreData::Model::ListItemsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListItemsRequest.h:170
Aws::MediaStoreData::MediaStoreDataRequest
Definition: MediaStoreDataRequest.h:18
Aws::MediaStoreData::Model::ListItemsRequest::SetPath
void SetPath(Aws::String &&value)
Definition: ListItemsRequest.h:63
Aws::MediaStoreData::Model::ListItemsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaStoreData::Model::ListItemsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListItemsRequest.h:100
Aws::MediaStoreData::Model::ListItemsRequest::ListItemsRequest
ListItemsRequest()
MediaStoreDataRequest.h
Aws::MediaStoreData::Model::ListItemsRequest::SetPath
void SetPath(const char *value)
Definition: ListItemsRequest.h:69
AWSString.h
Aws::MediaStoreData::Model::ListItemsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListItemsRequest.h:181
Aws::MediaStoreData::Model::ListItemsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListItemsRequest.h:148
Aws::MediaStoreData::Model::ListItemsRequest::SetPath
void SetPath(const Aws::String &value)
Definition: ListItemsRequest.h:57
Aws::MediaStoreData::Model::ListItemsRequest::WithMaxResults
ListItemsRequest & WithMaxResults(int value)
Definition: ListItemsRequest.h:136
Aws::MediaStoreData::Model::ListItemsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListItemsRequest.h:112
Aws::MediaStoreData::Model::ListItemsRequest
Definition: ListItemsRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::ListItemsRequest::PathHasBeenSet
bool PathHasBeenSet() const
Definition: ListItemsRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::ListItemsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::MediaStoreData::Model::ListItemsRequest::WithPath
ListItemsRequest & WithPath(Aws::String &&value)
Definition: ListItemsRequest.h:81
Aws::MediaStoreData::Model::ListItemsRequest::WithNextToken
ListItemsRequest & WithNextToken(const char *value)
Definition: ListItemsRequest.h:225
Aws::MediaStoreData::Model::ListItemsRequest::GetPath
const Aws::String & GetPath() const
Definition: ListItemsRequest.h:45
Aws::MediaStoreData::Model::ListItemsRequest::WithNextToken
ListItemsRequest & WithNextToken(const Aws::String &value)
Definition: ListItemsRequest.h:203
Aws::MediaStoreData::Model::ListItemsRequest::WithPath
ListItemsRequest & WithPath(const char *value)
Definition: ListItemsRequest.h:87