AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRecordsRequest.h
1
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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cognito-sync/model/RecordPatch.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoSync
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_COGNITOSYNC_API UpdateRecordsRequest();
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_COGNITOSYNC_API Aws::String SerializePayload() const override;
39
40 AWS_COGNITOSYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
48 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
49 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
50 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
51 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
52 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
53 inline UpdateRecordsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
54 inline UpdateRecordsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
55 inline UpdateRecordsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
57
59
63 inline const Aws::String& GetIdentityId() const{ return m_identityId; }
64 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
65 inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
66 inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
67 inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
68 inline UpdateRecordsRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
69 inline UpdateRecordsRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
70 inline UpdateRecordsRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
72
74
78 inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
79 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
80 inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
81 inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
82 inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
83 inline UpdateRecordsRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
84 inline UpdateRecordsRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
85 inline UpdateRecordsRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
87
89
92 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
93 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
94 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
95 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
96 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
97 inline UpdateRecordsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
98 inline UpdateRecordsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
99 inline UpdateRecordsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
101
103
106 inline const Aws::Vector<RecordPatch>& GetRecordPatches() const{ return m_recordPatches; }
107 inline bool RecordPatchesHasBeenSet() const { return m_recordPatchesHasBeenSet; }
108 inline void SetRecordPatches(const Aws::Vector<RecordPatch>& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = value; }
109 inline void SetRecordPatches(Aws::Vector<RecordPatch>&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = std::move(value); }
111 inline UpdateRecordsRequest& WithRecordPatches(Aws::Vector<RecordPatch>&& value) { SetRecordPatches(std::move(value)); return *this;}
112 inline UpdateRecordsRequest& AddRecordPatches(const RecordPatch& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(value); return *this; }
113 inline UpdateRecordsRequest& AddRecordPatches(RecordPatch&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.push_back(std::move(value)); return *this; }
115
117
121 inline const Aws::String& GetSyncSessionToken() const{ return m_syncSessionToken; }
122 inline bool SyncSessionTokenHasBeenSet() const { return m_syncSessionTokenHasBeenSet; }
123 inline void SetSyncSessionToken(const Aws::String& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = value; }
124 inline void SetSyncSessionToken(Aws::String&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = std::move(value); }
125 inline void SetSyncSessionToken(const char* value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken.assign(value); }
126 inline UpdateRecordsRequest& WithSyncSessionToken(const Aws::String& value) { SetSyncSessionToken(value); return *this;}
127 inline UpdateRecordsRequest& WithSyncSessionToken(Aws::String&& value) { SetSyncSessionToken(std::move(value)); return *this;}
128 inline UpdateRecordsRequest& WithSyncSessionToken(const char* value) { SetSyncSessionToken(value); return *this;}
130
132
136 inline const Aws::String& GetClientContext() const{ return m_clientContext; }
137 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
138 inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
139 inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::move(value); }
140 inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
141 inline UpdateRecordsRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
142 inline UpdateRecordsRequest& WithClientContext(Aws::String&& value) { SetClientContext(std::move(value)); return *this;}
143 inline UpdateRecordsRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
145 private:
146
147 Aws::String m_identityPoolId;
148 bool m_identityPoolIdHasBeenSet = false;
149
150 Aws::String m_identityId;
151 bool m_identityIdHasBeenSet = false;
152
153 Aws::String m_datasetName;
154 bool m_datasetNameHasBeenSet = false;
155
156 Aws::String m_deviceId;
157 bool m_deviceIdHasBeenSet = false;
158
159 Aws::Vector<RecordPatch> m_recordPatches;
160 bool m_recordPatchesHasBeenSet = false;
161
162 Aws::String m_syncSessionToken;
163 bool m_syncSessionTokenHasBeenSet = false;
164
165 Aws::String m_clientContext;
166 bool m_clientContextHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CognitoSync
171} // namespace Aws
void SetRecordPatches(Aws::Vector< RecordPatch > &&value)
UpdateRecordsRequest & WithSyncSessionToken(const char *value)
UpdateRecordsRequest & WithIdentityPoolId(Aws::String &&value)
const Aws::Vector< RecordPatch > & GetRecordPatches() const
UpdateRecordsRequest & WithIdentityPoolId(const char *value)
UpdateRecordsRequest & AddRecordPatches(const RecordPatch &value)
UpdateRecordsRequest & WithIdentityId(const Aws::String &value)
UpdateRecordsRequest & AddRecordPatches(RecordPatch &&value)
virtual const char * GetServiceRequestName() const override
UpdateRecordsRequest & WithIdentityPoolId(const Aws::String &value)
UpdateRecordsRequest & WithDatasetName(const char *value)
UpdateRecordsRequest & WithClientContext(const Aws::String &value)
UpdateRecordsRequest & WithRecordPatches(const Aws::Vector< RecordPatch > &value)
UpdateRecordsRequest & WithDeviceId(const Aws::String &value)
UpdateRecordsRequest & WithRecordPatches(Aws::Vector< RecordPatch > &&value)
void SetRecordPatches(const Aws::Vector< RecordPatch > &value)
UpdateRecordsRequest & WithDeviceId(const char *value)
UpdateRecordsRequest & WithIdentityId(const char *value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
UpdateRecordsRequest & WithClientContext(Aws::String &&value)
UpdateRecordsRequest & WithDeviceId(Aws::String &&value)
UpdateRecordsRequest & WithSyncSessionToken(Aws::String &&value)
UpdateRecordsRequest & WithSyncSessionToken(const Aws::String &value)
UpdateRecordsRequest & WithIdentityId(Aws::String &&value)
UpdateRecordsRequest & WithDatasetName(const Aws::String &value)
UpdateRecordsRequest & WithClientContext(const char *value)
UpdateRecordsRequest & WithDatasetName(Aws::String &&value)
AWS_COGNITOSYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector