AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 UserIdentityRoot& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 UserIdentityRoot& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
73 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
74 template<typename PrincipalIdT = Aws::String>
75 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
76 template<typename PrincipalIdT = Aws::String>
77 UserIdentityRoot& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
79 private:
80
81 Aws::String m_accountId;
82 bool m_accountIdHasBeenSet = false;
83
84 Aws::String m_arn;
85 bool m_arnHasBeenSet = false;
86
87 Aws::String m_principalId;
88 bool m_principalIdHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Macie2
93} // 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