AWS SDK for C++  0.12.9
AWS SDK for C++
ListDatasetsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace CognitoSync
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
46  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
47 
52  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
53 
58  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
59 
64  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
65 
70  inline ListDatasetsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
71 
76  inline ListDatasetsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
77 
82  inline ListDatasetsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
83 
88  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
89 
94  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
95 
100  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
101 
106  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
107 
112  inline ListDatasetsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
113 
118  inline ListDatasetsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
119 
124  inline ListDatasetsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
125 
129  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
130 
134  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
135 
139  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
140 
144  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
145 
149  inline ListDatasetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 
154  inline ListDatasetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
155 
159  inline ListDatasetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
160 
164  inline long GetMaxResults() const{ return m_maxResults; }
165 
169  inline void SetMaxResults(long value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
170 
174  inline ListDatasetsRequest& WithMaxResults(long value) { SetMaxResults(value); return *this;}
175 
176  private:
177  Aws::String m_identityPoolId;
178  bool m_identityPoolIdHasBeenSet;
179  Aws::String m_identityId;
180  bool m_identityIdHasBeenSet;
181  Aws::String m_nextToken;
182  bool m_nextTokenHasBeenSet;
183  long m_maxResults;
184  bool m_maxResultsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace CognitoSync
189 } // namespace Aws
void SetIdentityPoolId(const Aws::String &value)
ListDatasetsRequest & WithNextToken(const Aws::String &value)
ListDatasetsRequest & WithMaxResults(long value)
ListDatasetsRequest & WithIdentityPoolId(Aws::String &&value)
ListDatasetsRequest & WithIdentityId(const char *value)
ListDatasetsRequest & WithIdentityId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListDatasetsRequest & WithIdentityPoolId(const Aws::String &value)
#define AWS_COGNITOSYNC_API
ListDatasetsRequest & WithIdentityPoolId(const char *value)
ListDatasetsRequest & WithIdentityId(Aws::String &&value)
ListDatasetsRequest & WithNextToken(Aws::String &&value)
const Aws::String & GetIdentityPoolId() const
void SetIdentityId(const Aws::String &value)
JSON (JavaScript Object Notation).
ListDatasetsRequest & WithNextToken(const char *value)