AWS SDK for C++  1.9.106
AWS SDK for C++
UserIdentityRoot.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Macie2
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAccountId() const{ return m_accountId; }
46 
50  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 
55  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 
60  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
61 
65  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
66 
70  inline UserIdentityRoot& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
71 
75  inline UserIdentityRoot& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
76 
80  inline UserIdentityRoot& WithAccountId(const char* value) { SetAccountId(value); return *this;}
81 
82 
88  inline const Aws::String& GetArn() const{ return m_arn; }
89 
95  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
96 
102  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 
109  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
110 
116  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
117 
123  inline UserIdentityRoot& WithArn(const Aws::String& value) { SetArn(value); return *this;}
124 
130  inline UserIdentityRoot& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
131 
137  inline UserIdentityRoot& WithArn(const char* value) { SetArn(value); return *this;}
138 
139 
143  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
144 
148  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
149 
153  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
154 
158  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
159 
163  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
164 
168  inline UserIdentityRoot& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
169 
173  inline UserIdentityRoot& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
174 
178  inline UserIdentityRoot& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
179 
180  private:
181 
182  Aws::String m_accountId;
183  bool m_accountIdHasBeenSet;
184 
185  Aws::String m_arn;
186  bool m_arnHasBeenSet;
187 
188  Aws::String m_principalId;
189  bool m_principalIdHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace Macie2
194 } // namespace Aws
Aws::Macie2::Model::UserIdentityRoot::SetArn
void SetArn(const Aws::String &value)
Definition: UserIdentityRoot.h:102
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::UserIdentityRoot::WithAccountId
UserIdentityRoot & WithAccountId(const char *value)
Definition: UserIdentityRoot.h:80
Aws::Macie2::Model::UserIdentityRoot::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: UserIdentityRoot.h:55
Aws::Macie2::Model::UserIdentityRoot::GetArn
const Aws::String & GetArn() const
Definition: UserIdentityRoot.h:88
Aws::Macie2::Model::UserIdentityRoot::WithPrincipalId
UserIdentityRoot & WithPrincipalId(const char *value)
Definition: UserIdentityRoot.h:178
Aws::Macie2::Model::UserIdentityRoot::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: UserIdentityRoot.h:50
Aws::Macie2::Model::UserIdentityRoot::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: UserIdentityRoot.h:158
Aws::Macie2::Model::UserIdentityRoot::SetArn
void SetArn(Aws::String &&value)
Definition: UserIdentityRoot.h:109
Macie2_EXPORTS.h
Aws::Macie2::Model::UserIdentityRoot::UserIdentityRoot
UserIdentityRoot()
Aws::Macie2::Model::UserIdentityRoot::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: UserIdentityRoot.h:163
Aws::Macie2::Model::UserIdentityRoot::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: UserIdentityRoot.h:148
Aws::Macie2::Model::UserIdentityRoot
Definition: UserIdentityRoot.h:34
Aws::Macie2::Model::UserIdentityRoot::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::UserIdentityRoot::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: UserIdentityRoot.h:60
Aws::Macie2::Model::UserIdentityRoot::WithAccountId
UserIdentityRoot & WithAccountId(Aws::String &&value)
Definition: UserIdentityRoot.h:75
Aws::Macie2::Model::UserIdentityRoot::WithArn
UserIdentityRoot & WithArn(const Aws::String &value)
Definition: UserIdentityRoot.h:123
Aws::Macie2::Model::UserIdentityRoot::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: UserIdentityRoot.h:143
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::UserIdentityRoot::WithArn
UserIdentityRoot & WithArn(Aws::String &&value)
Definition: UserIdentityRoot.h:130
Aws::Macie2::Model::UserIdentityRoot::WithAccountId
UserIdentityRoot & WithAccountId(const Aws::String &value)
Definition: UserIdentityRoot.h:70
Aws::Macie2::Model::UserIdentityRoot::UserIdentityRoot
UserIdentityRoot(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::UserIdentityRoot::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: UserIdentityRoot.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::UserIdentityRoot::operator=
UserIdentityRoot & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::UserIdentityRoot::WithPrincipalId
UserIdentityRoot & WithPrincipalId(Aws::String &&value)
Definition: UserIdentityRoot.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::UserIdentityRoot::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: UserIdentityRoot.h:95
Aws::Macie2::Model::UserIdentityRoot::WithPrincipalId
UserIdentityRoot & WithPrincipalId(const Aws::String &value)
Definition: UserIdentityRoot.h:168
Aws::Macie2::Model::UserIdentityRoot::WithArn
UserIdentityRoot & WithArn(const char *value)
Definition: UserIdentityRoot.h:137
Aws::Macie2::Model::UserIdentityRoot::SetArn
void SetArn(const char *value)
Definition: UserIdentityRoot.h:116
Aws::Macie2::Model::UserIdentityRoot::GetAccountId
const Aws::String & GetAccountId() const
Definition: UserIdentityRoot.h:45
Aws::Macie2::Model::UserIdentityRoot::SetAccountId
void SetAccountId(const char *value)
Definition: UserIdentityRoot.h:65