AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
47 inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
48 inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
49 inline UserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
50 inline UserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
51 inline UserProfile& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline UserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline UserProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline UserProfile& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetSshUsername() const{ return m_sshUsername; }
73 inline bool SshUsernameHasBeenSet() const { return m_sshUsernameHasBeenSet; }
74 inline void SetSshUsername(const Aws::String& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = value; }
75 inline void SetSshUsername(Aws::String&& value) { m_sshUsernameHasBeenSet = true; m_sshUsername = std::move(value); }
76 inline void SetSshUsername(const char* value) { m_sshUsernameHasBeenSet = true; m_sshUsername.assign(value); }
77 inline UserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
78 inline UserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
79 inline UserProfile& WithSshUsername(const char* value) { SetSshUsername(value); return *this;}
81
83
86 inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
87 inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
88 inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
89 inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
90 inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
91 inline UserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
92 inline UserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
93 inline UserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
95
97
103 inline bool GetAllowSelfManagement() const{ return m_allowSelfManagement; }
104 inline bool AllowSelfManagementHasBeenSet() const { return m_allowSelfManagementHasBeenSet; }
105 inline void SetAllowSelfManagement(bool value) { m_allowSelfManagementHasBeenSet = true; m_allowSelfManagement = value; }
106 inline UserProfile& WithAllowSelfManagement(bool value) { SetAllowSelfManagement(value); return *this;}
108 private:
109
110 Aws::String m_iamUserArn;
111 bool m_iamUserArnHasBeenSet = false;
112
113 Aws::String m_name;
114 bool m_nameHasBeenSet = false;
115
116 Aws::String m_sshUsername;
117 bool m_sshUsernameHasBeenSet = false;
118
119 Aws::String m_sshPublicKey;
120 bool m_sshPublicKeyHasBeenSet = false;
121
122 bool m_allowSelfManagement;
123 bool m_allowSelfManagementHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace OpsWorks
128} // namespace Aws
UserProfile & WithSshUsername(Aws::String &&value)
Definition UserProfile.h:78
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIamUserArn() const
Definition UserProfile.h:44
AWS_OPSWORKS_API UserProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
UserProfile & WithName(const char *value)
Definition UserProfile.h:65
UserProfile & WithIamUserArn(Aws::String &&value)
Definition UserProfile.h:50
UserProfile & WithSshPublicKey(Aws::String &&value)
Definition UserProfile.h:92
UserProfile & WithAllowSelfManagement(bool value)
void SetIamUserArn(const Aws::String &value)
Definition UserProfile.h:46
void SetName(const char *value)
Definition UserProfile.h:62
void SetSshPublicKey(const Aws::String &value)
Definition UserProfile.h:88
UserProfile & WithSshUsername(const Aws::String &value)
Definition UserProfile.h:77
void SetSshUsername(const Aws::String &value)
Definition UserProfile.h:74
UserProfile & WithSshUsername(const char *value)
Definition UserProfile.h:79
void SetIamUserArn(const char *value)
Definition UserProfile.h:48
void SetSshPublicKey(Aws::String &&value)
Definition UserProfile.h:89
void SetName(Aws::String &&value)
Definition UserProfile.h:61
UserProfile & WithSshPublicKey(const char *value)
Definition UserProfile.h:93
AWS_OPSWORKS_API UserProfile(Aws::Utils::Json::JsonView jsonValue)
void SetSshUsername(const char *value)
Definition UserProfile.h:76
UserProfile & WithIamUserArn(const char *value)
Definition UserProfile.h:51
void SetSshUsername(Aws::String &&value)
Definition UserProfile.h:75
void SetIamUserArn(Aws::String &&value)
Definition UserProfile.h:47
UserProfile & WithName(Aws::String &&value)
Definition UserProfile.h:64
UserProfile & WithName(const Aws::String &value)
Definition UserProfile.h:63
const Aws::String & GetSshPublicKey() const
Definition UserProfile.h:86
UserProfile & WithIamUserArn(const Aws::String &value)
Definition UserProfile.h:49
void SetAllowSelfManagement(bool value)
const Aws::String & GetSshUsername() const
Definition UserProfile.h:72
const Aws::String & GetName() const
Definition UserProfile.h:58
void SetName(const Aws::String &value)
Definition UserProfile.h:60
void SetSshPublicKey(const char *value)
Definition UserProfile.h:90
UserProfile & WithSshPublicKey(const Aws::String &value)
Definition UserProfile.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue