1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/cognito-sync/CognitoSync_EXPORTS.h> 8 #include <aws/cognito-sync/CognitoSyncRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Http 15 { 16 class URI; 17 } //namespace Http 18 namespace CognitoSync 19 { 20 namespace Model 21 { 22 23 /** 24 * Request for a list of datasets for an identity.<p><h3>See Also:</h3> <a 25 * href="http://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasetsRequest">AWS 26 * API Reference</a></p> 27 */ 28 class AWS_COGNITOSYNC_API ListDatasetsRequest : public CognitoSyncRequest 29 { 30 public: 31 ListDatasetsRequest(); 32 33 // Service request name is the Operation name which will send this request out, 34 // each operation should has unique request name, so that we can get operation's name from this request. 35 // Note: this is not true for response, multiple operations may have the same response name, 36 // so we can not get operation's name from response. GetServiceRequestName()37 inline virtual const char* GetServiceRequestName() const override { return "ListDatasets"; } 38 39 Aws::String SerializePayload() const override; 40 41 void AddQueryStringParameters(Aws::Http::URI& uri) const override; 42 43 44 /** 45 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 46 * created by Amazon Cognito. GUID generation is unique within a region. 47 */ GetIdentityPoolId()48 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; } 49 50 /** 51 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 52 * created by Amazon Cognito. GUID generation is unique within a region. 53 */ IdentityPoolIdHasBeenSet()54 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } 55 56 /** 57 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 58 * created by Amazon Cognito. GUID generation is unique within a region. 59 */ SetIdentityPoolId(const Aws::String & value)60 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; } 61 62 /** 63 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 64 * created by Amazon Cognito. GUID generation is unique within a region. 65 */ SetIdentityPoolId(Aws::String && value)66 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); } 67 68 /** 69 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 70 * created by Amazon Cognito. GUID generation is unique within a region. 71 */ SetIdentityPoolId(const char * value)72 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); } 73 74 /** 75 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 76 * created by Amazon Cognito. GUID generation is unique within a region. 77 */ WithIdentityPoolId(const Aws::String & value)78 inline ListDatasetsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} 79 80 /** 81 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 82 * created by Amazon Cognito. GUID generation is unique within a region. 83 */ WithIdentityPoolId(Aws::String && value)84 inline ListDatasetsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} 85 86 /** 87 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 88 * created by Amazon Cognito. GUID generation is unique within a region. 89 */ WithIdentityPoolId(const char * value)90 inline ListDatasetsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} 91 92 93 /** 94 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 95 * created by Amazon Cognito. GUID generation is unique within a region. 96 */ GetIdentityId()97 inline const Aws::String& GetIdentityId() const{ return m_identityId; } 98 99 /** 100 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 101 * created by Amazon Cognito. GUID generation is unique within a region. 102 */ IdentityIdHasBeenSet()103 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; } 104 105 /** 106 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 107 * created by Amazon Cognito. GUID generation is unique within a region. 108 */ SetIdentityId(const Aws::String & value)109 inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; } 110 111 /** 112 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 113 * created by Amazon Cognito. GUID generation is unique within a region. 114 */ SetIdentityId(Aws::String && value)115 inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); } 116 117 /** 118 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 119 * created by Amazon Cognito. GUID generation is unique within a region. 120 */ SetIdentityId(const char * value)121 inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); } 122 123 /** 124 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 125 * created by Amazon Cognito. GUID generation is unique within a region. 126 */ WithIdentityId(const Aws::String & value)127 inline ListDatasetsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} 128 129 /** 130 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 131 * created by Amazon Cognito. GUID generation is unique within a region. 132 */ WithIdentityId(Aws::String && value)133 inline ListDatasetsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} 134 135 /** 136 * A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) 137 * created by Amazon Cognito. GUID generation is unique within a region. 138 */ WithIdentityId(const char * value)139 inline ListDatasetsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} 140 141 142 /** 143 * A pagination token for obtaining the next page of results. 144 */ GetNextToken()145 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 146 147 /** 148 * A pagination token for obtaining the next page of results. 149 */ NextTokenHasBeenSet()150 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 151 152 /** 153 * A pagination token for obtaining the next page of results. 154 */ SetNextToken(const Aws::String & value)155 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 156 157 /** 158 * A pagination token for obtaining the next page of results. 159 */ SetNextToken(Aws::String && value)160 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 161 162 /** 163 * A pagination token for obtaining the next page of results. 164 */ SetNextToken(const char * value)165 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 166 167 /** 168 * A pagination token for obtaining the next page of results. 169 */ WithNextToken(const Aws::String & value)170 inline ListDatasetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 171 172 /** 173 * A pagination token for obtaining the next page of results. 174 */ WithNextToken(Aws::String && value)175 inline ListDatasetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 176 177 /** 178 * A pagination token for obtaining the next page of results. 179 */ WithNextToken(const char * value)180 inline ListDatasetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 181 182 183 /** 184 * The maximum number of results to be returned. 185 */ GetMaxResults()186 inline int GetMaxResults() const{ return m_maxResults; } 187 188 /** 189 * The maximum number of results to be returned. 190 */ MaxResultsHasBeenSet()191 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 192 193 /** 194 * The maximum number of results to be returned. 195 */ SetMaxResults(int value)196 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 197 198 /** 199 * The maximum number of results to be returned. 200 */ WithMaxResults(int value)201 inline ListDatasetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 202 203 private: 204 205 Aws::String m_identityPoolId; 206 bool m_identityPoolIdHasBeenSet; 207 208 Aws::String m_identityId; 209 bool m_identityIdHasBeenSet; 210 211 Aws::String m_nextToken; 212 bool m_nextTokenHasBeenSet; 213 214 int m_maxResults; 215 bool m_maxResultsHasBeenSet; 216 }; 217 218 } // namespace Model 219 } // namespace CognitoSync 220 } // namespace Aws 221