AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
AdminGetDeviceRequest.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
24 public:
25 AWS_COGNITOIDENTITYPROVIDER_API AdminGetDeviceRequest() = 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 "AdminGetDevice"; }
32
33 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetDeviceKey() const { return m_deviceKey; }
42 inline bool DeviceKeyHasBeenSet() const { return m_deviceKeyHasBeenSet; }
43 template <typename DeviceKeyT = Aws::String>
44 void SetDeviceKey(DeviceKeyT&& value) {
45 m_deviceKeyHasBeenSet = true;
46 m_deviceKey = std::forward<DeviceKeyT>(value);
47 }
48 template <typename DeviceKeyT = Aws::String>
49 AdminGetDeviceRequest& WithDeviceKey(DeviceKeyT&& value) {
50 SetDeviceKey(std::forward<DeviceKeyT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
60 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
61 template <typename UserPoolIdT = Aws::String>
62 void SetUserPoolId(UserPoolIdT&& value) {
63 m_userPoolIdHasBeenSet = true;
64 m_userPoolId = std::forward<UserPoolIdT>(value);
65 }
66 template <typename UserPoolIdT = Aws::String>
67 AdminGetDeviceRequest& WithUserPoolId(UserPoolIdT&& value) {
68 SetUserPoolId(std::forward<UserPoolIdT>(value));
69 return *this;
70 }
72
74
81 inline const Aws::String& GetUsername() const { return m_username; }
82 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
83 template <typename UsernameT = Aws::String>
84 void SetUsername(UsernameT&& value) {
85 m_usernameHasBeenSet = true;
86 m_username = std::forward<UsernameT>(value);
87 }
88 template <typename UsernameT = Aws::String>
89 AdminGetDeviceRequest& WithUsername(UsernameT&& value) {
90 SetUsername(std::forward<UsernameT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_deviceKey;
96
97 Aws::String m_userPoolId;
98
99 Aws::String m_username;
100 bool m_deviceKeyHasBeenSet = false;
101 bool m_userPoolIdHasBeenSet = false;
102 bool m_usernameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CognitoIdentityProvider
107} // namespace Aws
AdminGetDeviceRequest & WithDeviceKey(DeviceKeyT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AdminGetDeviceRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API AdminGetDeviceRequest()=default
AdminGetDeviceRequest & WithUsername(UsernameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String