AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RegisterDeviceRequest.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSyncRequest.h>
8#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
9#include <aws/cognito-sync/model/Platform.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoSync {
16namespace Model {
17
24 public:
25 AWS_COGNITOSYNC_API RegisterDeviceRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RegisterDevice"; }
32
33 AWS_COGNITOSYNC_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
42 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
43 template <typename IdentityPoolIdT = Aws::String>
44 void SetIdentityPoolId(IdentityPoolIdT&& value) {
45 m_identityPoolIdHasBeenSet = true;
46 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
47 }
48 template <typename IdentityPoolIdT = Aws::String>
49 RegisterDeviceRequest& WithIdentityPoolId(IdentityPoolIdT&& value) {
50 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetIdentityId() const { return m_identityId; }
60 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
61 template <typename IdentityIdT = Aws::String>
62 void SetIdentityId(IdentityIdT&& value) {
63 m_identityIdHasBeenSet = true;
64 m_identityId = std::forward<IdentityIdT>(value);
65 }
66 template <typename IdentityIdT = Aws::String>
67 RegisterDeviceRequest& WithIdentityId(IdentityIdT&& value) {
68 SetIdentityId(std::forward<IdentityIdT>(value));
69 return *this;
70 }
72
74
77 inline Platform GetPlatform() const { return m_platform; }
78 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
79 inline void SetPlatform(Platform value) {
80 m_platformHasBeenSet = true;
81 m_platform = value;
82 }
84 SetPlatform(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetToken() const { return m_token; }
94 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
95 template <typename TokenT = Aws::String>
96 void SetToken(TokenT&& value) {
97 m_tokenHasBeenSet = true;
98 m_token = std::forward<TokenT>(value);
99 }
100 template <typename TokenT = Aws::String>
102 SetToken(std::forward<TokenT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_identityPoolId;
108
109 Aws::String m_identityId;
110
111 Platform m_platform{Platform::NOT_SET};
112
113 Aws::String m_token;
114 bool m_identityPoolIdHasBeenSet = false;
115 bool m_identityIdHasBeenSet = false;
116 bool m_platformHasBeenSet = false;
117 bool m_tokenHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CognitoSync
122} // 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