AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserProfile.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpsWorks
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OPSWORKS_API UserProfile() = default;
35 AWS_OPSWORKS_API UserProfile(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPSWORKS_API UserProfile& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetIamUserArn() const { return m_iamUserArn; }
45 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
46 template<typename IamUserArnT = Aws::String>
47 void SetIamUserArn(IamUserArnT&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::forward<IamUserArnT>(value); }
48 template<typename IamUserArnT = Aws::String>
49 UserProfile& WithIamUserArn(IamUserArnT&& value) { SetIamUserArn(std::forward<IamUserArnT>(value)); return *this;}
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 UserProfile& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetSshUsername() const { return m_sshUsername; }
69 inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; }
70 template<typename SshUsernameT = Aws::String>
71 void SetSshUsername(SshUsernameT&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::forward<SshUsernameT>(value); }
72 template<typename SshUsernameT = Aws::String>
73 UserProfile& WithSshUsername(SshUsernameT&& value) { SetSshUsername(std::forward<SshUsernameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetSshPublicKey() const { return m_sshPublicKey; }
81 inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
82 template<typename SshPublicKeyT = Aws::String>
83 void SetSshPublicKey(SshPublicKeyT&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::forward<SshPublicKeyT>(value); }
84 template<typename SshPublicKeyT = Aws::String>
85 UserProfile& WithSshPublicKey(SshPublicKeyT&& value) { SetSshPublicKey(std::forward<SshPublicKeyT>(value)); return *this;}
87
89
95 inline bool GetAllowSelfManagement() const { return m_allowSelfManagement; }
96 inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; }
97 inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
98 inline UserProfile& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
100 private:
101
102 Aws::String m_iamUserArn;
103 bool m_iamUserArnHasBeenSet = false;
104
105 Aws::String m_name;
106 bool m_nameHasBeenSet = false;
107
108 Aws::String m_sshUsername;
109 bool m_sshUsernameHasBeenSet = false;
110
111 Aws::String m_sshPublicKey;
112 bool m_sshPublicKeyHasBeenSet = false;
113
114 bool m_allowSelfManagement{false};
115 bool m_allowSelfManagementHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace OpsWorks
120} // namespace Aws
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIamUserArn() const
Definition UserProfile.h:44
UserProfile & WithSshPublicKey(SshPublicKeyT &&value)
Definition UserProfile.h:85
UserProfile & WithIamUserArn(IamUserArnT &&value)
Definition UserProfile.h:49
AWS_OPSWORKS_API UserProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
UserProfile & WithAllowSelfManagement(bool value)
Definition UserProfile.h:98
void SetSshPublicKey(SshPublicKeyT &&value)
Definition UserProfile.h:83
AWS_OPSWORKS_API UserProfile(Aws::Utils::Json::JsonView jsonValue)
void SetSshUsername(SshUsernameT &&value)
Definition UserProfile.h:71
void SetIamUserArn(IamUserArnT &&value)
Definition UserProfile.h:47
AWS_OPSWORKS_API UserProfile()=default
const Aws::String & GetSshPublicKey() const
Definition UserProfile.h:80
UserProfile & WithName(NameT &&value)
Definition UserProfile.h:61
void SetAllowSelfManagement(bool value)
Definition UserProfile.h:97
UserProfile & WithSshUsername(SshUsernameT &&value)
Definition UserProfile.h:73
const Aws::String & GetSshUsername() const
Definition UserProfile.h:68
const Aws::String & GetName() const
Definition UserProfile.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue