AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UserIdentityRoot.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
34 {
35 public:
36 AWS_MACIE2_API UserIdentityRoot();
39 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
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 UserIdentityRoot& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline UserIdentityRoot& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline UserIdentityRoot& 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 UserIdentityRoot& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline UserIdentityRoot& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline UserIdentityRoot& 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 UserIdentityRoot& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
82 inline UserIdentityRoot& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
83 inline UserIdentityRoot& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
85 private:
86
87 Aws::String m_accountId;
88 bool m_accountIdHasBeenSet = false;
89
90 Aws::String m_arn;
91 bool m_arnHasBeenSet = false;
92
93 Aws::String m_principalId;
94 bool m_principalIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Macie2
99} // namespace Aws
void SetPrincipalId(const char *value)
AWS_MACIE2_API UserIdentityRoot(Aws::Utils::Json::JsonView jsonValue)
UserIdentityRoot & WithPrincipalId(const char *value)
void SetAccountId(Aws::String &&value)
UserIdentityRoot & WithPrincipalId(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetPrincipalId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
const Aws::String & GetArn() const
UserIdentityRoot & WithArn(const char *value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UserIdentityRoot & WithAccountId(const char *value)
UserIdentityRoot & WithArn(const Aws::String &value)
const Aws::String & GetPrincipalId() const
UserIdentityRoot & WithPrincipalId(Aws::String &&value)
void SetPrincipalId(const Aws::String &value)
UserIdentityRoot & WithArn(Aws::String &&value)
UserIdentityRoot & WithAccountId(const Aws::String &value)
AWS_MACIE2_API UserIdentityRoot & operator=(Aws::Utils::Json::JsonView jsonValue)
UserIdentityRoot & WithAccountId(Aws::String &&value)
const Aws::String & GetAccountId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue