AWS SDK for C++  0.14.3
AWS SDK for C++
SelfUserProfile.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:
41  SelfUserProfile& 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 SelfUserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
68 
72  inline SelfUserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(value); return *this;}
73 
77  inline SelfUserProfile& 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 SelfUserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
103 
107  inline SelfUserProfile& WithName(Aws::String&& value) { SetName(value); return *this;}
108 
112  inline SelfUserProfile& 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 SelfUserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
138 
142  inline SelfUserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(value); return *this;}
143 
147  inline SelfUserProfile& 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 SelfUserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
173 
177  inline SelfUserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(value); return *this;}
178 
182  inline SelfUserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
183 
184  private:
185  Aws::String m_iamUserArn;
186  bool m_iamUserArnHasBeenSet;
187  Aws::String m_name;
188  bool m_nameHasBeenSet;
189  Aws::String m_sshUsername;
190  bool m_sshUsernameHasBeenSet;
191  Aws::String m_sshPublicKey;
192  bool m_sshPublicKeyHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace OpsWorks
197 } // namespace Aws
void SetName(Aws::String &&value)
SelfUserProfile & WithSshUsername(const char *value)
const Aws::String & GetSshUsername() const
void SetSshPublicKey(const Aws::String &value)
SelfUserProfile & WithSshUsername(const Aws::String &value)
const Aws::String & GetName() const
const Aws::String & GetIamUserArn() const
SelfUserProfile & WithIamUserArn(const Aws::String &value)
void SetSshUsername(const Aws::String &value)
SelfUserProfile & WithIamUserArn(Aws::String &&value)
SelfUserProfile & WithSshUsername(Aws::String &&value)
SelfUserProfile & WithName(Aws::String &&value)
SelfUserProfile & WithSshPublicKey(const char *value)
void SetIamUserArn(Aws::String &&value)
void SetSshPublicKey(Aws::String &&value)
void SetName(const Aws::String &value)
void SetSshUsername(Aws::String &&value)
SelfUserProfile & WithName(const Aws::String &value)
void SetSshPublicKey(const char *value)
void SetIamUserArn(const Aws::String &value)
const Aws::String & GetSshPublicKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
SelfUserProfile & WithSshPublicKey(const Aws::String &value)
void SetIamUserArn(const char *value)
SelfUserProfile & WithIamUserArn(const char *value)
SelfUserProfile & WithSshPublicKey(Aws::String &&value)
void SetSshUsername(const char *value)
SelfUserProfile & WithName(const char *value)
JSON (JavaScript Object Notation).