AWS SDK for C++  0.12.9
AWS SDK for C++
RegisterDeviceRequest.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
20 
21 namespace Aws
22 {
23 namespace CognitoSync
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
42  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
43 
49  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
50 
56  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
57 
63  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
64 
70  inline RegisterDeviceRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
71 
77  inline RegisterDeviceRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
78 
84  inline RegisterDeviceRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
85 
89  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
90 
94  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
95 
99  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
100 
104  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
105 
109  inline RegisterDeviceRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
110 
114  inline RegisterDeviceRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
115 
119  inline RegisterDeviceRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
120 
124  inline const Platform& GetPlatform() const{ return m_platform; }
125 
129  inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
130 
134  inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = value; }
135 
139  inline RegisterDeviceRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
140 
144  inline RegisterDeviceRequest& WithPlatform(Platform&& value) { SetPlatform(value); return *this;}
145 
149  inline const Aws::String& GetToken() const{ return m_token; }
150 
154  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
155 
159  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = value; }
160 
164  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
165 
169  inline RegisterDeviceRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
170 
174  inline RegisterDeviceRequest& WithToken(Aws::String&& value) { SetToken(value); return *this;}
175 
179  inline RegisterDeviceRequest& WithToken(const char* value) { SetToken(value); return *this;}
180 
181  private:
182  Aws::String m_identityPoolId;
183  bool m_identityPoolIdHasBeenSet;
184  Aws::String m_identityId;
185  bool m_identityIdHasBeenSet;
186  Platform m_platform;
187  bool m_platformHasBeenSet;
188  Aws::String m_token;
189  bool m_tokenHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace CognitoSync
194 } // namespace Aws
RegisterDeviceRequest & WithIdentityPoolId(Aws::String &&value)
RegisterDeviceRequest & WithIdentityId(Aws::String &&value)
RegisterDeviceRequest & WithToken(const char *value)
RegisterDeviceRequest & WithPlatform(Platform &&value)
RegisterDeviceRequest & WithIdentityId(const Aws::String &value)
RegisterDeviceRequest & WithToken(Aws::String &&value)
RegisterDeviceRequest & WithIdentityId(const char *value)
RegisterDeviceRequest & WithIdentityPoolId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RegisterDeviceRequest & WithPlatform(const Platform &value)
#define AWS_COGNITOSYNC_API
RegisterDeviceRequest & WithIdentityPoolId(const Aws::String &value)
RegisterDeviceRequest & WithToken(const Aws::String &value)
JSON (JavaScript Object Notation).