AWS SDK for C++  0.12.9
AWS SDK for C++
UserProfile.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  UserProfile();
40  UserProfile(const Aws::Utils::Json::JsonValue& jsonValue);
41  UserProfile& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
48 
52  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
53 
57  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
58 
62  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
63 
67  inline UserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
68 
72  inline UserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(value); return *this;}
73 
77  inline UserProfile& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
78 
82  inline const Aws::String& GetName() const{ return m_name; }
83 
87  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 
92  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
93 
97  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
98 
102  inline UserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
103 
107  inline UserProfile& WithName(Aws::String&& value) { SetName(value); return *this;}
108 
112  inline UserProfile& WithName(const char* value) { SetName(value); return *this;}
113 
117  inline const Aws::String& GetSshUsername() const{ return m_sshUsername; }
118 
122  inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
123 
127  inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
128 
132  inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); }
133 
137  inline UserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
138 
142  inline UserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(value); return *this;}
143 
147  inline UserProfile& WithSshUsername(const char* value) { SetSshUsername(value); return *this;}
148 
152  inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
153 
157  inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
158 
162  inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
163 
167  inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
168 
172  inline UserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
173 
177  inline UserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(value); return *this;}
178 
182  inline UserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
183 
190  inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; }
191 
198  inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
199 
206  inline UserProfile& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
207 
208  private:
209  Aws::String m_iamUserArn;
210  bool m_iamUserArnHasBeenSet;
211  Aws::String m_name;
212  bool m_nameHasBeenSet;
213  Aws::String m_sshUsername;
214  bool m_sshUsernameHasBeenSet;
215  Aws::String m_sshPublicKey;
216  bool m_sshPublicKeyHasBeenSet;
217  bool m_allowSelfManagement;
218  bool m_allowSelfManagementHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace OpsWorks
223 } // namespace Aws
void SetName(const Aws::String &value)
Definition: UserProfile.h:87
UserProfile & WithIamUserArn(const Aws::String &value)
Definition: UserProfile.h:67
const Aws::String & GetSshUsername() const
Definition: UserProfile.h:117
UserProfile & WithSshPublicKey(const Aws::String &value)
Definition: UserProfile.h:172
void SetSshUsername(const Aws::String &value)
Definition: UserProfile.h:122
void SetAllowSelfManagement(bool value)
Definition: UserProfile.h:198
void SetSshUsername(const char *value)
Definition: UserProfile.h:132
const Aws::String & GetSshPublicKey() const
Definition: UserProfile.h:152
void SetSshPublicKey(const Aws::String &value)
Definition: UserProfile.h:157
void SetSshPublicKey(Aws::String &&value)
Definition: UserProfile.h:162
UserProfile & WithName(const Aws::String &value)
Definition: UserProfile.h:102
UserProfile & WithSshUsername(const char *value)
Definition: UserProfile.h:147
UserProfile & WithIamUserArn(Aws::String &&value)
Definition: UserProfile.h:72
void SetName(Aws::String &&value)
Definition: UserProfile.h:92
UserProfile & WithAllowSelfManagement(bool value)
Definition: UserProfile.h:206
void SetSshUsername(Aws::String &&value)
Definition: UserProfile.h:127
UserProfile & WithSshPublicKey(Aws::String &&value)
Definition: UserProfile.h:177
void SetIamUserArn(const Aws::String &value)
Definition: UserProfile.h:52
UserProfile & WithSshUsername(Aws::String &&value)
Definition: UserProfile.h:142
void SetIamUserArn(Aws::String &&value)
Definition: UserProfile.h:57
UserProfile & WithIamUserArn(const char *value)
Definition: UserProfile.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
const Aws::String & GetName() const
Definition: UserProfile.h:82
const Aws::String & GetIamUserArn() const
Definition: UserProfile.h:47
void SetName(const char *value)
Definition: UserProfile.h:97
UserProfile & WithName(const char *value)
Definition: UserProfile.h:112
UserProfile & WithSshPublicKey(const char *value)
Definition: UserProfile.h:182
UserProfile & WithName(Aws::String &&value)
Definition: UserProfile.h:107
UserProfile & WithSshUsername(const Aws::String &value)
Definition: UserProfile.h:137
JSON (JavaScript Object Notation).
void SetSshPublicKey(const char *value)
Definition: UserProfile.h:167
void SetIamUserArn(const char *value)
Definition: UserProfile.h:62