AWS SDK for C++  1.9.105
AWS SDK for C++
CreateUserProfileRequest.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 "CreateUserProfile"; }
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 CreateUserProfileRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
66 
70  inline CreateUserProfileRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
71 
75  inline CreateUserProfileRequest& 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 CreateUserProfileRequest& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
131 
139  inline CreateUserProfileRequest& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
140 
148  inline CreateUserProfileRequest& 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 CreateUserProfileRequest& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
180 
184  inline CreateUserProfileRequest& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
185 
189  inline CreateUserProfileRequest& 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 CreateUserProfileRequest& 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::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::CreateUserProfileRequest::GetAllowSelfManagement
bool GetAllowSelfManagement() const
Definition: CreateUserProfileRequest.h:198
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshUsername
CreateUserProfileRequest & WithSshUsername(const Aws::String &value)
Definition: CreateUserProfileRequest.h:130
Aws::OpsWorks::Model::CreateUserProfileRequest::WithIamUserArn
CreateUserProfileRequest & WithIamUserArn(const Aws::String &value)
Definition: CreateUserProfileRequest.h:65
Aws::OpsWorks::Model::CreateUserProfileRequest::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: CreateUserProfileRequest.h:55
Aws::OpsWorks::Model::CreateUserProfileRequest::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: CreateUserProfileRequest.h:60
Aws::OpsWorks::Model::CreateUserProfileRequest::SshPublicKeyHasBeenSet
bool SshPublicKeyHasBeenSet() const
Definition: CreateUserProfileRequest.h:159
Aws::OpsWorks::Model::CreateUserProfileRequest::WithIamUserArn
CreateUserProfileRequest & WithIamUserArn(Aws::String &&value)
Definition: CreateUserProfileRequest.h:70
Aws::OpsWorks::Model::CreateUserProfileRequest::WithIamUserArn
CreateUserProfileRequest & WithIamUserArn(const char *value)
Definition: CreateUserProfileRequest.h:75
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::CreateUserProfileRequest::GetSshUsername
const Aws::String & GetSshUsername() const
Definition: CreateUserProfileRequest.h:85
Aws::OpsWorks::Model::CreateUserProfileRequest::GetSshPublicKey
const Aws::String & GetSshPublicKey() const
Definition: CreateUserProfileRequest.h:154
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(Aws::String &&value)
Definition: CreateUserProfileRequest.h:169
Aws::OpsWorks::Model::CreateUserProfileRequest::AllowSelfManagementHasBeenSet
bool AllowSelfManagementHasBeenSet() const
Definition: CreateUserProfileRequest.h:206
OpsWorksRequest.h
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshUsername
void SetSshUsername(const char *value)
Definition: CreateUserProfileRequest.h:121
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshPublicKey
CreateUserProfileRequest & WithSshPublicKey(Aws::String &&value)
Definition: CreateUserProfileRequest.h:184
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshUsername
CreateUserProfileRequest & WithSshUsername(Aws::String &&value)
Definition: CreateUserProfileRequest.h:139
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(const Aws::String &value)
Definition: CreateUserProfileRequest.h:164
Aws::OpsWorks::Model::CreateUserProfileRequest::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: CreateUserProfileRequest.h:50
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshUsername
void SetSshUsername(const Aws::String &value)
Definition: CreateUserProfileRequest.h:103
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshPublicKey
CreateUserProfileRequest & WithSshPublicKey(const char *value)
Definition: CreateUserProfileRequest.h:189
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshPublicKey
CreateUserProfileRequest & WithSshPublicKey(const Aws::String &value)
Definition: CreateUserProfileRequest.h:179
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshPublicKey
void SetSshPublicKey(const char *value)
Definition: CreateUserProfileRequest.h:174
AWSString.h
Aws::OpsWorks::Model::CreateUserProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateUserProfileRequest.h:30
Aws::OpsWorks::Model::CreateUserProfileRequest::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: CreateUserProfileRequest.h:45
Aws::OpsWorks::Model::CreateUserProfileRequest::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: CreateUserProfileRequest.h:40
Aws::OpsWorks::Model::CreateUserProfileRequest::SetSshUsername
void SetSshUsername(Aws::String &&value)
Definition: CreateUserProfileRequest.h:112
Aws::OpsWorks::Model::CreateUserProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::CreateUserProfileRequest::WithSshUsername
CreateUserProfileRequest & WithSshUsername(const char *value)
Definition: CreateUserProfileRequest.h:148
Aws::OpsWorks::Model::CreateUserProfileRequest
Definition: CreateUserProfileRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::CreateUserProfileRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::CreateUserProfileRequest::WithAllowSelfManagement
CreateUserProfileRequest & WithAllowSelfManagement(bool value)
Definition: CreateUserProfileRequest.h:222
Aws::OpsWorks::Model::CreateUserProfileRequest::SshUsernameHasBeenSet
bool SshUsernameHasBeenSet() const
Definition: CreateUserProfileRequest.h:94
Aws::OpsWorks::Model::CreateUserProfileRequest::CreateUserProfileRequest
CreateUserProfileRequest()
Aws::OpsWorks::Model::CreateUserProfileRequest::SetAllowSelfManagement
void SetAllowSelfManagement(bool value)
Definition: CreateUserProfileRequest.h:214