AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename IdentityPoolIdT = Aws::String>
51 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
52 template<typename IdentityPoolIdT = Aws::String>
53 UpdateRecordsRequest& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetIdentityId() const { return m_identityId; }
62 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
63 template<typename IdentityIdT = Aws::String>
64 void SetIdentityId(IdentityIdT&& value) { m_identityIdHasBeenSet = true; m_identityId = std::forward<IdentityIdT>(value); }
65 template<typename IdentityIdT = Aws::String>
66 UpdateRecordsRequest& WithIdentityId(IdentityIdT&& value) { SetIdentityId(std::forward<IdentityIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
75 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
76 template<typename DatasetNameT = Aws::String>
77 void SetDatasetName(DatasetNameT&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::forward<DatasetNameT>(value); }
78 template<typename DatasetNameT = Aws::String>
79 UpdateRecordsRequest& WithDatasetName(DatasetNameT&& value) { SetDatasetName(std::forward<DatasetNameT>(value)); return *this;}
81
83
86 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
87 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
88 template<typename DeviceIdT = Aws::String>
89 void SetDeviceId(DeviceIdT&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::forward<DeviceIdT>(value); }
90 template<typename DeviceIdT = Aws::String>
91 UpdateRecordsRequest& WithDeviceId(DeviceIdT&& value) { SetDeviceId(std::forward<DeviceIdT>(value)); return *this;}
93
95
98 inline const Aws::Vector<RecordPatch>& GetRecordPatches() const { return m_recordPatches; }
99 inline bool RecordPatchesHasBeenSet() const { return m_recordPatchesHasBeenSet; }
100 template<typename RecordPatchesT = Aws::Vector<RecordPatch>>
101 void SetRecordPatches(RecordPatchesT&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches = std::forward<RecordPatchesT>(value); }
102 template<typename RecordPatchesT = Aws::Vector<RecordPatch>>
103 UpdateRecordsRequest& WithRecordPatches(RecordPatchesT&& value) { SetRecordPatches(std::forward<RecordPatchesT>(value)); return *this;}
104 template<typename RecordPatchesT = RecordPatch>
105 UpdateRecordsRequest& AddRecordPatches(RecordPatchesT&& value) { m_recordPatchesHasBeenSet = true; m_recordPatches.emplace_back(std::forward<RecordPatchesT>(value)); return *this; }
107
109
113 inline const Aws::String& GetSyncSessionToken() const { return m_syncSessionToken; }
114 inline bool SyncSessionTokenHasBeenSet() const { return m_syncSessionTokenHasBeenSet; }
115 template<typename SyncSessionTokenT = Aws::String>
116 void SetSyncSessionToken(SyncSessionTokenT&& value) { m_syncSessionTokenHasBeenSet = true; m_syncSessionToken = std::forward<SyncSessionTokenT>(value); }
117 template<typename SyncSessionTokenT = Aws::String>
118 UpdateRecordsRequest& WithSyncSessionToken(SyncSessionTokenT&& value) { SetSyncSessionToken(std::forward<SyncSessionTokenT>(value)); return *this;}
120
122
126 inline const Aws::String& GetClientContext() const { return m_clientContext; }
127 inline bool ClientContextHasBeenSet() const { return m_clientContextHasBeenSet; }
128 template<typename ClientContextT = Aws::String>
129 void SetClientContext(ClientContextT&& value) { m_clientContextHasBeenSet = true; m_clientContext = std::forward<ClientContextT>(value); }
130 template<typename ClientContextT = Aws::String>
131 UpdateRecordsRequest& WithClientContext(ClientContextT&& value) { SetClientContext(std::forward<ClientContextT>(value)); return *this;}
133 private:
134
135 Aws::String m_identityPoolId;
136 bool m_identityPoolIdHasBeenSet = false;
137
138 Aws::String m_identityId;
139 bool m_identityIdHasBeenSet = false;
140
141 Aws::String m_datasetName;
142 bool m_datasetNameHasBeenSet = false;
143
144 Aws::String m_deviceId;
145 bool m_deviceIdHasBeenSet = false;
146
147 Aws::Vector<RecordPatch> m_recordPatches;
148 bool m_recordPatchesHasBeenSet = false;
149
150 Aws::String m_syncSessionToken;
151 bool m_syncSessionTokenHasBeenSet = false;
152
153 Aws::String m_clientContext;
154 bool m_clientContextHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace CognitoSync
159} // namespace Aws
UpdateRecordsRequest & AddRecordPatches(RecordPatchesT &&value)
const Aws::Vector< RecordPatch > & GetRecordPatches() const
UpdateRecordsRequest & WithSyncSessionToken(SyncSessionTokenT &&value)
UpdateRecordsRequest & WithClientContext(ClientContextT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRecordsRequest & WithIdentityId(IdentityIdT &&value)
UpdateRecordsRequest & WithDeviceId(DeviceIdT &&value)
UpdateRecordsRequest & WithDatasetName(DatasetNameT &&value)
UpdateRecordsRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
void SetSyncSessionToken(SyncSessionTokenT &&value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
UpdateRecordsRequest & WithRecordPatches(RecordPatchesT &&value)
AWS_COGNITOSYNC_API UpdateRecordsRequest()=default
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