AWS SDK for C++  1.9.40
AWS SDK for C++
AdminGetUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CognitoIdentityProvider
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "AdminGetUser"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
46 
51  inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
52 
57  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
58 
63  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
64 
69  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
70 
75  inline AdminGetUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
76 
81  inline AdminGetUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
82 
87  inline AdminGetUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
88 
89 
93  inline const Aws::String& GetUsername() const{ return m_username; }
94 
98  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
99 
103  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
104 
108  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
109 
113  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
114 
118  inline AdminGetUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
119 
123  inline AdminGetUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
124 
128  inline AdminGetUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
129 
130  private:
131 
132  Aws::String m_userPoolId;
133  bool m_userPoolIdHasBeenSet;
134 
135  Aws::String m_username;
136  bool m_usernameHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace CognitoIdentityProvider
141 } // namespace Aws
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest
Definition: AdminGetUserRequest.h:26
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUsername
void SetUsername(const char *value)
Definition: AdminGetUserRequest.h:113
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CognitoIdentityProvider_EXPORTS.h
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUsername
AdminGetUserRequest & WithUsername(Aws::String &&value)
Definition: AdminGetUserRequest.h:123
Aws::CognitoIdentityProvider::CognitoIdentityProviderRequest
Definition: CognitoIdentityProviderRequest.h:17
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::UserPoolIdHasBeenSet
bool UserPoolIdHasBeenSet() const
Definition: AdminGetUserRequest.h:51
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUserPoolId
void SetUserPoolId(const char *value)
Definition: AdminGetUserRequest.h:69
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::GetUserPoolId
const Aws::String & GetUserPoolId() const
Definition: AdminGetUserRequest.h:45
AWS_COGNITOIDENTITYPROVIDER_API
#define AWS_COGNITOIDENTITYPROVIDER_API
Definition: CognitoIdentityProvider_EXPORTS.h:28
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::AdminGetUserRequest
AdminGetUserRequest()
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUsername
AdminGetUserRequest & WithUsername(const char *value)
Definition: AdminGetUserRequest.h:128
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUserPoolId
AdminGetUserRequest & WithUserPoolId(Aws::String &&value)
Definition: AdminGetUserRequest.h:81
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUserPoolId
void SetUserPoolId(Aws::String &&value)
Definition: AdminGetUserRequest.h:63
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUserPoolId
void SetUserPoolId(const Aws::String &value)
Definition: AdminGetUserRequest.h:57
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUsername
void SetUsername(const Aws::String &value)
Definition: AdminGetUserRequest.h:103
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::SetUsername
void SetUsername(Aws::String &&value)
Definition: AdminGetUserRequest.h:108
AWSString.h
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::GetUsername
const Aws::String & GetUsername() const
Definition: AdminGetUserRequest.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUserPoolId
AdminGetUserRequest & WithUserPoolId(const Aws::String &value)
Definition: AdminGetUserRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUserPoolId
AdminGetUserRequest & WithUserPoolId(const char *value)
Definition: AdminGetUserRequest.h:87
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: AdminGetUserRequest.h:98
CognitoIdentityProviderRequest.h
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::WithUsername
AdminGetUserRequest & WithUsername(const Aws::String &value)
Definition: AdminGetUserRequest.h:118
Aws::CognitoIdentityProvider::Model::AdminGetUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AdminGetUserRequest.h:34