AWS SDK for C++  0.12.9
AWS SDK for C++
CreateUserProfileRequest.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
19 
20 namespace Aws
21 {
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
40  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
41 
45  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
46 
50  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
51 
55  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
56 
60  inline CreateUserProfileRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
61 
65  inline CreateUserProfileRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(value); return *this;}
66 
70  inline CreateUserProfileRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
71 
79  inline const Aws::String& GetSshUsername() const{ return m_sshUsername; }
80 
88  inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
89 
97  inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
98 
106  inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); }
107 
115  inline CreateUserProfileRequest& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
116 
124  inline CreateUserProfileRequest& WithSshUsername(Aws::String&& value) { SetSshUsername(value); return *this;}
125 
133  inline CreateUserProfileRequest& WithSshUsername(const char* value) { SetSshUsername(value); return *this;}
134 
138  inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
139 
143  inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
144 
148  inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
149 
153  inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
154 
158  inline CreateUserProfileRequest& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
159 
163  inline CreateUserProfileRequest& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(value); return *this;}
164 
168  inline CreateUserProfileRequest& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
169 
176  inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; }
177 
184  inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
185 
192  inline CreateUserProfileRequest& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
193 
194  private:
195  Aws::String m_iamUserArn;
196  bool m_iamUserArnHasBeenSet;
197  Aws::String m_sshUsername;
198  bool m_sshUsernameHasBeenSet;
199  Aws::String m_sshPublicKey;
200  bool m_sshPublicKeyHasBeenSet;
201  bool m_allowSelfManagement;
202  bool m_allowSelfManagementHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace OpsWorks
207 } // namespace Aws
CreateUserProfileRequest & WithSshPublicKey(const Aws::String &value)
CreateUserProfileRequest & WithIamUserArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateUserProfileRequest & WithSshPublicKey(const char *value)
CreateUserProfileRequest & WithIamUserArn(const Aws::String &value)
CreateUserProfileRequest & WithSshUsername(const Aws::String &value)
CreateUserProfileRequest & WithSshUsername(const char *value)
CreateUserProfileRequest & WithIamUserArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
CreateUserProfileRequest & WithSshUsername(Aws::String &&value)
CreateUserProfileRequest & WithSshPublicKey(Aws::String &&value)
CreateUserProfileRequest & WithAllowSelfManagement(bool value)
JSON (JavaScript Object Notation).