AWS SDK for C++  1.9.108
AWS SDK for C++
UserProfile.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace OpsWorks
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
44 
48  inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
49 
53  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
54 
58  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
59 
63  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
64 
68  inline UserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
69 
73  inline UserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
74 
78  inline UserProfile& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
79 
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
104  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 
109  inline UserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline UserProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 
119  inline UserProfile& WithName(const char* value) { SetName(value); return *this;}
120 
121 
125  inline const Aws::String& GetSshUsername() const{ return m_sshUsername; }
126 
130  inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; }
131 
135  inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
136 
140  inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::move(value); }
141 
145  inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); }
146 
150  inline UserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
151 
155  inline UserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
156 
160  inline UserProfile& WithSshUsername(const char* value) { SetSshUsername(value); return *this;}
161 
162 
166  inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
167 
171  inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
172 
176  inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
177 
181  inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
182 
186  inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
187 
191  inline UserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
192 
196  inline UserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
197 
201  inline UserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
202 
203 
210  inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; }
211 
218  inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; }
219 
226  inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
227 
234  inline UserProfile& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
235 
236  private:
237 
238  Aws::String m_iamUserArn;
239  bool m_iamUserArnHasBeenSet;
240 
241  Aws::String m_name;
242  bool m_nameHasBeenSet;
243 
244  Aws::String m_sshUsername;
245  bool m_sshUsernameHasBeenSet;
246 
247  Aws::String m_sshPublicKey;
248  bool m_sshPublicKeyHasBeenSet;
249 
250  bool m_allowSelfManagement;
251  bool m_allowSelfManagementHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace OpsWorks
256 } // namespace Aws
Aws::OpsWorks::Model::UserProfile::SetName
void SetName(Aws::String &&value)
Definition: UserProfile.h:99
Aws::OpsWorks::Model::UserProfile::WithAllowSelfManagement
UserProfile & WithAllowSelfManagement(bool value)
Definition: UserProfile.h:234
Aws::OpsWorks::Model::UserProfile::WithName
UserProfile & WithName(Aws::String &&value)
Definition: UserProfile.h:114
Aws::OpsWorks::Model::UserProfile::SetSshUsername
void SetSshUsername(const char *value)
Definition: UserProfile.h:145
Aws::OpsWorks::Model::UserProfile::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UserProfile.h:89
Aws::OpsWorks::Model::UserProfile::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: UserProfile.h:53
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::UserProfile
Definition: UserProfile.h:32
Aws::OpsWorks::Model::UserProfile::WithName
UserProfile & WithName(const char *value)
Definition: UserProfile.h:119
Aws::OpsWorks::Model::UserProfile::SetSshUsername
void SetSshUsername(const Aws::String &value)
Definition: UserProfile.h:135
Aws::OpsWorks::Model::UserProfile::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: UserProfile.h:58
Aws::OpsWorks::Model::UserProfile::GetAllowSelfManagement
bool GetAllowSelfManagement() const
Definition: UserProfile.h:210
Aws::OpsWorks::Model::UserProfile::operator=
UserProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::UserProfile::WithIamUserArn
UserProfile & WithIamUserArn(Aws::String &&value)
Definition: UserProfile.h:73
Aws::OpsWorks::Model::UserProfile::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: UserProfile.h:48
Aws::OpsWorks::Model::UserProfile::UserProfile
UserProfile()
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::UserProfile::WithName
UserProfile & WithName(const Aws::String &value)
Definition: UserProfile.h:109
Aws::OpsWorks::Model::UserProfile::SetSshPublicKey
void SetSshPublicKey(const Aws::String &value)
Definition: UserProfile.h:176
Aws::OpsWorks::Model::UserProfile::WithSshUsername
UserProfile & WithSshUsername(const Aws::String &value)
Definition: UserProfile.h:150
Aws::OpsWorks::Model::UserProfile::SetSshPublicKey
void SetSshPublicKey(const char *value)
Definition: UserProfile.h:186
Aws::OpsWorks::Model::UserProfile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::UserProfile::SetSshPublicKey
void SetSshPublicKey(Aws::String &&value)
Definition: UserProfile.h:181
Aws::OpsWorks::Model::UserProfile::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: UserProfile.h:43
Aws::OpsWorks::Model::UserProfile::SshUsernameHasBeenSet
bool SshUsernameHasBeenSet() const
Definition: UserProfile.h:130
Aws::OpsWorks::Model::UserProfile::GetName
const Aws::String & GetName() const
Definition: UserProfile.h:84
Aws::OpsWorks::Model::UserProfile::WithIamUserArn
UserProfile & WithIamUserArn(const Aws::String &value)
Definition: UserProfile.h:68
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::UserProfile::SetName
void SetName(const Aws::String &value)
Definition: UserProfile.h:94
Aws::OpsWorks::Model::UserProfile::WithSshUsername
UserProfile & WithSshUsername(Aws::String &&value)
Definition: UserProfile.h:155
Aws::OpsWorks::Model::UserProfile::UserProfile
UserProfile(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::UserProfile::WithSshPublicKey
UserProfile & WithSshPublicKey(const char *value)
Definition: UserProfile.h:201
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::UserProfile::WithSshUsername
UserProfile & WithSshUsername(const char *value)
Definition: UserProfile.h:160
Aws::OpsWorks::Model::UserProfile::AllowSelfManagementHasBeenSet
bool AllowSelfManagementHasBeenSet() const
Definition: UserProfile.h:218
Aws::OpsWorks::Model::UserProfile::GetSshUsername
const Aws::String & GetSshUsername() const
Definition: UserProfile.h:125
Aws::OpsWorks::Model::UserProfile::WithSshPublicKey
UserProfile & WithSshPublicKey(const Aws::String &value)
Definition: UserProfile.h:191
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::UserProfile::SshPublicKeyHasBeenSet
bool SshPublicKeyHasBeenSet() const
Definition: UserProfile.h:171
Aws::OpsWorks::Model::UserProfile::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: UserProfile.h:63
Aws::OpsWorks::Model::UserProfile::SetSshUsername
void SetSshUsername(Aws::String &&value)
Definition: UserProfile.h:140
Aws::OpsWorks::Model::UserProfile::GetSshPublicKey
const Aws::String & GetSshPublicKey() const
Definition: UserProfile.h:166
Aws::OpsWorks::Model::UserProfile::SetAllowSelfManagement
void SetAllowSelfManagement(bool value)
Definition: UserProfile.h:226
Aws::OpsWorks::Model::UserProfile::SetName
void SetName(const char *value)
Definition: UserProfile.h:104
Aws::OpsWorks::Model::UserProfile::WithSshPublicKey
UserProfile & WithSshPublicKey(Aws::String &&value)
Definition: UserProfile.h:196
Aws::OpsWorks::Model::UserProfile::WithIamUserArn
UserProfile & WithIamUserArn(const char *value)
Definition: UserProfile.h:78