AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateRecordsRequest.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
21 
22 namespace Aws
23 {
24 namespace CognitoSync
25 {
26 namespace Model
27 {
28 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
45  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
46 
51  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
52 
57  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
58 
63  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
64 
69  inline UpdateRecordsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
70 
75  inline UpdateRecordsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
76 
81  inline UpdateRecordsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
82 
87  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
88 
93  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
94 
99  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
100 
105  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
106 
111  inline UpdateRecordsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
112 
117  inline UpdateRecordsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
118 
123  inline UpdateRecordsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
124 
129  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
130 
135  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
136 
141  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
142 
147  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
148 
153  inline UpdateRecordsRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
154 
159  inline UpdateRecordsRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(value); return *this;}
160 
165  inline UpdateRecordsRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
166 
170  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
171 
175  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
176 
180  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
181 
185  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
186 
190  inline UpdateRecordsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
191 
195  inline UpdateRecordsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(value); return *this;}
196 
200  inline UpdateRecordsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
201 
205  inline const Aws::Vector<RecordPatch>& GetRecordPatches() const{ return m_recordPatches; }
206 
210  inline void SetRecordPatches(const Aws::Vector<RecordPatch>& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = value; }
211 
215  inline void SetRecordPatches(Aws::Vector<RecordPatch>&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = value; }
216 
220  inline UpdateRecordsRequest& WithRecordPatches(const Aws::Vector<RecordPatch>& value) { SetRecordPatches(value); return *this;}
221 
225  inline UpdateRecordsRequest& WithRecordPatches(Aws::Vector<RecordPatch>&& value) { SetRecordPatches(value); return *this;}
226 
230  inline UpdateRecordsRequest& AddRecordPatches(const RecordPatch& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(value); return *this; }
231 
235  inline UpdateRecordsRequest& AddRecordPatches(RecordPatch&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(value); return *this; }
236 
241  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
242 
247  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
248 
253  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
254 
259  inline void SetSyncSessionToken(const char* value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken.assign(value); }
260 
265  inline UpdateRecordsRequest& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
266 
271  inline UpdateRecordsRequest& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(value); return *this;}
272 
277  inline UpdateRecordsRequest& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
278 
283  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
284 
289  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
290 
295  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
296 
301  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
302 
307  inline UpdateRecordsRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
308 
313  inline UpdateRecordsRequest& WithClientContext(Aws::String&& value) { SetClientContext(value); return *this;}
314 
319  inline UpdateRecordsRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
320 
321  private:
322  Aws::String m_identityPoolId;
323  bool m_identityPoolIdHasBeenSet;
324  Aws::String m_identityId;
325  bool m_identityIdHasBeenSet;
326  Aws::String m_datasetName;
327  bool m_datasetNameHasBeenSet;
328  Aws::String m_deviceId;
329  bool m_deviceIdHasBeenSet;
330  Aws::Vector<RecordPatch> m_recordPatches;
331  bool m_recordPatchesHasBeenSet;
332  Aws::String m_syncSessionToken;
333  bool m_syncSessionTokenHasBeenSet;
334  Aws::String m_clientContext;
335  bool m_clientContextHasBeenSet;
336  };
337 
338 } // namespace Model
339 } // namespace CognitoSync
340 } // namespace Aws
UpdateRecordsRequest & WithSyncSessionToken(const char *value)
UpdateRecordsRequest & WithRecordPatches(const Aws::Vector< RecordPatch > &value)
UpdateRecordsRequest & WithIdentityId(Aws::String &&value)
UpdateRecordsRequest & WithClientContext(const char *value)
void SetRecordPatches(const Aws::Vector< RecordPatch > &value)
const Aws::Vector< RecordPatch > & GetRecordPatches() const
void SetRecordPatches(Aws::Vector< RecordPatch > &&value)
void SetSyncSessionToken(const Aws::String &value)
UpdateRecordsRequest & WithClientContext(const Aws::String &value)
UpdateRecordsRequest & WithIdentityPoolId(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateRecordsRequest & WithClientContext(Aws::String &&value)
UpdateRecordsRequest & WithIdentityId(const char *value)
UpdateRecordsRequest & WithDeviceId(const char *value)
void SetIdentityPoolId(const Aws::String &value)
UpdateRecordsRequest & WithDeviceId(const Aws::String &value)
UpdateRecordsRequest & AddRecordPatches(RecordPatch &&value)
UpdateRecordsRequest & WithIdentityPoolId(const Aws::String &value)
UpdateRecordsRequest & WithDatasetName(const Aws::String &value)
UpdateRecordsRequest & WithIdentityId(const Aws::String &value)
UpdateRecordsRequest & WithIdentityPoolId(Aws::String &&value)
UpdateRecordsRequest & WithDatasetName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateRecordsRequest & WithRecordPatches(Aws::Vector< RecordPatch > &&value)
UpdateRecordsRequest & WithDeviceId(Aws::String &&value)
UpdateRecordsRequest & WithSyncSessionToken(Aws::String &&value)
#define AWS_COGNITOSYNC_API
UpdateRecordsRequest & WithDatasetName(const char *value)
UpdateRecordsRequest & WithSyncSessionToken(const Aws::String &value)
JSON (JavaScript Object Notation).
UpdateRecordsRequest & AddRecordPatches(const RecordPatch &value)