AWS SDK for C++  1.9.131
AWS SDK for C++
ActivateUserRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkDocs
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "ActivateUser"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetUserId() const{ return m_userId; }
41 
45  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
46 
50  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
51 
55  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
56 
60  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
61 
65  inline ActivateUserRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
66 
70  inline ActivateUserRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
71 
75  inline ActivateUserRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
76 
77 
82  inline const Aws::String& GetAuthenticationToken() const{ return m_authenticationToken; }
83 
88  inline bool AuthenticationTokenHasBeenSet() const { return m_authenticationTokenHasBeenSet; }
89 
94  inline void SetAuthenticationToken(const Aws::String& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = value; }
95 
100  inline void SetAuthenticationToken(Aws::String&& value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken = std::move(value); }
101 
106  inline void SetAuthenticationToken(const char* value) { m_authenticationTokenHasBeenSet = true; m_authenticationToken.assign(value); }
107 
112  inline ActivateUserRequest& WithAuthenticationToken(const Aws::String& value) { SetAuthenticationToken(value); return *this;}
113 
118  inline ActivateUserRequest& WithAuthenticationToken(Aws::String&& value) { SetAuthenticationToken(std::move(value)); return *this;}
119 
124  inline ActivateUserRequest& WithAuthenticationToken(const char* value) { SetAuthenticationToken(value); return *this;}
125 
126  private:
127 
128  Aws::String m_userId;
129  bool m_userIdHasBeenSet;
130 
131  Aws::String m_authenticationToken;
132  bool m_authenticationTokenHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace WorkDocs
137 } // namespace Aws
Aws::WorkDocs::Model::ActivateUserRequest::WithUserId
ActivateUserRequest & WithUserId(const Aws::String &value)
Definition: ActivateUserRequest.h:65
Aws::WorkDocs::Model::ActivateUserRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: ActivateUserRequest.h:55
Aws::WorkDocs::Model::ActivateUserRequest::GetAuthenticationToken
const Aws::String & GetAuthenticationToken() const
Definition: ActivateUserRequest.h:82
Aws::WorkDocs::Model::ActivateUserRequest
Definition: ActivateUserRequest.h:22
Aws::WorkDocs::Model::ActivateUserRequest::SetUserId
void SetUserId(const char *value)
Definition: ActivateUserRequest.h:60
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::ActivateUserRequest::AuthenticationTokenHasBeenSet
bool AuthenticationTokenHasBeenSet() const
Definition: ActivateUserRequest.h:88
Aws::WorkDocs::Model::ActivateUserRequest::WithAuthenticationToken
ActivateUserRequest & WithAuthenticationToken(Aws::String &&value)
Definition: ActivateUserRequest.h:118
Aws::WorkDocs::Model::ActivateUserRequest::SetAuthenticationToken
void SetAuthenticationToken(const Aws::String &value)
Definition: ActivateUserRequest.h:94
Aws::WorkDocs::Model::ActivateUserRequest::SetAuthenticationToken
void SetAuthenticationToken(Aws::String &&value)
Definition: ActivateUserRequest.h:100
Aws::WorkDocs::Model::ActivateUserRequest::WithAuthenticationToken
ActivateUserRequest & WithAuthenticationToken(const char *value)
Definition: ActivateUserRequest.h:124
Aws::WorkDocs::Model::ActivateUserRequest::ActivateUserRequest
ActivateUserRequest()
Aws::WorkDocs::Model::ActivateUserRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ActivateUserRequest.h:30
WorkDocs_EXPORTS.h
AWSString.h
Aws::WorkDocs::Model::ActivateUserRequest::WithUserId
ActivateUserRequest & WithUserId(Aws::String &&value)
Definition: ActivateUserRequest.h:70
Aws::WorkDocs::Model::ActivateUserRequest::WithUserId
ActivateUserRequest & WithUserId(const char *value)
Definition: ActivateUserRequest.h:75
Aws::WorkDocs::Model::ActivateUserRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: ActivateUserRequest.h:45
Aws::WorkDocs::Model::ActivateUserRequest::SetAuthenticationToken
void SetAuthenticationToken(const char *value)
Definition: ActivateUserRequest.h:106
Aws::WorkDocs::Model::ActivateUserRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::ActivateUserRequest::SerializePayload
Aws::String SerializePayload() const override
WorkDocsRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::ActivateUserRequest::GetUserId
const Aws::String & GetUserId() const
Definition: ActivateUserRequest.h:40
Aws::WorkDocs::Model::ActivateUserRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: ActivateUserRequest.h:50
Aws::WorkDocs::Model::ActivateUserRequest::WithAuthenticationToken
ActivateUserRequest & WithAuthenticationToken(const Aws::String &value)
Definition: ActivateUserRequest.h:112