AWS SDK for C++  1.9.109
AWS SDK for C++
SubscribeToDatasetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CognitoSync
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "SubscribeToDataset"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
43  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
44 
50  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
51 
57  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
58 
64  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
65 
71  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
72 
78  inline SubscribeToDatasetRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
79 
85  inline SubscribeToDatasetRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
86 
92  inline SubscribeToDatasetRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
93 
94 
98  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
99 
103  inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
104 
108  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
109 
113  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
114 
118  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
119 
123  inline SubscribeToDatasetRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
124 
128  inline SubscribeToDatasetRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
129 
133  inline SubscribeToDatasetRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
134 
135 
139  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
140 
144  inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
145 
149  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
150 
154  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
155 
159  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
160 
164  inline SubscribeToDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
165 
169  inline SubscribeToDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
170 
174  inline SubscribeToDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
175 
176 
180  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
181 
185  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
186 
190  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
191 
195  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
196 
200  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
201 
205  inline SubscribeToDatasetRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
206 
210  inline SubscribeToDatasetRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
211 
215  inline SubscribeToDatasetRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
216 
217  private:
218 
219  Aws::String m_identityPoolId;
220  bool m_identityPoolIdHasBeenSet;
221 
222  Aws::String m_identityId;
223  bool m_identityIdHasBeenSet;
224 
225  Aws::String m_datasetName;
226  bool m_datasetNameHasBeenSet;
227 
228  Aws::String m_deviceId;
229  bool m_deviceIdHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace CognitoSync
234 } // namespace Aws
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDatasetName
void SetDatasetName(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:149
Aws::CognitoSync::Model::SubscribeToDatasetRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: SubscribeToDatasetRequest.h:180
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDatasetName
SubscribeToDatasetRequest & WithDatasetName(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:169
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SubscribeToDatasetRequest
SubscribeToDatasetRequest()
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: SubscribeToDatasetRequest.h:118
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityId
SubscribeToDatasetRequest & WithIdentityId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:128
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDatasetName
SubscribeToDatasetRequest & WithDatasetName(const char *value)
Definition: SubscribeToDatasetRequest.h:174
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityPoolId
SubscribeToDatasetRequest & WithIdentityPoolId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:78
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: SubscribeToDatasetRequest.h:200
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityId
SubscribeToDatasetRequest & WithIdentityId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:123
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:57
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDatasetName
void SetDatasetName(const char *value)
Definition: SubscribeToDatasetRequest.h:159
Aws::CognitoSync::Model::SubscribeToDatasetRequest::GetDatasetName
const Aws::String & GetDatasetName() const
Definition: SubscribeToDatasetRequest.h:139
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityId
SubscribeToDatasetRequest & WithIdentityId(const char *value)
Definition: SubscribeToDatasetRequest.h:133
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:190
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDeviceId
SubscribeToDatasetRequest & WithDeviceId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:205
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityPoolId
SubscribeToDatasetRequest & WithIdentityPoolId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:85
Aws::CognitoSync::Model::SubscribeToDatasetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SubscribeToDatasetRequest.h:33
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:108
Aws::CognitoSync::Model::SubscribeToDatasetRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: SubscribeToDatasetRequest.h:50
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:195
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetDatasetName
void SetDatasetName(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:154
Aws::CognitoSync::Model::SubscribeToDatasetRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: SubscribeToDatasetRequest.h:98
AWSString.h
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDatasetName
SubscribeToDatasetRequest & WithDatasetName(const Aws::String &value)
Definition: SubscribeToDatasetRequest.h:164
Aws::CognitoSync::Model::SubscribeToDatasetRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: SubscribeToDatasetRequest.h:43
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:113
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDeviceId
SubscribeToDatasetRequest & WithDeviceId(const char *value)
Definition: SubscribeToDatasetRequest.h:215
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: SubscribeToDatasetRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::SubscribeToDatasetRequest
Definition: SubscribeToDatasetRequest.h:25
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::SubscribeToDatasetRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: SubscribeToDatasetRequest.h:185
Aws::CognitoSync::Model::SubscribeToDatasetRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: SubscribeToDatasetRequest.h:103
Aws::CognitoSync::Model::SubscribeToDatasetRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:64
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithIdentityPoolId
SubscribeToDatasetRequest & WithIdentityPoolId(const char *value)
Definition: SubscribeToDatasetRequest.h:92
Aws::CognitoSync::Model::SubscribeToDatasetRequest::WithDeviceId
SubscribeToDatasetRequest & WithDeviceId(Aws::String &&value)
Definition: SubscribeToDatasetRequest.h:210
Aws::CognitoSync::Model::SubscribeToDatasetRequest::DatasetNameHasBeenSet
bool DatasetNameHasBeenSet() const
Definition: SubscribeToDatasetRequest.h:144