AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SelfUserProfile.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 SelfUserProfile();
35 AWS_OPSWORKS_API SelfUserProfile(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 SelfUserProfile& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
50 inline SelfUserProfile& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
51 inline SelfUserProfile& 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 SelfUserProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline SelfUserProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline SelfUserProfile& 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 SelfUserProfile& WithSshUsername(const Aws::String& value) { SetSshUsername(value); return *this;}
78 inline SelfUserProfile& WithSshUsername(Aws::String&& value) { SetSshUsername(std::move(value)); return *this;}
79 inline SelfUserProfile& 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 SelfUserProfile& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
92 inline SelfUserProfile& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
93 inline SelfUserProfile& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
95 private:
96
97 Aws::String m_iamUserArn;
98 bool m_iamUserArnHasBeenSet = false;
99
100 Aws::String m_name;
101 bool m_nameHasBeenSet = false;
102
103 Aws::String m_sshUsername;
104 bool m_sshUsernameHasBeenSet = false;
105
106 Aws::String m_sshPublicKey;
107 bool m_sshPublicKeyHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace OpsWorks
112} // namespace Aws
SelfUserProfile & WithName(const char *value)
void SetSshUsername(const char *value)
void SetName(const Aws::String &value)
void SetIamUserArn(const char *value)
SelfUserProfile & WithIamUserArn(const Aws::String &value)
SelfUserProfile & WithSshPublicKey(const char *value)
void SetSshUsername(const Aws::String &value)
SelfUserProfile & WithName(const Aws::String &value)
AWS_OPSWORKS_API SelfUserProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIamUserArn(const Aws::String &value)
SelfUserProfile & WithSshPublicKey(const Aws::String &value)
const Aws::String & GetSshPublicKey() const
SelfUserProfile & WithSshUsername(Aws::String &&value)
void SetIamUserArn(Aws::String &&value)
SelfUserProfile & WithSshPublicKey(Aws::String &&value)
void SetSshPublicKey(Aws::String &&value)
SelfUserProfile & WithIamUserArn(const char *value)
const Aws::String & GetName() const
SelfUserProfile & WithName(Aws::String &&value)
SelfUserProfile & WithSshUsername(const Aws::String &value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
SelfUserProfile & WithSshUsername(const char *value)
void SetName(Aws::String &&value)
const Aws::String & GetIamUserArn() const
SelfUserProfile & WithIamUserArn(Aws::String &&value)
const Aws::String & GetSshUsername() const
void SetSshUsername(Aws::String &&value)
void SetSshPublicKey(const Aws::String &value)
void SetSshPublicKey(const char *value)
AWS_OPSWORKS_API SelfUserProfile(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue