AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VerifySoftwareTokenRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CognitoIdentityProvider
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API VerifySoftwareTokenRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "VerifySoftwareToken"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
43 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
44 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
45 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
46 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
47 inline VerifySoftwareTokenRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
48 inline VerifySoftwareTokenRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
49 inline VerifySoftwareTokenRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
51
53
57 inline const Aws::String& GetSession() const{ return m_session; }
58 inline bool SessionHasBeenSet() const { return m_sessionHasBeenSet; }
59 inline void SetSession(const Aws::String& value) { m_sessionHasBeenSet = true; m_session = value; }
60 inline void SetSession(Aws::String&& value) { m_sessionHasBeenSet = true; m_session = std::move(value); }
61 inline void SetSession(const char* value) { m_sessionHasBeenSet = true; m_session.assign(value); }
62 inline VerifySoftwareTokenRequest& WithSession(const Aws::String& value) { SetSession(value); return *this;}
63 inline VerifySoftwareTokenRequest& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;}
64 inline VerifySoftwareTokenRequest& WithSession(const char* value) { SetSession(value); return *this;}
66
68
72 inline const Aws::String& GetUserCode() const{ return m_userCode; }
73 inline bool UserCodeHasBeenSet() const { return m_userCodeHasBeenSet; }
74 inline void SetUserCode(const Aws::String& value) { m_userCodeHasBeenSet = true; m_userCode = value; }
75 inline void SetUserCode(Aws::String&& value) { m_userCodeHasBeenSet = true; m_userCode = std::move(value); }
76 inline void SetUserCode(const char* value) { m_userCodeHasBeenSet = true; m_userCode.assign(value); }
77 inline VerifySoftwareTokenRequest& WithUserCode(const Aws::String& value) { SetUserCode(value); return *this;}
78 inline VerifySoftwareTokenRequest& WithUserCode(Aws::String&& value) { SetUserCode(std::move(value)); return *this;}
79 inline VerifySoftwareTokenRequest& WithUserCode(const char* value) { SetUserCode(value); return *this;}
81
83
86 inline const Aws::String& GetFriendlyDeviceName() const{ return m_friendlyDeviceName; }
87 inline bool FriendlyDeviceNameHasBeenSet() const { return m_friendlyDeviceNameHasBeenSet; }
88 inline void SetFriendlyDeviceName(const Aws::String& value) { m_friendlyDeviceNameHasBeenSet = true; m_friendlyDeviceName = value; }
89 inline void SetFriendlyDeviceName(Aws::String&& value) { m_friendlyDeviceNameHasBeenSet = true; m_friendlyDeviceName = std::move(value); }
90 inline void SetFriendlyDeviceName(const char* value) { m_friendlyDeviceNameHasBeenSet = true; m_friendlyDeviceName.assign(value); }
92 inline VerifySoftwareTokenRequest& WithFriendlyDeviceName(Aws::String&& value) { SetFriendlyDeviceName(std::move(value)); return *this;}
93 inline VerifySoftwareTokenRequest& WithFriendlyDeviceName(const char* value) { SetFriendlyDeviceName(value); return *this;}
95 private:
96
97 Aws::String m_accessToken;
98 bool m_accessTokenHasBeenSet = false;
99
100 Aws::String m_session;
101 bool m_sessionHasBeenSet = false;
102
103 Aws::String m_userCode;
104 bool m_userCodeHasBeenSet = false;
105
106 Aws::String m_friendlyDeviceName;
107 bool m_friendlyDeviceNameHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CognitoIdentityProvider
112} // namespace Aws
VerifySoftwareTokenRequest & WithFriendlyDeviceName(const char *value)
VerifySoftwareTokenRequest & WithFriendlyDeviceName(Aws::String &&value)
VerifySoftwareTokenRequest & WithSession(const Aws::String &value)
VerifySoftwareTokenRequest & WithFriendlyDeviceName(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
VerifySoftwareTokenRequest & WithAccessToken(const char *value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
VerifySoftwareTokenRequest & WithUserCode(const Aws::String &value)
VerifySoftwareTokenRequest & WithUserCode(Aws::String &&value)
VerifySoftwareTokenRequest & WithAccessToken(Aws::String &&value)
VerifySoftwareTokenRequest & WithAccessToken(const Aws::String &value)
VerifySoftwareTokenRequest & WithSession(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String