AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscribeToDatasetRequest.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 <utility>
11
12namespace Aws
13{
14namespace CognitoSync
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_COGNITOSYNC_API SubscribeToDatasetRequest();
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_COGNITOSYNC_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
45 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
46 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
47 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
48 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
49 inline SubscribeToDatasetRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
50 inline SubscribeToDatasetRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
51 inline SubscribeToDatasetRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
53
55
58 inline const Aws::String& GetIdentityId() const{ return m_identityId; }
59 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
60 inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
61 inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
62 inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
63 inline SubscribeToDatasetRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
64 inline SubscribeToDatasetRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
65 inline SubscribeToDatasetRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
67
69
72 inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
73 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
74 inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
75 inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
76 inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
77 inline SubscribeToDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
78 inline SubscribeToDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
79 inline SubscribeToDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
81
83
86 inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
87 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
88 inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
89 inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
90 inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
91 inline SubscribeToDatasetRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
92 inline SubscribeToDatasetRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
93 inline SubscribeToDatasetRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
95 private:
96
97 Aws::String m_identityPoolId;
98 bool m_identityPoolIdHasBeenSet = false;
99
100 Aws::String m_identityId;
101 bool m_identityIdHasBeenSet = false;
102
103 Aws::String m_datasetName;
104 bool m_datasetNameHasBeenSet = false;
105
106 Aws::String m_deviceId;
107 bool m_deviceIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CognitoSync
112} // namespace Aws
SubscribeToDatasetRequest & WithIdentityId(Aws::String &&value)
SubscribeToDatasetRequest & WithIdentityId(const char *value)
SubscribeToDatasetRequest & WithDatasetName(Aws::String &&value)
SubscribeToDatasetRequest & WithIdentityPoolId(Aws::String &&value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
SubscribeToDatasetRequest & WithIdentityPoolId(const Aws::String &value)
SubscribeToDatasetRequest & WithIdentityPoolId(const char *value)
SubscribeToDatasetRequest & WithDeviceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
SubscribeToDatasetRequest & WithDatasetName(const char *value)
SubscribeToDatasetRequest & WithIdentityId(const Aws::String &value)
SubscribeToDatasetRequest & WithDeviceId(const char *value)
SubscribeToDatasetRequest & WithDatasetName(const Aws::String &value)
SubscribeToDatasetRequest & WithDeviceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String