AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FederatedUser.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/SessionContext.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_MACIE2_API FederatedUser() = default;
39 AWS_MACIE2_API FederatedUser(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
49 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
50 template<typename AccessKeyIdT = Aws::String>
51 void SetAccessKeyId(AccessKeyIdT&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::forward<AccessKeyIdT>(value); }
52 template<typename AccessKeyIdT = Aws::String>
53 FederatedUser& WithAccessKeyId(AccessKeyIdT&& value) { SetAccessKeyId(std::forward<AccessKeyIdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template<typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
65 template<typename AccountIdT = Aws::String>
66 FederatedUser& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
68
70
74 inline const Aws::String& GetArn() const { return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 template<typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
78 template<typename ArnT = Aws::String>
79 FederatedUser& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
81
83
87 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
88 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
89 template<typename PrincipalIdT = Aws::String>
90 void SetPrincipalId(PrincipalIdT&& value) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
91 template<typename PrincipalIdT = Aws::String>
92 FederatedUser& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
94
96
100 inline const SessionContext& GetSessionContext() const { return m_sessionContext; }
101 inline bool SessionContextHasBeenSet() const { return m_sessionContextHasBeenSet; }
102 template<typename SessionContextT = SessionContext>
103 void SetSessionContext(SessionContextT&& value) { m_sessionContextHasBeenSet = true; m_sessionContext = std::forward<SessionContextT>(value); }
104 template<typename SessionContextT = SessionContext>
105 FederatedUser& WithSessionContext(SessionContextT&& value) { SetSessionContext(std::forward<SessionContextT>(value)); return *this;}
107 private:
108
109 Aws::String m_accessKeyId;
110 bool m_accessKeyIdHasBeenSet = false;
111
112 Aws::String m_accountId;
113 bool m_accountIdHasBeenSet = false;
114
115 Aws::String m_arn;
116 bool m_arnHasBeenSet = false;
117
118 Aws::String m_principalId;
119 bool m_principalIdHasBeenSet = false;
120
121 SessionContext m_sessionContext;
122 bool m_sessionContextHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Macie2
127} // namespace Aws
const Aws::String & GetAccessKeyId() const
const Aws::String & GetAccountId() const
FederatedUser & WithAccessKeyId(AccessKeyIdT &&value)
const SessionContext & GetSessionContext() const
FederatedUser & WithPrincipalId(PrincipalIdT &&value)
FederatedUser & WithArn(ArnT &&value)
void SetPrincipalId(PrincipalIdT &&value)
void SetAccessKeyId(AccessKeyIdT &&value)
void SetSessionContext(SessionContextT &&value)
const Aws::String & GetArn() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API FederatedUser(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
FederatedUser & WithSessionContext(SessionContextT &&value)
FederatedUser & WithAccountId(AccountIdT &&value)
AWS_MACIE2_API FederatedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPrincipalId() const
AWS_MACIE2_API FederatedUser()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue