AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetUserRequest.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 GetUserRequest() = 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 "GetUser"; }
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 GetUserRequest& WithAccessToken(AccessTokenT&& value) {
52 SetAccessToken(std::forward<AccessTokenT>(value));
53 return *this;
54 }
56 private:
57 Aws::String m_accessToken;
58 bool m_accessTokenHasBeenSet = false;
59};
60
61} // namespace Model
62} // namespace CognitoIdentityProvider
63} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API GetUserRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
GetUserRequest & WithAccessToken(AccessTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String