AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UserIdentityRoot.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
30 public:
31 AWS_MACIE2_API UserIdentityRoot() = default;
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 UserIdentityRoot& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 UserIdentityRoot& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
79 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
80 template <typename PrincipalIdT = Aws::String>
81 void SetPrincipalId(PrincipalIdT&& value) {
82 m_principalIdHasBeenSet = true;
83 m_principalId = std::forward<PrincipalIdT>(value);
84 }
85 template <typename PrincipalIdT = Aws::String>
86 UserIdentityRoot& WithPrincipalId(PrincipalIdT&& value) {
87 SetPrincipalId(std::forward<PrincipalIdT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_accountId;
93
94 Aws::String m_arn;
95
96 Aws::String m_principalId;
97 bool m_accountIdHasBeenSet = false;
98 bool m_arnHasBeenSet = false;
99 bool m_principalIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Macie2
104} // namespace Aws
void SetAccountId(AccountIdT &&value)
AWS_MACIE2_API UserIdentityRoot(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
UserIdentityRoot & WithAccountId(AccountIdT &&value)
const Aws::String & GetPrincipalId() const
UserIdentityRoot & WithArn(ArnT &&value)
AWS_MACIE2_API UserIdentityRoot & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API UserIdentityRoot()=default
void SetPrincipalId(PrincipalIdT &&value)
UserIdentityRoot & WithPrincipalId(PrincipalIdT &&value)
const Aws::String & GetAccountId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue