AWS SDK for C++  1.9.109
AWS SDK for C++
SelfUserProfile.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 SelfUserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
69 
73  inline SelfUserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
74 
78  inline SelfUserProfile& 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 SelfUserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline SelfUserProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 
119  inline SelfUserProfile& 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 SelfUserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
151 
155  inline SelfUserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
156 
160  inline SelfUserProfile& 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 SelfUserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
192 
196  inline SelfUserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
197 
201  inline SelfUserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
202 
203  private:
204 
205  Aws::String m_iamUserArn;
206  bool m_iamUserArnHasBeenSet;
207 
208  Aws::String m_name;
209  bool m_nameHasBeenSet;
210 
211  Aws::String m_sshUsername;
212  bool m_sshUsernameHasBeenSet;
213 
214  Aws::String m_sshPublicKey;
215  bool m_sshPublicKeyHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace OpsWorks
220 } // namespace Aws
Aws::OpsWorks::Model::SelfUserProfile::GetName
const Aws::String & GetName() const
Definition: SelfUserProfile.h:84
Aws::OpsWorks::Model::SelfUserProfile
Definition: SelfUserProfile.h:32
Aws::OpsWorks::Model::SelfUserProfile::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::SelfUserProfile::SetSshPublicKey
void SetSshPublicKey(const Aws::String &value)
Definition: SelfUserProfile.h:176
Aws::OpsWorks::Model::SelfUserProfile::WithName
SelfUserProfile & WithName(const char *value)
Definition: SelfUserProfile.h:119
Aws::OpsWorks::Model::SelfUserProfile::SetSshUsername
void SetSshUsername(const char *value)
Definition: SelfUserProfile.h:145
Aws::OpsWorks::Model::SelfUserProfile::SshUsernameHasBeenSet
bool SshUsernameHasBeenSet() const
Definition: SelfUserProfile.h:130
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::SelfUserProfile::GetSshUsername
const Aws::String & GetSshUsername() const
Definition: SelfUserProfile.h:125
Aws::OpsWorks::Model::SelfUserProfile::WithSshPublicKey
SelfUserProfile & WithSshPublicKey(const Aws::String &value)
Definition: SelfUserProfile.h:191
Aws::OpsWorks::Model::SelfUserProfile::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: SelfUserProfile.h:43
Aws::OpsWorks::Model::SelfUserProfile::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: SelfUserProfile.h:53
Aws::OpsWorks::Model::SelfUserProfile::SelfUserProfile
SelfUserProfile(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::SelfUserProfile::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: SelfUserProfile.h:63
Aws::OpsWorks::Model::SelfUserProfile::SetSshUsername
void SetSshUsername(Aws::String &&value)
Definition: SelfUserProfile.h:140
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::SelfUserProfile::SetName
void SetName(const char *value)
Definition: SelfUserProfile.h:104
Aws::OpsWorks::Model::SelfUserProfile::SetName
void SetName(const Aws::String &value)
Definition: SelfUserProfile.h:94
Aws::OpsWorks::Model::SelfUserProfile::WithName
SelfUserProfile & WithName(Aws::String &&value)
Definition: SelfUserProfile.h:114
Aws::OpsWorks::Model::SelfUserProfile::SetSshUsername
void SetSshUsername(const Aws::String &value)
Definition: SelfUserProfile.h:135
Aws::OpsWorks::Model::SelfUserProfile::WithSshPublicKey
SelfUserProfile & WithSshPublicKey(Aws::String &&value)
Definition: SelfUserProfile.h:196
Aws::OpsWorks::Model::SelfUserProfile::SetSshPublicKey
void SetSshPublicKey(Aws::String &&value)
Definition: SelfUserProfile.h:181
Aws::OpsWorks::Model::SelfUserProfile::WithName
SelfUserProfile & WithName(const Aws::String &value)
Definition: SelfUserProfile.h:109
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::SelfUserProfile::SelfUserProfile
SelfUserProfile()
Aws::OpsWorks::Model::SelfUserProfile::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: SelfUserProfile.h:58
Aws::OpsWorks::Model::SelfUserProfile::WithSshUsername
SelfUserProfile & WithSshUsername(const char *value)
Definition: SelfUserProfile.h:160
Aws::OpsWorks::Model::SelfUserProfile::GetSshPublicKey
const Aws::String & GetSshPublicKey() const
Definition: SelfUserProfile.h:166
Aws::OpsWorks::Model::SelfUserProfile::NameHasBeenSet
bool NameHasBeenSet() const
Definition: SelfUserProfile.h:89
Aws::OpsWorks::Model::SelfUserProfile::WithIamUserArn
SelfUserProfile & WithIamUserArn(Aws::String &&value)
Definition: SelfUserProfile.h:73
Aws::OpsWorks::Model::SelfUserProfile::SetName
void SetName(Aws::String &&value)
Definition: SelfUserProfile.h:99
Aws::OpsWorks::Model::SelfUserProfile::operator=
SelfUserProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::SelfUserProfile::WithIamUserArn
SelfUserProfile & WithIamUserArn(const char *value)
Definition: SelfUserProfile.h:78
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::SelfUserProfile::WithSshUsername
SelfUserProfile & WithSshUsername(Aws::String &&value)
Definition: SelfUserProfile.h:155
Aws::OpsWorks::Model::SelfUserProfile::WithSshUsername
SelfUserProfile & WithSshUsername(const Aws::String &value)
Definition: SelfUserProfile.h:150
Aws::OpsWorks::Model::SelfUserProfile::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: SelfUserProfile.h:48
Aws::OpsWorks::Model::SelfUserProfile::SetSshPublicKey
void SetSshPublicKey(const char *value)
Definition: SelfUserProfile.h:186
Aws::OpsWorks::Model::SelfUserProfile::SshPublicKeyHasBeenSet
bool SshPublicKeyHasBeenSet() const
Definition: SelfUserProfile.h:171
Aws::OpsWorks::Model::SelfUserProfile::WithIamUserArn
SelfUserProfile & WithIamUserArn(const Aws::String &value)
Definition: SelfUserProfile.h:68
Aws::OpsWorks::Model::SelfUserProfile::WithSshPublicKey
SelfUserProfile & WithSshPublicKey(const char *value)
Definition: SelfUserProfile.h:201