AWS SDK for C++  1.8.126
AWS SDK for C++
RegisterDeviceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CognitoSync
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RegisterDevice"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
44  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
45 
51  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
52 
58  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
59 
65  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
66 
72  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
73 
79  inline RegisterDeviceRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
80 
86  inline RegisterDeviceRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
87 
93  inline RegisterDeviceRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
94 
95 
99  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
100 
104  inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
105 
109  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
110 
114  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = std::move(value); }
115 
119  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
120 
124  inline RegisterDeviceRequest& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
125 
129  inline RegisterDeviceRequest& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;}
130 
134  inline RegisterDeviceRequest& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
135 
136 
140  inline const Platform& GetPlatform() const{ return m_platform; }
141 
145  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
146 
150  inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
151 
155  inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
156 
160  inline RegisterDeviceRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;}
161 
165  inline RegisterDeviceRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;}
166 
167 
171  inline const Aws::String& GetToken() const{ return m_token; }
172 
176  inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
177 
181  inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
182 
186  inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
187 
191  inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
192 
196  inline RegisterDeviceRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;}
197 
201  inline RegisterDeviceRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
202 
206  inline RegisterDeviceRequest& WithToken(const char* value) { SetToken(value); return *this;}
207 
208  private:
209 
210  Aws::String m_identityPoolId;
211  bool m_identityPoolIdHasBeenSet;
212 
213  Aws::String m_identityId;
214  bool m_identityIdHasBeenSet;
215 
216  Platform m_platform;
217  bool m_platformHasBeenSet;
218 
219  Aws::String m_token;
220  bool m_tokenHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace CognitoSync
225 } // namespace Aws
Aws::CognitoSync::Model::RegisterDeviceRequest::IdentityIdHasBeenSet
bool IdentityIdHasBeenSet() const
Definition: RegisterDeviceRequest.h:104
Aws::CognitoSync::Model::RegisterDeviceRequest::WithToken
RegisterDeviceRequest & WithToken(const Aws::String &value)
Definition: RegisterDeviceRequest.h:196
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityId
void SetIdentityId(Aws::String &&value)
Definition: RegisterDeviceRequest.h:114
Aws::CognitoSync::Model::RegisterDeviceRequest::SetToken
void SetToken(const Aws::String &value)
Definition: RegisterDeviceRequest.h:181
Aws::CognitoSync::Model::Platform
Platform
Definition: Platform.h:17
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: RegisterDeviceRequest.h:72
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: RegisterDeviceRequest.h:65
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityId
RegisterDeviceRequest & WithIdentityId(const Aws::String &value)
Definition: RegisterDeviceRequest.h:124
Aws::CognitoSync::Model::RegisterDeviceRequest::RegisterDeviceRequest
RegisterDeviceRequest()
Aws::CognitoSync::Model::RegisterDeviceRequest::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: RegisterDeviceRequest.h:145
Aws::CognitoSync::Model::RegisterDeviceRequest::GetToken
const Aws::String & GetToken() const
Definition: RegisterDeviceRequest.h:171
Aws::CognitoSync::Model::RegisterDeviceRequest
Definition: RegisterDeviceRequest.h:26
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityId
void SetIdentityId(const char *value)
Definition: RegisterDeviceRequest.h:119
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityPoolId
RegisterDeviceRequest & WithIdentityPoolId(const char *value)
Definition: RegisterDeviceRequest.h:93
Aws::CognitoSync::Model::RegisterDeviceRequest::SetToken
void SetToken(Aws::String &&value)
Definition: RegisterDeviceRequest.h:186
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityPoolId
RegisterDeviceRequest & WithIdentityPoolId(Aws::String &&value)
Definition: RegisterDeviceRequest.h:86
Aws::CognitoSync::Model::RegisterDeviceRequest::TokenHasBeenSet
bool TokenHasBeenSet() const
Definition: RegisterDeviceRequest.h:176
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityId
RegisterDeviceRequest & WithIdentityId(const char *value)
Definition: RegisterDeviceRequest.h:134
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: RegisterDeviceRequest.h:58
Aws::CognitoSync::Model::RegisterDeviceRequest::SetIdentityId
void SetIdentityId(const Aws::String &value)
Definition: RegisterDeviceRequest.h:109
Aws::CognitoSync::Model::RegisterDeviceRequest::WithPlatform
RegisterDeviceRequest & WithPlatform(const Platform &value)
Definition: RegisterDeviceRequest.h:160
Aws::CognitoSync::Model::RegisterDeviceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterDeviceRequest.h:34
Aws::CognitoSync::Model::RegisterDeviceRequest::GetPlatform
const Platform & GetPlatform() const
Definition: RegisterDeviceRequest.h:140
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityPoolId
RegisterDeviceRequest & WithIdentityPoolId(const Aws::String &value)
Definition: RegisterDeviceRequest.h:79
Aws::CognitoSync::Model::RegisterDeviceRequest::WithToken
RegisterDeviceRequest & WithToken(const char *value)
Definition: RegisterDeviceRequest.h:206
AWSString.h
Aws::CognitoSync::Model::RegisterDeviceRequest::GetIdentityId
const Aws::String & GetIdentityId() const
Definition: RegisterDeviceRequest.h:99
Aws::CognitoSync::Model::RegisterDeviceRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: RegisterDeviceRequest.h:51
Aws::CognitoSync::Model::RegisterDeviceRequest::SetPlatform
void SetPlatform(const Platform &value)
Definition: RegisterDeviceRequest.h:150
Platform.h
Aws::CognitoSync::Model::RegisterDeviceRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: RegisterDeviceRequest.h:44
Aws::CognitoSync::Model::RegisterDeviceRequest::SetToken
void SetToken(const char *value)
Definition: RegisterDeviceRequest.h:191
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::RegisterDeviceRequest::SerializePayload
Aws::String SerializePayload() const override
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::RegisterDeviceRequest::WithToken
RegisterDeviceRequest & WithToken(Aws::String &&value)
Definition: RegisterDeviceRequest.h:201
Aws::CognitoSync::Model::RegisterDeviceRequest::SetPlatform
void SetPlatform(Platform &&value)
Definition: RegisterDeviceRequest.h:155
Aws::CognitoSync::Model::RegisterDeviceRequest::WithIdentityId
RegisterDeviceRequest & WithIdentityId(Aws::String &&value)
Definition: RegisterDeviceRequest.h:129
Aws::CognitoSync::Model::RegisterDeviceRequest::WithPlatform
RegisterDeviceRequest & WithPlatform(Platform &&value)
Definition: RegisterDeviceRequest.h:165