AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
VerifySoftwareTokenRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CognitoIdentityProvider {
15namespace Model {
16
20 public:
21 AWS_COGNITOIDENTITYPROVIDER_API VerifySoftwareTokenRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "VerifySoftwareToken"; }
28
29 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
30
31 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
40 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
41 template <typename AccessTokenT = Aws::String>
42 void SetAccessToken(AccessTokenT&& value) {
43 m_accessTokenHasBeenSet = true;
44 m_accessToken = std::forward<AccessTokenT>(value);
45 }
46 template <typename AccessTokenT = Aws::String>
48 SetAccessToken(std::forward<AccessTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSession() const { return m_session; }
58 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
59 template <typename SessionT = Aws::String>
60 void SetSession(SessionT&& value) {
61 m_sessionHasBeenSet = true;
62 m_session = std::forward<SessionT>(value);
63 }
64 template <typename SessionT = Aws::String>
66 SetSession(std::forward<SessionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetUserCode() const { return m_userCode; }
76 inline bool UserCodeHasBeenSet() const { return m_userCodeHasBeenSet; }
77 template <typename UserCodeT = Aws::String>
78 void SetUserCode(UserCodeT&& value) {
79 m_userCodeHasBeenSet = true;
80 m_userCode = std::forward<UserCodeT>(value);
81 }
82 template <typename UserCodeT = Aws::String>
84 SetUserCode(std::forward<UserCodeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetFriendlyDeviceName() const { return m_friendlyDeviceName; }
94 inline bool FriendlyDeviceNameHasBeenSet() const { return m_friendlyDeviceNameHasBeenSet; }
95 template <typename FriendlyDeviceNameT = Aws::String>
96 void SetFriendlyDeviceName(FriendlyDeviceNameT&& value) {
97 m_friendlyDeviceNameHasBeenSet = true;
98 m_friendlyDeviceName = std::forward<FriendlyDeviceNameT>(value);
99 }
100 template <typename FriendlyDeviceNameT = Aws::String>
102 SetFriendlyDeviceName(std::forward<FriendlyDeviceNameT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_accessToken;
108
109 Aws::String m_session;
110
111 Aws::String m_userCode;
112
113 Aws::String m_friendlyDeviceName;
114 bool m_accessTokenHasBeenSet = false;
115 bool m_sessionHasBeenSet = false;
116 bool m_userCodeHasBeenSet = false;
117 bool m_friendlyDeviceNameHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CognitoIdentityProvider
122} // namespace Aws
VerifySoftwareTokenRequest & WithFriendlyDeviceName(FriendlyDeviceNameT &&value)
VerifySoftwareTokenRequest & WithAccessToken(AccessTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API VerifySoftwareTokenRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String