AWS SDK for C++  1.8.126
AWS SDK for C++
UpdateRecordsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CognitoSync
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateRecords"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
47  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
48 
53  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
54 
59  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
60 
65  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
66 
71  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
72 
77  inline UpdateRecordsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
78 
83  inline UpdateRecordsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
84 
89  inline UpdateRecordsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
90 
91 
96  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
97 
102  inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
103 
108  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
109 
114  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
115 
120  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
121 
126  inline UpdateRecordsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
127 
132  inline UpdateRecordsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
133 
138  inline UpdateRecordsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
139 
140 
145  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
146 
151  inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
152 
157  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
158 
163  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
164 
169  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
170 
175  inline UpdateRecordsRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
176 
181  inline UpdateRecordsRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
182 
187  inline UpdateRecordsRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
188 
189 
193  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
194 
198  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
199 
203  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
204 
208  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
209 
213  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
214 
218  inline UpdateRecordsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
219 
223  inline UpdateRecordsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
224 
228  inline UpdateRecordsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
229 
230 
234  inline const Aws::Vector<RecordPatch>& GetRecordPatches() const{ return m_recordPatches; }
235 
239  inline bool RecordPatchesHasBeenSet() const { return m_recordPatchesHasBeenSet; }
240 
244  inline void SetRecordPatches(const Aws::Vector<RecordPatch>& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = value; }
245 
249  inline void SetRecordPatches(Aws::Vector<RecordPatch>&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = std::move(value); }
250 
254  inline UpdateRecordsRequest& WithRecordPatches(const Aws::Vector<RecordPatch>& value) { SetRecordPatches(value); return *this;}
255 
259  inline UpdateRecordsRequest& WithRecordPatches(Aws::Vector<RecordPatch>&& value) { SetRecordPatches(std::move(value)); return *this;}
260 
264  inline UpdateRecordsRequest& AddRecordPatches(const RecordPatch& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(value); return *this; }
265 
269  inline UpdateRecordsRequest& AddRecordPatches(RecordPatch&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(std::move(value)); return *this; }
270 
271 
276  inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
277 
282  inline bool SyncSessionTokenHasBeenSet() const { return m_syncSessionTokenHasBeenSet; }
283 
288  inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
289 
294  inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = std::move(value); }
295 
300  inline void SetSyncSessionToken(const char* value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken.assign(value); }
301 
306  inline UpdateRecordsRequest& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
307 
312  inline UpdateRecordsRequest& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(std::move(value)); return *this;}
313 
318  inline UpdateRecordsRequest& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
319 
320 
325  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
326 
331  inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
332 
337  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
338 
343  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); }
344 
349  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
350 
355  inline UpdateRecordsRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
356 
361  inline UpdateRecordsRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;}
362 
367  inline UpdateRecordsRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
368 
369  private:
370 
371  Aws::String m_identityPoolId;
372  bool m_identityPoolIdHasBeenSet;
373 
374  Aws::String m_identityId;
375  bool m_identityIdHasBeenSet;
376 
377  Aws::String m_datasetName;
378  bool m_datasetNameHasBeenSet;
379 
380  Aws::String m_deviceId;
381  bool m_deviceIdHasBeenSet;
382 
383  Aws::Vector<RecordPatch> m_recordPatches;
384  bool m_recordPatchesHasBeenSet;
385 
386  Aws::String m_syncSessionToken;
387  bool m_syncSessionTokenHasBeenSet;
388 
389  Aws::String m_clientContext;
390  bool m_clientContextHasBeenSet;
391  };
392 
393 } // namespace Model
394 } // namespace CognitoSync
395 } // namespace Aws
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDeviceId
UpdateRecordsRequest & WithDeviceId(const char *value)
Definition: UpdateRecordsRequest.h:228
Aws::CognitoSync::Model::UpdateRecordsRequest::AddRecordPatches
UpdateRecordsRequest & AddRecordPatches(RecordPatch &&value)
Definition: UpdateRecordsRequest.h:269
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:65
Aws::CognitoSync::Model::UpdateRecordsRequest::WithSyncSessionToken
UpdateRecordsRequest & WithSyncSessionToken(const char *value)
Definition: UpdateRecordsRequest.h:318
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:114
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: UpdateRecordsRequest.h:71
CognitoSync_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CognitoSync::Model::UpdateRecordsRequest::WithSyncSessionToken
UpdateRecordsRequest & WithSyncSessionToken(Aws::String &&value)
Definition: UpdateRecordsRequest.h:312
Aws::CognitoSync::Model::UpdateRecordsRequest
Definition: UpdateRecordsRequest.h:28
Aws::CognitoSync::Model::UpdateRecordsRequest::RecordPatchesHasBeenSet
bool RecordPatchesHasBeenSet() const
Definition: UpdateRecordsRequest.h:239
Aws::CognitoSync::Model::RecordPatch
Definition: RecordPatch.h:34
Aws::CognitoSync::Model::UpdateRecordsRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: UpdateRecordsRequest.h:198
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: UpdateRecordsRequest.h:120
Aws::CognitoSync::Model::UpdateRecordsRequest::ClientContextHasBeenSet
bool ClientContextHasBeenSet() const
Definition: UpdateRecordsRequest.h:331
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:203
Aws::CognitoSync::Model::UpdateRecordsRequest::UpdateRecordsRequest
UpdateRecordsRequest()
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDatasetName
UpdateRecordsRequest & WithDatasetName(const char *value)
Definition: UpdateRecordsRequest.h:187
Aws::CognitoSync::Model::UpdateRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(Aws::String &&value)
Definition: UpdateRecordsRequest.h:294
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:208
Aws::CognitoSync::Model::UpdateRecordsRequest::SetRecordPatches
void SetRecordPatches(const Aws::Vector< RecordPatch > &value)
Definition: UpdateRecordsRequest.h:244
Aws::CognitoSync::Model::UpdateRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(const Aws::String &value)
Definition: UpdateRecordsRequest.h:288
Aws::CognitoSync::Model::UpdateRecordsRequest::GetClientContext
const Aws::String & GetClientContext() const
Definition: UpdateRecordsRequest.h:325
Aws::CognitoSync::Model::UpdateRecordsRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: UpdateRecordsRequest.h:193
Aws::CognitoSync::Model::UpdateRecordsRequest::WithClientContext
UpdateRecordsRequest & WithClientContext(Aws::String &&value)
Definition: UpdateRecordsRequest.h:361
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityPoolId
UpdateRecordsRequest & WithIdentityPoolId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:77
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDeviceId
UpdateRecordsRequest & WithDeviceId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:223
Aws::CognitoSync::Model::UpdateRecordsRequest::AddRecordPatches
UpdateRecordsRequest & AddRecordPatches(const RecordPatch &value)
Definition: UpdateRecordsRequest.h:264
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CognitoSync::Model::UpdateRecordsRequest::SetClientContext
void SetClientContext(Aws::String &&value)
Definition: UpdateRecordsRequest.h:343
Aws::CognitoSync::Model::UpdateRecordsRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: UpdateRecordsRequest.h:96
AWSVector.h
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDatasetName
void SetDatasetName(const char *value)
Definition: UpdateRecordsRequest.h:169
Aws::CognitoSync::Model::UpdateRecordsRequest::SetSyncSessionToken
void SetSyncSessionToken(const char *value)
Definition: UpdateRecordsRequest.h:300
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:59
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDatasetName
void SetDatasetName(const Aws::String &value)
Definition: UpdateRecordsRequest.h:157
Aws::CognitoSync::Model::UpdateRecordsRequest::SetRecordPatches
void SetRecordPatches(Aws::Vector< RecordPatch > &&value)
Definition: UpdateRecordsRequest.h:249
Aws::CognitoSync::Model::UpdateRecordsRequest::WithRecordPatches
UpdateRecordsRequest & WithRecordPatches(Aws::Vector< RecordPatch > &&value)
Definition: UpdateRecordsRequest.h:259
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityPoolId
UpdateRecordsRequest & WithIdentityPoolId(const char *value)
Definition: UpdateRecordsRequest.h:89
Aws::CognitoSync::Model::UpdateRecordsRequest::GetDatasetName
const Aws::String & GetDatasetName() const
Definition: UpdateRecordsRequest.h:145
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityId
UpdateRecordsRequest & WithIdentityId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:126
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityId
UpdateRecordsRequest & WithIdentityId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:132
RecordPatch.h
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDatasetName
UpdateRecordsRequest & WithDatasetName(Aws::String &&value)
Definition: UpdateRecordsRequest.h:181
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDatasetName
void SetDatasetName(Aws::String &&value)
Definition: UpdateRecordsRequest.h:163
Aws::CognitoSync::Model::UpdateRecordsRequest::SetClientContext
void SetClientContext(const Aws::String &value)
Definition: UpdateRecordsRequest.h:337
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDeviceId
UpdateRecordsRequest & WithDeviceId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:218
Aws::CognitoSync::Model::UpdateRecordsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CognitoSync::Model::UpdateRecordsRequest::WithRecordPatches
UpdateRecordsRequest & WithRecordPatches(const Aws::Vector< RecordPatch > &value)
Definition: UpdateRecordsRequest.h:254
Aws::CognitoSync::Model::UpdateRecordsRequest::GetSyncSessionToken
const Aws::String & GetSyncSessionToken() const
Definition: UpdateRecordsRequest.h:276
Aws::CognitoSync::Model::UpdateRecordsRequest::DatasetNameHasBeenSet
bool DatasetNameHasBeenSet() const
Definition: UpdateRecordsRequest.h:151
AWSString.h
Aws::CognitoSync::Model::UpdateRecordsRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: UpdateRecordsRequest.h:47
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityId
UpdateRecordsRequest & WithIdentityId(const char *value)
Definition: UpdateRecordsRequest.h:138
Aws::CognitoSync::Model::UpdateRecordsRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: UpdateRecordsRequest.h:53
Aws::CognitoSync::Model::UpdateRecordsRequest::SyncSessionTokenHasBeenSet
bool SyncSessionTokenHasBeenSet() const
Definition: UpdateRecordsRequest.h:282
Aws::CognitoSync::Model::UpdateRecordsRequest::GetRecordPatches
const Aws::Vector< RecordPatch > & GetRecordPatches() const
Definition: UpdateRecordsRequest.h:234
Aws::CognitoSync::Model::UpdateRecordsRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: UpdateRecordsRequest.h:213
Aws::CognitoSync::Model::UpdateRecordsRequest::SetClientContext
void SetClientContext(const char *value)
Definition: UpdateRecordsRequest.h:349
Aws::CognitoSync::Model::UpdateRecordsRequest::WithSyncSessionToken
UpdateRecordsRequest & WithSyncSessionToken(const Aws::String &value)
Definition: UpdateRecordsRequest.h:306
Aws::CognitoSync::Model::UpdateRecordsRequest::WithIdentityPoolId
UpdateRecordsRequest & WithIdentityPoolId(Aws::String &&value)
Definition: UpdateRecordsRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::UpdateRecordsRequest::WithClientContext
UpdateRecordsRequest & WithClientContext(const Aws::String &value)
Definition: UpdateRecordsRequest.h:355
Aws::CognitoSync::Model::UpdateRecordsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRecordsRequest.h:36
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CognitoSyncRequest.h
Aws::CognitoSync::Model::UpdateRecordsRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: UpdateRecordsRequest.h:102
Aws::CognitoSync::Model::UpdateRecordsRequest::WithClientContext
UpdateRecordsRequest & WithClientContext(const char *value)
Definition: UpdateRecordsRequest.h:367
Aws::CognitoSync::Model::UpdateRecordsRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: UpdateRecordsRequest.h:108
Aws::CognitoSync::Model::UpdateRecordsRequest::WithDatasetName
UpdateRecordsRequest & WithDatasetName(const Aws::String &value)
Definition: UpdateRecordsRequest.h:175
Aws::CognitoSync::Model::UpdateRecordsRequest::SerializePayload
Aws::String SerializePayload() const override