AWS SDK for C++  1.9.104
AWS SDK for C++
ResetPasswordRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace WorkMail
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 "ResetPassword"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
42 
47  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
48 
53  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
54 
59  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
60 
65  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
66 
71  inline ResetPasswordRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
72 
77  inline ResetPasswordRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
78 
83  inline ResetPasswordRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
84 
85 
89  inline const Aws::String& GetUserId() const{ return m_userId; }
90 
94  inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
95 
99  inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
100 
104  inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
105 
109  inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
110 
114  inline ResetPasswordRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
115 
119  inline ResetPasswordRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
120 
124  inline ResetPasswordRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
125 
126 
130  inline const Aws::String& GetPassword() const{ return m_password; }
131 
135  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
136 
140  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
141 
145  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
146 
150  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
151 
155  inline ResetPasswordRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
156 
160  inline ResetPasswordRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
161 
165  inline ResetPasswordRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
166 
167  private:
168 
169  Aws::String m_organizationId;
170  bool m_organizationIdHasBeenSet;
171 
172  Aws::String m_userId;
173  bool m_userIdHasBeenSet;
174 
175  Aws::String m_password;
176  bool m_passwordHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace WorkMail
181 } // namespace Aws
Aws::WorkMail::Model::ResetPasswordRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: ResetPasswordRequest.h:59
Aws::WorkMail::Model::ResetPasswordRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: ResetPasswordRequest.h:53
Aws::WorkMail::Model::ResetPasswordRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::ResetPasswordRequest::SetUserId
void SetUserId(const Aws::String &value)
Definition: ResetPasswordRequest.h:99
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::ResetPasswordRequest::WithOrganizationId
ResetPasswordRequest & WithOrganizationId(const char *value)
Definition: ResetPasswordRequest.h:83
Aws::WorkMail::Model::ResetPasswordRequest::ResetPasswordRequest
ResetPasswordRequest()
Aws::WorkMail::Model::ResetPasswordRequest::WithPassword
ResetPasswordRequest & WithPassword(Aws::String &&value)
Definition: ResetPasswordRequest.h:160
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::ResetPasswordRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: ResetPasswordRequest.h:145
Aws::WorkMail::Model::ResetPasswordRequest::WithPassword
ResetPasswordRequest & WithPassword(const char *value)
Definition: ResetPasswordRequest.h:165
Aws::WorkMail::Model::ResetPasswordRequest::SetPassword
void SetPassword(const char *value)
Definition: ResetPasswordRequest.h:150
Aws::WorkMail::Model::ResetPasswordRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: ResetPasswordRequest.h:41
WorkMail_EXPORTS.h
WorkMailRequest.h
Aws::WorkMail::Model::ResetPasswordRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: ResetPasswordRequest.h:140
Aws::WorkMail::Model::ResetPasswordRequest::UserIdHasBeenSet
bool UserIdHasBeenSet() const
Definition: ResetPasswordRequest.h:94
Aws::WorkMail::Model::ResetPasswordRequest::SetUserId
void SetUserId(const char *value)
Definition: ResetPasswordRequest.h:109
Aws::WorkMail::Model::ResetPasswordRequest::GetUserId
const Aws::String & GetUserId() const
Definition: ResetPasswordRequest.h:89
Aws::WorkMail::Model::ResetPasswordRequest::WithUserId
ResetPasswordRequest & WithUserId(Aws::String &&value)
Definition: ResetPasswordRequest.h:119
AWSString.h
Aws::WorkMail::Model::ResetPasswordRequest::WithUserId
ResetPasswordRequest & WithUserId(const char *value)
Definition: ResetPasswordRequest.h:124
Aws::WorkMail::Model::ResetPasswordRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::ResetPasswordRequest
Definition: ResetPasswordRequest.h:22
Aws::WorkMail::Model::ResetPasswordRequest::WithPassword
ResetPasswordRequest & WithPassword(const Aws::String &value)
Definition: ResetPasswordRequest.h:155
Aws::WorkMail::Model::ResetPasswordRequest::GetPassword
const Aws::String & GetPassword() const
Definition: ResetPasswordRequest.h:130
Aws::WorkMail::Model::ResetPasswordRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: ResetPasswordRequest.h:47
Aws::WorkMail::Model::ResetPasswordRequest::WithOrganizationId
ResetPasswordRequest & WithOrganizationId(const Aws::String &value)
Definition: ResetPasswordRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::ResetPasswordRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResetPasswordRequest.h:30
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::ResetPasswordRequest::WithUserId
ResetPasswordRequest & WithUserId(const Aws::String &value)
Definition: ResetPasswordRequest.h:114
Aws::WorkMail::Model::ResetPasswordRequest::WithOrganizationId
ResetPasswordRequest & WithOrganizationId(Aws::String &&value)
Definition: ResetPasswordRequest.h:77
Aws::WorkMail::Model::ResetPasswordRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: ResetPasswordRequest.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::ResetPasswordRequest::SetUserId
void SetUserId(Aws::String &&value)
Definition: ResetPasswordRequest.h:104
Aws::WorkMail::Model::ResetPasswordRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: ResetPasswordRequest.h:135