AWS SDK for C++  1.9.156
AWS SDK for C++
UpdateLoginProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
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 "UpdateLoginProfile"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
46  inline const Aws::String& GetUserName() const{ return m_userName; }
47 
55  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
56 
64  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
65 
73  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
74 
82  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
83 
91  inline UpdateLoginProfileRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline UpdateLoginProfileRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline UpdateLoginProfileRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
126  inline const Aws::String& GetPassword() const{ return m_password; }
127 
142  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
143 
158  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
159 
174  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
175 
190  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
191 
206  inline UpdateLoginProfileRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
207 
222  inline UpdateLoginProfileRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
223 
238  inline UpdateLoginProfileRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
239 
240 
245  inline bool GetPasswordResetRequired() const{ return m_passwordResetRequired; }
246 
251  inline bool PasswordResetRequiredHasBeenSet() const { return m_passwordResetRequiredHasBeenSet; }
252 
257  inline void SetPasswordResetRequired(bool value) { m_passwordResetRequiredHasBeenSet = true; m_passwordResetRequired = value; }
258 
263  inline UpdateLoginProfileRequest& WithPasswordResetRequired(bool value) { SetPasswordResetRequired(value); return *this;}
264 
265  private:
266 
267  Aws::String m_userName;
268  bool m_userNameHasBeenSet;
269 
270  Aws::String m_password;
271  bool m_passwordHasBeenSet;
272 
273  bool m_passwordResetRequired;
274  bool m_passwordResetRequiredHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace IAM
279 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::UpdateLoginProfileRequest::WithUserName
UpdateLoginProfileRequest & WithUserName(const Aws::String &value)
Definition: UpdateLoginProfileRequest.h:91
Aws::IAM::Model::UpdateLoginProfileRequest::SetUserName
void SetUserName(const char *value)
Definition: UpdateLoginProfileRequest.h:82
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::UpdateLoginProfileRequest::SetPasswordResetRequired
void SetPasswordResetRequired(bool value)
Definition: UpdateLoginProfileRequest.h:257
Aws::IAM::Model::UpdateLoginProfileRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::UpdateLoginProfileRequest
Definition: UpdateLoginProfileRequest.h:22
Aws::IAM::Model::UpdateLoginProfileRequest::WithPasswordResetRequired
UpdateLoginProfileRequest & WithPasswordResetRequired(bool value)
Definition: UpdateLoginProfileRequest.h:263
Aws::IAM::Model::UpdateLoginProfileRequest::WithPassword
UpdateLoginProfileRequest & WithPassword(const Aws::String &value)
Definition: UpdateLoginProfileRequest.h:206
Aws::IAM::Model::UpdateLoginProfileRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: UpdateLoginProfileRequest.h:64
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::UpdateLoginProfileRequest::PasswordResetRequiredHasBeenSet
bool PasswordResetRequiredHasBeenSet() const
Definition: UpdateLoginProfileRequest.h:251
AWSString.h
Aws::IAM::Model::UpdateLoginProfileRequest::SetPassword
void SetPassword(const char *value)
Definition: UpdateLoginProfileRequest.h:190
Aws::IAM::Model::UpdateLoginProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::UpdateLoginProfileRequest::GetPassword
const Aws::String & GetPassword() const
Definition: UpdateLoginProfileRequest.h:126
Aws::IAM::Model::UpdateLoginProfileRequest::WithPassword
UpdateLoginProfileRequest & WithPassword(Aws::String &&value)
Definition: UpdateLoginProfileRequest.h:222
Aws::IAM::Model::UpdateLoginProfileRequest::WithUserName
UpdateLoginProfileRequest & WithUserName(const char *value)
Definition: UpdateLoginProfileRequest.h:109
Aws::IAM::Model::UpdateLoginProfileRequest::WithUserName
UpdateLoginProfileRequest & WithUserName(Aws::String &&value)
Definition: UpdateLoginProfileRequest.h:100
Aws::IAM::Model::UpdateLoginProfileRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: UpdateLoginProfileRequest.h:55
IAM_EXPORTS.h
Aws::IAM::Model::UpdateLoginProfileRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: UpdateLoginProfileRequest.h:174
Aws::IAM::Model::UpdateLoginProfileRequest::UpdateLoginProfileRequest
UpdateLoginProfileRequest()
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::UpdateLoginProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateLoginProfileRequest.h:30
Aws::IAM::Model::UpdateLoginProfileRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: UpdateLoginProfileRequest.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::UpdateLoginProfileRequest::GetPasswordResetRequired
bool GetPasswordResetRequired() const
Definition: UpdateLoginProfileRequest.h:245
Aws::IAM::Model::UpdateLoginProfileRequest::GetUserName
const Aws::String & GetUserName() const
Definition: UpdateLoginProfileRequest.h:46
Aws::IAM::Model::UpdateLoginProfileRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: UpdateLoginProfileRequest.h:158
Aws::IAM::Model::UpdateLoginProfileRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: UpdateLoginProfileRequest.h:142
Aws::IAM::Model::UpdateLoginProfileRequest::WithPassword
UpdateLoginProfileRequest & WithPassword(const char *value)
Definition: UpdateLoginProfileRequest.h:238