AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IamUser.h
1
6#pragma once
7#include <aws/macie2/Macie2_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 Macie2
22{
23namespace Model
24{
25
32 class IamUser
33 {
34 public:
35 AWS_MACIE2_API IamUser();
36 AWS_MACIE2_API IamUser(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API IamUser& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline IamUser& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline IamUser& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline IamUser& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline IamUser& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline IamUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline IamUser& WithArn(const char* value) { SetArn(value); return *this;}
71
73
76 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
77 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
78 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
79 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
80 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
81 inline IamUser& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
82 inline IamUser& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
83 inline IamUser& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
85
87
90 inline const Aws::String& GetUserName() const{ return m_userName; }
91 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
92 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
93 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
94 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
95 inline IamUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
96 inline IamUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
97 inline IamUser& WithUserName(const char* value) { SetUserName(value); return *this;}
99 private:
100
101 Aws::String m_accountId;
102 bool m_accountIdHasBeenSet = false;
103
104 Aws::String m_arn;
105 bool m_arnHasBeenSet = false;
106
107 Aws::String m_principalId;
108 bool m_principalIdHasBeenSet = false;
109
110 Aws::String m_userName;
111 bool m_userNameHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Macie2
116} // namespace Aws
bool PrincipalIdHasBeenSet() const
Definition IamUser.h:77
const Aws::String & GetAccountId() const
Definition IamUser.h:46
void SetPrincipalId(const Aws::String &value)
Definition IamUser.h:78
AWS_MACIE2_API IamUser & operator=(Aws::Utils::Json::JsonView jsonValue)
IamUser & WithAccountId(const char *value)
Definition IamUser.h:53
void SetArn(const Aws::String &value)
Definition IamUser.h:64
IamUser & WithPrincipalId(const Aws::String &value)
Definition IamUser.h:81
bool UserNameHasBeenSet() const
Definition IamUser.h:91
IamUser & WithArn(Aws::String &&value)
Definition IamUser.h:68
AWS_MACIE2_API IamUser()
void SetPrincipalId(Aws::String &&value)
Definition IamUser.h:79
void SetUserName(Aws::String &&value)
Definition IamUser.h:93
void SetArn(const char *value)
Definition IamUser.h:66
IamUser & WithArn(const Aws::String &value)
Definition IamUser.h:67
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
IamUser & WithAccountId(const Aws::String &value)
Definition IamUser.h:51
const Aws::String & GetUserName() const
Definition IamUser.h:90
const Aws::String & GetPrincipalId() const
Definition IamUser.h:76
void SetUserName(const Aws::String &value)
Definition IamUser.h:92
bool ArnHasBeenSet() const
Definition IamUser.h:63
bool AccountIdHasBeenSet() const
Definition IamUser.h:47
IamUser & WithUserName(Aws::String &&value)
Definition IamUser.h:96
void SetUserName(const char *value)
Definition IamUser.h:94
IamUser & WithUserName(const Aws::String &value)
Definition IamUser.h:95
void SetAccountId(const char *value)
Definition IamUser.h:50
void SetAccountId(const Aws::String &value)
Definition IamUser.h:48
IamUser & WithArn(const char *value)
Definition IamUser.h:69
void SetPrincipalId(const char *value)
Definition IamUser.h:80
IamUser & WithAccountId(Aws::String &&value)
Definition IamUser.h:52
const Aws::String & GetArn() const
Definition IamUser.h:62
void SetAccountId(Aws::String &&value)
Definition IamUser.h:49
IamUser & WithUserName(const char *value)
Definition IamUser.h:97
IamUser & WithPrincipalId(Aws::String &&value)
Definition IamUser.h:82
IamUser & WithPrincipalId(const char *value)
Definition IamUser.h:83
AWS_MACIE2_API IamUser(Aws::Utils::Json::JsonView jsonValue)
void SetArn(Aws::String &&value)
Definition IamUser.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue