AWS SDK for C++  0.12.9
AWS SDK for C++
SubscribeToDatasetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace CognitoSync
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
41  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
42 
48  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
49 
55  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
56 
62  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
63 
69  inline SubscribeToDatasetRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
70 
76  inline SubscribeToDatasetRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
77 
83  inline SubscribeToDatasetRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
84 
88  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
89 
93  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
94 
98  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
99 
103  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
104 
108  inline SubscribeToDatasetRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
109 
113  inline SubscribeToDatasetRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
114 
118  inline SubscribeToDatasetRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
119 
123  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
124 
128  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
129 
133  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
134 
138  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
139 
143  inline SubscribeToDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
144 
148  inline SubscribeToDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(value); return *this;}
149 
153  inline SubscribeToDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
154 
158  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
159 
163  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
164 
168  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
169 
173  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
174 
178  inline SubscribeToDatasetRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
179 
183  inline SubscribeToDatasetRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(value); return *this;}
184 
188  inline SubscribeToDatasetRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
189 
190  private:
191  Aws::String m_identityPoolId;
192  bool m_identityPoolIdHasBeenSet;
193  Aws::String m_identityId;
194  bool m_identityIdHasBeenSet;
195  Aws::String m_datasetName;
196  bool m_datasetNameHasBeenSet;
197  Aws::String m_deviceId;
198  bool m_deviceIdHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace CognitoSync
203 } // namespace Aws
SubscribeToDatasetRequest & WithDatasetName(Aws::String &&value)
SubscribeToDatasetRequest & WithDatasetName(const Aws::String &value)
SubscribeToDatasetRequest & WithIdentityPoolId(const Aws::String &value)
SubscribeToDatasetRequest & WithDeviceId(const char *value)
SubscribeToDatasetRequest & WithDeviceId(Aws::String &&value)
SubscribeToDatasetRequest & WithDeviceId(const Aws::String &value)
SubscribeToDatasetRequest & WithIdentityId(const Aws::String &value)
SubscribeToDatasetRequest & WithDatasetName(const char *value)
SubscribeToDatasetRequest & WithIdentityPoolId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SubscribeToDatasetRequest & WithIdentityId(Aws::String &&value)
#define AWS_COGNITOSYNC_API
SubscribeToDatasetRequest & WithIdentityId(const char *value)
SubscribeToDatasetRequest & WithIdentityPoolId(const char *value)
JSON (JavaScript Object Notation).