AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
ConfirmDeviceRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/DeviceSecretVerifierConfigType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CognitoIdentityProvider {
16namespace Model {
17
24 public:
25 AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceRequest() = 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 "ConfirmDevice"; }
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
44 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
45 template <typename AccessTokenT = Aws::String>
46 void SetAccessToken(AccessTokenT&& value) {
47 m_accessTokenHasBeenSet = true;
48 m_accessToken = std::forward<AccessTokenT>(value);
49 }
50 template <typename AccessTokenT = Aws::String>
51 ConfirmDeviceRequest& WithAccessToken(AccessTokenT&& value) {
52 SetAccessToken(std::forward<AccessTokenT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDeviceKey() const { return m_deviceKey; }
63 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
64 template <typename DeviceKeyT = Aws::String>
65 void SetDeviceKey(DeviceKeyT&& value) {
66 m_deviceKeyHasBeenSet = true;
67 m_deviceKey = std::forward<DeviceKeyT>(value);
68 }
69 template <typename DeviceKeyT = Aws::String>
70 ConfirmDeviceRequest& WithDeviceKey(DeviceKeyT&& value) {
71 SetDeviceKey(std::forward<DeviceKeyT>(value));
72 return *this;
73 }
75
77
80 inline const DeviceSecretVerifierConfigType& GetDeviceSecretVerifierConfig() const { return m_deviceSecretVerifierConfig; }
81 inline bool DeviceSecretVerifierConfigHasBeenSet() const { return m_deviceSecretVerifierConfigHasBeenSet; }
82 template <typename DeviceSecretVerifierConfigT = DeviceSecretVerifierConfigType>
83 void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigT&& value) {
84 m_deviceSecretVerifierConfigHasBeenSet = true;
85 m_deviceSecretVerifierConfig = std::forward<DeviceSecretVerifierConfigT>(value);
86 }
87 template <typename DeviceSecretVerifierConfigT = DeviceSecretVerifierConfigType>
88 ConfirmDeviceRequest& WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigT&& value) {
89 SetDeviceSecretVerifierConfig(std::forward<DeviceSecretVerifierConfigT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
99 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
100 template <typename DeviceNameT = Aws::String>
101 void SetDeviceName(DeviceNameT&& value) {
102 m_deviceNameHasBeenSet = true;
103 m_deviceName = std::forward<DeviceNameT>(value);
104 }
105 template <typename DeviceNameT = Aws::String>
106 ConfirmDeviceRequest& WithDeviceName(DeviceNameT&& value) {
107 SetDeviceName(std::forward<DeviceNameT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_accessToken;
113
114 Aws::String m_deviceKey;
115
116 DeviceSecretVerifierConfigType m_deviceSecretVerifierConfig;
117
118 Aws::String m_deviceName;
119 bool m_accessTokenHasBeenSet = false;
120 bool m_deviceKeyHasBeenSet = false;
121 bool m_deviceSecretVerifierConfigHasBeenSet = false;
122 bool m_deviceNameHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace CognitoIdentityProvider
127} // namespace Aws
ConfirmDeviceRequest & WithAccessToken(AccessTokenT &&value)
const DeviceSecretVerifierConfigType & GetDeviceSecretVerifierConfig() const
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceRequest()=default
ConfirmDeviceRequest & WithDeviceName(DeviceNameT &&value)
void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigT &&value)
ConfirmDeviceRequest & WithDeviceKey(DeviceKeyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ConfirmDeviceRequest & WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String