AWS SDK for C++  1.8.129
AWS SDK for C++
CreateLoginProfileRequest.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 "CreateLoginProfile"; }
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 CreateLoginProfileRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline CreateLoginProfileRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline CreateLoginProfileRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
124  inline const Aws::String& GetPassword() const{ return m_password; }
125 
138  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
139 
152  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
153 
166  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
167 
180  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
181 
194  inline CreateLoginProfileRequest& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
195 
208  inline CreateLoginProfileRequest& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
209 
222  inline CreateLoginProfileRequest& WithPassword(const char* value) { SetPassword(value); return *this;}
223 
224 
229  inline bool GetPasswordResetRequired() const{ return m_passwordResetRequired; }
230 
235  inline bool PasswordResetRequiredHasBeenSet() const { return m_passwordResetRequiredHasBeenSet; }
236 
241  inline void SetPasswordResetRequired(bool value) { m_passwordResetRequiredHasBeenSet = true; m_passwordResetRequired = value; }
242 
247  inline CreateLoginProfileRequest& WithPasswordResetRequired(bool value) { SetPasswordResetRequired(value); return *this;}
248 
249  private:
250 
251  Aws::String m_userName;
252  bool m_userNameHasBeenSet;
253 
254  Aws::String m_password;
255  bool m_passwordHasBeenSet;
256 
257  bool m_passwordResetRequired;
258  bool m_passwordResetRequiredHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace IAM
263 } // namespace Aws
Aws::IAM::Model::CreateLoginProfileRequest::GetPasswordResetRequired
bool GetPasswordResetRequired() const
Definition: CreateLoginProfileRequest.h:229
Aws::IAM::Model::CreateLoginProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IAM::Model::CreateLoginProfileRequest::GetPassword
const Aws::String & GetPassword() const
Definition: CreateLoginProfileRequest.h:124
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::CreateLoginProfileRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: CreateLoginProfileRequest.h:55
Aws::IAM::Model::CreateLoginProfileRequest::WithUserName
CreateLoginProfileRequest & WithUserName(const char *value)
Definition: CreateLoginProfileRequest.h:109
Aws::IAM::Model::CreateLoginProfileRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: CreateLoginProfileRequest.h:64
Aws::IAM::Model::CreateLoginProfileRequest::WithUserName
CreateLoginProfileRequest & WithUserName(Aws::String &&value)
Definition: CreateLoginProfileRequest.h:100
Aws::IAM::Model::CreateLoginProfileRequest::SetPasswordResetRequired
void SetPasswordResetRequired(bool value)
Definition: CreateLoginProfileRequest.h:241
Aws::IAM::Model::CreateLoginProfileRequest::SetUserName
void SetUserName(const char *value)
Definition: CreateLoginProfileRequest.h:82
Aws::IAM::Model::CreateLoginProfileRequest::WithPassword
CreateLoginProfileRequest & WithPassword(Aws::String &&value)
Definition: CreateLoginProfileRequest.h:208
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::CreateLoginProfileRequest::WithUserName
CreateLoginProfileRequest & WithUserName(const Aws::String &value)
Definition: CreateLoginProfileRequest.h:91
Aws::IAM::Model::CreateLoginProfileRequest::SetPassword
void SetPassword(const char *value)
Definition: CreateLoginProfileRequest.h:180
Aws::IAM::Model::CreateLoginProfileRequest
Definition: CreateLoginProfileRequest.h:22
Aws::IAM::Model::CreateLoginProfileRequest::WithPasswordResetRequired
CreateLoginProfileRequest & WithPasswordResetRequired(bool value)
Definition: CreateLoginProfileRequest.h:247
Aws::IAM::Model::CreateLoginProfileRequest::PasswordResetRequiredHasBeenSet
bool PasswordResetRequiredHasBeenSet() const
Definition: CreateLoginProfileRequest.h:235
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::CreateLoginProfileRequest::GetUserName
const Aws::String & GetUserName() const
Definition: CreateLoginProfileRequest.h:46
Aws::IAM::Model::CreateLoginProfileRequest::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CreateLoginProfileRequest.h:138
Aws::IAM::Model::CreateLoginProfileRequest::SetPassword
void SetPassword(const Aws::String &value)
Definition: CreateLoginProfileRequest.h:152
AWSString.h
Aws::IAM::Model::CreateLoginProfileRequest::SetPassword
void SetPassword(Aws::String &&value)
Definition: CreateLoginProfileRequest.h:166
IAM_EXPORTS.h
Aws::IAM::Model::CreateLoginProfileRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: CreateLoginProfileRequest.h:73
Aws::IAM::Model::CreateLoginProfileRequest::WithPassword
CreateLoginProfileRequest & WithPassword(const Aws::String &value)
Definition: CreateLoginProfileRequest.h:194
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::CreateLoginProfileRequest::CreateLoginProfileRequest
CreateLoginProfileRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::CreateLoginProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLoginProfileRequest.h:30
Aws::IAM::Model::CreateLoginProfileRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::CreateLoginProfileRequest::WithPassword
CreateLoginProfileRequest & WithPassword(const char *value)
Definition: CreateLoginProfileRequest.h:222