AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfirmDeviceRequest.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 <aws/cognito-idp/model/DeviceSecretVerifierConfigType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CognitoIdentityProvider
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceRequest();
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 "ConfirmDevice"; }
35
36 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
47 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
48 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
49 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
50 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
51 inline ConfirmDeviceRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
52 inline ConfirmDeviceRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
53 inline ConfirmDeviceRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
55
57
60 inline const Aws::String& GetDeviceKey() const{ return m_deviceKey; }
61 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
62 inline void SetDeviceKey(const Aws::String& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = value; }
63 inline void SetDeviceKey(Aws::String&& value) { m_deviceKeyHasBeenSet = true; m_deviceKey = std::move(value); }
64 inline void SetDeviceKey(const char* value) { m_deviceKeyHasBeenSet = true; m_deviceKey.assign(value); }
65 inline ConfirmDeviceRequest& WithDeviceKey(const Aws::String& value) { SetDeviceKey(value); return *this;}
66 inline ConfirmDeviceRequest& WithDeviceKey(Aws::String&& value) { SetDeviceKey(std::move(value)); return *this;}
67 inline ConfirmDeviceRequest& WithDeviceKey(const char* value) { SetDeviceKey(value); return *this;}
69
71
74 inline const DeviceSecretVerifierConfigType& GetDeviceSecretVerifierConfig() const{ return m_deviceSecretVerifierConfig; }
75 inline bool DeviceSecretVerifierConfigHasBeenSet() const { return m_deviceSecretVerifierConfigHasBeenSet; }
76 inline void SetDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = value; }
77 inline void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType&& value) { m_deviceSecretVerifierConfigHasBeenSet = true; m_deviceSecretVerifierConfig = std::move(value); }
81
83
86 inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
87 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
88 inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
89 inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
90 inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
91 inline ConfirmDeviceRequest& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
92 inline ConfirmDeviceRequest& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
93 inline ConfirmDeviceRequest& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
95 private:
96
97 Aws::String m_accessToken;
98 bool m_accessTokenHasBeenSet = false;
99
100 Aws::String m_deviceKey;
101 bool m_deviceKeyHasBeenSet = false;
102
103 DeviceSecretVerifierConfigType m_deviceSecretVerifierConfig;
104 bool m_deviceSecretVerifierConfigHasBeenSet = false;
105
106 Aws::String m_deviceName;
107 bool m_deviceNameHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CognitoIdentityProvider
112} // namespace Aws
ConfirmDeviceRequest & WithDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType &value)
const DeviceSecretVerifierConfigType & GetDeviceSecretVerifierConfig() const
void SetDeviceSecretVerifierConfig(const DeviceSecretVerifierConfigType &value)
ConfirmDeviceRequest & WithDeviceName(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
ConfirmDeviceRequest & WithAccessToken(Aws::String &&value)
ConfirmDeviceRequest & WithAccessToken(const char *value)
ConfirmDeviceRequest & WithDeviceKey(const char *value)
ConfirmDeviceRequest & WithDeviceKey(Aws::String &&value)
ConfirmDeviceRequest & WithAccessToken(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API ConfirmDeviceRequest()
ConfirmDeviceRequest & WithDeviceName(const char *value)
ConfirmDeviceRequest & WithDeviceName(const Aws::String &value)
ConfirmDeviceRequest & WithDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType &&value)
void SetDeviceSecretVerifierConfig(DeviceSecretVerifierConfigType &&value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ConfirmDeviceRequest & WithDeviceKey(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String