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/workdocs/WorkDocs_EXPORTS.h>
8 #include <aws/workdocs/WorkDocsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkDocs
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_WORKDOCS_API DeleteUserRequest : public WorkDocsRequest
22   {
23   public:
24     DeleteUserRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DeleteUser"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>Amazon WorkDocs authentication token. Do not set this field when using
39      * administrative API actions, as in accessing the API using AWS credentials.</p>
40      */
GetAuthenticationToken()41     inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
42 
43     /**
44      * <p>Amazon WorkDocs authentication token. Do not set this field when using
45      * administrative API actions, as in accessing the API using AWS credentials.</p>
46      */
AuthenticationTokenHasBeenSet()47     inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
48 
49     /**
50      * <p>Amazon WorkDocs authentication token. Do not set this field when using
51      * administrative API actions, as in accessing the API using AWS credentials.</p>
52      */
SetAuthenticationToken(const Aws::String & value)53     inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
54 
55     /**
56      * <p>Amazon WorkDocs authentication token. Do not set this field when using
57      * administrative API actions, as in accessing the API using AWS credentials.</p>
58      */
SetAuthenticationToken(Aws::String && value)59     inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
60 
61     /**
62      * <p>Amazon WorkDocs authentication token. Do not set this field when using
63      * administrative API actions, as in accessing the API using AWS credentials.</p>
64      */
SetAuthenticationToken(const char * value)65     inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
66 
67     /**
68      * <p>Amazon WorkDocs authentication token. Do not set this field when using
69      * administrative API actions, as in accessing the API using AWS credentials.</p>
70      */
WithAuthenticationToken(const Aws::String & value)71     inline DeleteUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
72 
73     /**
74      * <p>Amazon WorkDocs authentication token. Do not set this field when using
75      * administrative API actions, as in accessing the API using AWS credentials.</p>
76      */
WithAuthenticationToken(Aws::String && value)77     inline DeleteUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
78 
79     /**
80      * <p>Amazon WorkDocs authentication token. Do not set this field when using
81      * administrative API actions, as in accessing the API using AWS credentials.</p>
82      */
WithAuthenticationToken(const char * value)83     inline DeleteUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
84 
85 
86     /**
87      * <p>The ID of the user.</p>
88      */
GetUserId()89     inline const Aws::String& GetUserId() const{ return m_userId; }
90 
91     /**
92      * <p>The ID of the user.</p>
93      */
UserIdHasBeenSet()94     inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
95 
96     /**
97      * <p>The ID of the user.</p>
98      */
SetUserId(const Aws::String & value)99     inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
100 
101     /**
102      * <p>The ID of the user.</p>
103      */
SetUserId(Aws::String && value)104     inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
105 
106     /**
107      * <p>The ID of the user.</p>
108      */
SetUserId(const char * value)109     inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
110 
111     /**
112      * <p>The ID of the user.</p>
113      */
WithUserId(const Aws::String & value)114     inline DeleteUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
115 
116     /**
117      * <p>The ID of the user.</p>
118      */
WithUserId(Aws::String && value)119     inline DeleteUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
120 
121     /**
122      * <p>The ID of the user.</p>
123      */
WithUserId(const char * value)124     inline DeleteUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
125 
126   private:
127 
128     Aws::String m_authenticationToken;
129     bool m_authenticationTokenHasBeenSet;
130 
131     Aws::String m_userId;
132     bool m_userIdHasBeenSet;
133   };
134 
135 } // namespace Model
136 } // namespace WorkDocs
137 } // namespace Aws
138