AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegisterDeviceRequest.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 <aws/cognito-sync/model/Platform.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CognitoSync
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_COGNITOSYNC_API RegisterDeviceRequest() = default;
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_COGNITOSYNC_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
46 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
47 template<typename IdentityPoolIdT = Aws::String>
48 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
49 template<typename IdentityPoolIdT = Aws::String>
50 RegisterDeviceRequest& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetIdentityId() const { return m_identityId; }
58 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
59 template<typename IdentityIdT = Aws::String>
60 void SetIdentityId(IdentityIdT&& value) { m_identityIdHasBeenSet = true; m_identityId = std::forward<IdentityIdT>(value); }
61 template<typename IdentityIdT = Aws::String>
62 RegisterDeviceRequest& WithIdentityId(IdentityIdT&& value) { SetIdentityId(std::forward<IdentityIdT>(value)); return *this;}
64
66
69 inline Platform GetPlatform() const { return m_platform; }
70 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
71 inline void SetPlatform(Platform value) { m_platformHasBeenSet = true; m_platform = value; }
72 inline RegisterDeviceRequest& WithPlatform(Platform value) { SetPlatform(value); return *this;}
74
76
79 inline const Aws::String& GetToken() const { return m_token; }
80 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
81 template<typename TokenT = Aws::String>
82 void SetToken(TokenT&& value) { m_tokenHasBeenSet = true; m_token = std::forward<TokenT>(value); }
83 template<typename TokenT = Aws::String>
84 RegisterDeviceRequest& WithToken(TokenT&& value) { SetToken(std::forward<TokenT>(value)); return *this;}
86 private:
87
88 Aws::String m_identityPoolId;
89 bool m_identityPoolIdHasBeenSet = false;
90
91 Aws::String m_identityId;
92 bool m_identityIdHasBeenSet = false;
93
94 Platform m_platform{Platform::NOT_SET};
95 bool m_platformHasBeenSet = false;
96
97 Aws::String m_token;
98 bool m_tokenHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CognitoSync
103} // namespace Aws
AWS_COGNITOSYNC_API RegisterDeviceRequest()=default
RegisterDeviceRequest & WithToken(TokenT &&value)
RegisterDeviceRequest & WithIdentityId(IdentityIdT &&value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
RegisterDeviceRequest & WithPlatform(Platform value)
RegisterDeviceRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String