AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateUserProfileRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace OpsWorks
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_OPSWORKS_API CreateUserProfileRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateUserProfile"; }
31
32 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
33
35
36
38
41 inline const Aws::String& GetIamUserArn() const { return m_iamUserArn; }
42 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
43 template<typename IamUserArnT = Aws::String>
44 void SetIamUserArn(IamUserArnT&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::forward<IamUserArnT>(value); }
45 template<typename IamUserArnT = Aws::String>
46 CreateUserProfileRequest& WithIamUserArn(IamUserArnT&& value) { SetIamUserArn(std::forward<IamUserArnT>(value)); return *this;}
48
50
57 inline const Aws::String& GetSshUsername() const { return m_sshUsername; }
58 inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; }
59 template<typename SshUsernameT = Aws::String>
60 void SetSshUsername(SshUsernameT&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::forward<SshUsernameT>(value); }
61 template<typename SshUsernameT = Aws::String>
62 CreateUserProfileRequest& WithSshUsername(SshUsernameT&& value) { SetSshUsername(std::forward<SshUsernameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSshPublicKey() const { return m_sshPublicKey; }
70 inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
71 template<typename SshPublicKeyT = Aws::String>
72 void SetSshPublicKey(SshPublicKeyT&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::forward<SshPublicKeyT>(value); }
73 template<typename SshPublicKeyT = Aws::String>
74 CreateUserProfileRequest& WithSshPublicKey(SshPublicKeyT&& value) { SetSshPublicKey(std::forward<SshPublicKeyT>(value)); return *this;}
76
78
84 inline bool GetAllowSelfManagement() const { return m_allowSelfManagement; }
85 inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; }
86 inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
87 inline CreateUserProfileRequest& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
89 private:
90
91 Aws::String m_iamUserArn;
92 bool m_iamUserArnHasBeenSet = false;
93
94 Aws::String m_sshUsername;
95 bool m_sshUsernameHasBeenSet = false;
96
97 Aws::String m_sshPublicKey;
98 bool m_sshPublicKeyHasBeenSet = false;
99
100 bool m_allowSelfManagement{false};
101 bool m_allowSelfManagementHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace OpsWorks
106} // namespace Aws
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPSWORKS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_OPSWORKS_API CreateUserProfileRequest()=default
CreateUserProfileRequest & WithAllowSelfManagement(bool value)
CreateUserProfileRequest & WithSshUsername(SshUsernameT &&value)
CreateUserProfileRequest & WithSshPublicKey(SshPublicKeyT &&value)
CreateUserProfileRequest & WithIamUserArn(IamUserArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String