1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <utility>
11 
12 namespace Aws
13 {
14 namespace CognitoIdentityProvider
15 {
16 namespace Model
17 {
18 
19   /**
20    * <p>Represents the request to delete a user as an administrator.</p><p><h3>See
21    * Also:</h3>   <a
22    * href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserRequest">AWS
23    * API Reference</a></p>
24    */
25   class AWS_COGNITOIDENTITYPROVIDER_API AdminDeleteUserRequest : public CognitoIdentityProviderRequest
26   {
27   public:
28     AdminDeleteUserRequest();
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.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "AdminDeleteUser"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
41     /**
42      * <p>The user pool ID for the user pool where you want to delete the user.</p>
43      */
GetUserPoolId()44     inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
45 
46     /**
47      * <p>The user pool ID for the user pool where you want to delete the user.</p>
48      */
UserPoolIdHasBeenSet()49     inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
50 
51     /**
52      * <p>The user pool ID for the user pool where you want to delete the user.</p>
53      */
SetUserPoolId(const Aws::String & value)54     inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
55 
56     /**
57      * <p>The user pool ID for the user pool where you want to delete the user.</p>
58      */
SetUserPoolId(Aws::String && value)59     inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
60 
61     /**
62      * <p>The user pool ID for the user pool where you want to delete the user.</p>
63      */
SetUserPoolId(const char * value)64     inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
65 
66     /**
67      * <p>The user pool ID for the user pool where you want to delete the user.</p>
68      */
WithUserPoolId(const Aws::String & value)69     inline AdminDeleteUserRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
70 
71     /**
72      * <p>The user pool ID for the user pool where you want to delete the user.</p>
73      */
WithUserPoolId(Aws::String && value)74     inline AdminDeleteUserRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
75 
76     /**
77      * <p>The user pool ID for the user pool where you want to delete the user.</p>
78      */
WithUserPoolId(const char * value)79     inline AdminDeleteUserRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
80 
81 
82     /**
83      * <p>The user name of the user you wish to delete.</p>
84      */
GetUsername()85     inline const Aws::String& GetUsername() const{ return m_username; }
86 
87     /**
88      * <p>The user name of the user you wish to delete.</p>
89      */
UsernameHasBeenSet()90     inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
91 
92     /**
93      * <p>The user name of the user you wish to delete.</p>
94      */
SetUsername(const Aws::String & value)95     inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
96 
97     /**
98      * <p>The user name of the user you wish to delete.</p>
99      */
SetUsername(Aws::String && value)100     inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
101 
102     /**
103      * <p>The user name of the user you wish to delete.</p>
104      */
SetUsername(const char * value)105     inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
106 
107     /**
108      * <p>The user name of the user you wish to delete.</p>
109      */
WithUsername(const Aws::String & value)110     inline AdminDeleteUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
111 
112     /**
113      * <p>The user name of the user you wish to delete.</p>
114      */
WithUsername(Aws::String && value)115     inline AdminDeleteUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
116 
117     /**
118      * <p>The user name of the user you wish to delete.</p>
119      */
WithUsername(const char * value)120     inline AdminDeleteUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
121 
122   private:
123 
124     Aws::String m_userPoolId;
125     bool m_userPoolIdHasBeenSet;
126 
127     Aws::String m_username;
128     bool m_usernameHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace CognitoIdentityProvider
133 } // namespace Aws
134