AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateUserProfileRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace OpsWorks
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 "UpdateUserProfile"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
41 
45  inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
46 
50  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
51 
55  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
56 
60  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
61 
65  inline UpdateUserProfileRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
66 
70  inline UpdateUserProfileRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
71 
75  inline UpdateUserProfileRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
76 
77 
85  inline const Aws::String& GetSshUsername() const{ return m_sshUsername; }
86 
94  inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; }
95 
103  inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
104 
112  inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::move(value); }
113 
121  inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); }
122 
130  inline UpdateUserProfileRequest& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
131 
139  inline UpdateUserProfileRequest& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
140 
148  inline UpdateUserProfileRequest& WithSshUsername(const char* value) { SetSshUsername(value); return *this;}
149 
150 
154  inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
155 
159  inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
160 
164  inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
165 
169  inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
170 
174  inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
175 
179  inline UpdateUserProfileRequest& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
180 
184  inline UpdateUserProfileRequest& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
185 
189  inline UpdateUserProfileRequest& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
190 
191 
198  inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; }
199 
206  inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; }
207 
214  inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
215 
222  inline UpdateUserProfileRequest& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
223 
224  private:
225 
226  Aws::String m_iamUserArn;
227  bool m_iamUserArnHasBeenSet;
228 
229  Aws::String m_sshUsername;
230  bool m_sshUsernameHasBeenSet;
231 
232  Aws::String m_sshPublicKey;
233  bool m_sshPublicKeyHasBeenSet;
234 
235  bool m_allowSelfManagement;
236  bool m_allowSelfManagementHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace OpsWorks
241 } // namespace Aws
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:164
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetSshPublicKey
const Aws::String & GetSshPublicKey() const
Definition: UpdateUserProfileRequest.h:154
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshUsername
void SetSshUsername(const char *value)
Definition: UpdateUserProfileRequest.h:121
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateUserProfileRequest.h:30
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:55
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshPublicKey
UpdateUserProfileRequest & WithSshPublicKey(const char *value)
Definition: UpdateUserProfileRequest.h:189
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshUsername
UpdateUserProfileRequest & WithSshUsername(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:130
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshUsername
void SetSshUsername(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:103
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshUsername
UpdateUserProfileRequest & WithSshUsername(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:139
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshPublicKey
UpdateUserProfileRequest & WithSshPublicKey(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:184
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithIamUserArn
UpdateUserProfileRequest & WithIamUserArn(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:65
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetAllowSelfManagement
bool GetAllowSelfManagement() const
Definition: UpdateUserProfileRequest.h:198
OpsWorksRequest.h
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:50
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetSshUsername
const Aws::String & GetSshUsername() const
Definition: UpdateUserProfileRequest.h:85
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:169
Aws::OpsWorks::Model::UpdateUserProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshUsername
void SetSshUsername(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:112
Aws::OpsWorks::Model::UpdateUserProfileRequest::AllowSelfManagementHasBeenSet
bool AllowSelfManagementHasBeenSet() const
Definition: UpdateUserProfileRequest.h:206
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: UpdateUserProfileRequest.h:60
Aws::OpsWorks::Model::UpdateUserProfileRequest::SshUsernameHasBeenSet
bool SshUsernameHasBeenSet() const
Definition: UpdateUserProfileRequest.h:94
AWSString.h
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetAllowSelfManagement
void SetAllowSelfManagement(bool value)
Definition: UpdateUserProfileRequest.h:214
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithIamUserArn
UpdateUserProfileRequest & WithIamUserArn(Aws::String &&value)
Definition: UpdateUserProfileRequest.h:70
Aws::OpsWorks::Model::UpdateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(const char *value)
Definition: UpdateUserProfileRequest.h:174
Aws::OpsWorks::Model::UpdateUserProfileRequest::SshPublicKeyHasBeenSet
bool SshPublicKeyHasBeenSet() const
Definition: UpdateUserProfileRequest.h:159
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::UpdateUserProfileRequest::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: UpdateUserProfileRequest.h:45
Aws::OpsWorks::Model::UpdateUserProfileRequest::UpdateUserProfileRequest
UpdateUserProfileRequest()
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithIamUserArn
UpdateUserProfileRequest & WithIamUserArn(const char *value)
Definition: UpdateUserProfileRequest.h:75
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshUsername
UpdateUserProfileRequest & WithSshUsername(const char *value)
Definition: UpdateUserProfileRequest.h:148
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithAllowSelfManagement
UpdateUserProfileRequest & WithAllowSelfManagement(bool value)
Definition: UpdateUserProfileRequest.h:222
Aws::OpsWorks::Model::UpdateUserProfileRequest::WithSshPublicKey
UpdateUserProfileRequest & WithSshPublicKey(const Aws::String &value)
Definition: UpdateUserProfileRequest.h:179
Aws::OpsWorks::Model::UpdateUserProfileRequest
Definition: UpdateUserProfileRequest.h:22
Aws::OpsWorks::Model::UpdateUserProfileRequest::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: UpdateUserProfileRequest.h:40