AWS SDK for C++  1.9.1
AWS SDK for C++
ResetUserPasswordRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DirectoryService
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 "ResetUserPassword"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetDirectoryId() const{ return m_directoryId; }
42 
47  inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; }
48 
53  inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; }
54 
59  inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); }
60 
65  inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); }
66 
71  inline ResetUserPasswordRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;}
72 
77  inline ResetUserPasswordRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;}
78 
83  inline ResetUserPasswordRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;}
84 
85 
89  inline const Aws::String& GetUserName() const{ return m_userName; }
90 
94  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
95 
99  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
100 
104  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
105 
109  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
110 
114  inline ResetUserPasswordRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
115 
119  inline ResetUserPasswordRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
120 
124  inline ResetUserPasswordRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
125 
126 
130  inline const Aws::String& GetNewPassword() const{ return m_newPassword; }
131 
135  inline bool NewPasswordHasBeenSet() const { return m_newPasswordHasBeenSet; }
136 
140  inline void SetNewPassword(const Aws::String& value) { m_newPasswordHasBeenSet = true; m_newPassword = value; }
141 
145  inline void SetNewPassword(Aws::String&& value) { m_newPasswordHasBeenSet = true; m_newPassword = std::move(value); }
146 
150  inline void SetNewPassword(const char* value) { m_newPasswordHasBeenSet = true; m_newPassword.assign(value); }
151 
155  inline ResetUserPasswordRequest& WithNewPassword(const Aws::String& value) { SetNewPassword(value); return *this;}
156 
160  inline ResetUserPasswordRequest& WithNewPassword(Aws::String&& value) { SetNewPassword(std::move(value)); return *this;}
161 
165  inline ResetUserPasswordRequest& WithNewPassword(const char* value) { SetNewPassword(value); return *this;}
166 
167  private:
168 
169  Aws::String m_directoryId;
170  bool m_directoryIdHasBeenSet;
171 
172  Aws::String m_userName;
173  bool m_userNameHasBeenSet;
174 
175  Aws::String m_newPassword;
176  bool m_newPasswordHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace DirectoryService
181 } // namespace Aws
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:99
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithUserName
ResetUserPasswordRequest & WithUserName(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:119
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetDirectoryId
void SetDirectoryId(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:59
Aws::DirectoryService::Model::ResetUserPasswordRequest::NewPasswordHasBeenSet
bool NewPasswordHasBeenSet() const
Definition: ResetUserPasswordRequest.h:135
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithDirectoryId
ResetUserPasswordRequest & WithDirectoryId(const char *value)
Definition: ResetUserPasswordRequest.h:83
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithNewPassword
ResetUserPasswordRequest & WithNewPassword(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:160
DirectoryService_EXPORTS.h
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithUserName
ResetUserPasswordRequest & WithUserName(const char *value)
Definition: ResetUserPasswordRequest.h:124
Aws::DirectoryService::Model::ResetUserPasswordRequest::GetUserName
const Aws::String & GetUserName() const
Definition: ResetUserPasswordRequest.h:89
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetDirectoryId
void SetDirectoryId(const char *value)
Definition: ResetUserPasswordRequest.h:65
Aws::DirectoryService::DirectoryServiceRequest
Definition: DirectoryServiceRequest.h:17
Aws::DirectoryService::Model::ResetUserPasswordRequest::DirectoryIdHasBeenSet
bool DirectoryIdHasBeenSet() const
Definition: ResetUserPasswordRequest.h:47
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetNewPassword
void SetNewPassword(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:145
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithNewPassword
ResetUserPasswordRequest & WithNewPassword(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:155
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithUserName
ResetUserPasswordRequest & WithUserName(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:114
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithNewPassword
ResetUserPasswordRequest & WithNewPassword(const char *value)
Definition: ResetUserPasswordRequest.h:165
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithDirectoryId
ResetUserPasswordRequest & WithDirectoryId(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:77
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetDirectoryId
void SetDirectoryId(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:53
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetNewPassword
void SetNewPassword(const char *value)
Definition: ResetUserPasswordRequest.h:150
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: ResetUserPasswordRequest.h:104
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetUserName
void SetUserName(const char *value)
Definition: ResetUserPasswordRequest.h:109
Aws::DirectoryService::Model::ResetUserPasswordRequest::GetDirectoryId
const Aws::String & GetDirectoryId() const
Definition: ResetUserPasswordRequest.h:41
AWSString.h
Aws::DirectoryService::Model::ResetUserPasswordRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetUserPasswordRequest.h:30
Aws::DirectoryService::Model::ResetUserPasswordRequest
Definition: ResetUserPasswordRequest.h:22
Aws::DirectoryService::Model::ResetUserPasswordRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DirectoryService::Model::ResetUserPasswordRequest::WithDirectoryId
ResetUserPasswordRequest & WithDirectoryId(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ResetUserPasswordRequest::ResetUserPasswordRequest
ResetUserPasswordRequest()
Aws::DirectoryService::Model::ResetUserPasswordRequest::SetNewPassword
void SetNewPassword(const Aws::String &value)
Definition: ResetUserPasswordRequest.h:140
Aws::DirectoryService::Model::ResetUserPasswordRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DirectoryService::Model::ResetUserPasswordRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: ResetUserPasswordRequest.h:94
Aws::DirectoryService::Model::ResetUserPasswordRequest::GetNewPassword
const Aws::String & GetNewPassword() const
Definition: ResetUserPasswordRequest.h:130
DirectoryServiceRequest.h